Update editorServices.ts (#42951)

This commit is contained in:
pushkine
2021-02-25 09:00:08 -08:00
committed by GitHub
parent 3b35522fd0
commit fc64b77b52
+1 -1
View File
@@ -2707,7 +2707,7 @@ namespace ts.server {
sourceMapFileInfo = mapInfo;
const snap = mapInfo.getSnapshot();
if (mapInfo.documentPositionMapper !== undefined) return mapInfo.documentPositionMapper;
return snap.getText(0, snap.getLength());
return getSnapshotText(snap);
};
const projectName = project.projectName;
const documentPositionMapper = getDocumentPositionMapper(