Update editorServices.ts (#42951)

This commit is contained in:
pushkine 2021-02-25 18:00:08 +01:00 committed by GitHub
parent 3b35522fd0
commit fc64b77b52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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(