Skip to content

Commit fc64b77

Browse files
authored
Update editorServices.ts (#42951)
1 parent 3b35522 commit fc64b77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/editorServices.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2707,7 +2707,7 @@ namespace ts.server {
27072707
sourceMapFileInfo = mapInfo;
27082708
const snap = mapInfo.getSnapshot();
27092709
if (mapInfo.documentPositionMapper !== undefined) return mapInfo.documentPositionMapper;
2710-
return snap.getText(0, snap.getLength());
2710+
return getSnapshotText(snap);
27112711
};
27122712
const projectName = project.projectName;
27132713
const documentPositionMapper = getDocumentPositionMapper(

0 commit comments

Comments
 (0)