mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 11:08:51 +01:00
switching to noUnusedLocals : for #37212
This commit is contained in:
@@ -15,13 +15,10 @@ export function applyEdits(document: TextDocument, edits: TextEdit[]): string {
|
||||
}
|
||||
return startDiff;
|
||||
});
|
||||
// @ts-ignore unused local
|
||||
let lastOffset = text.length;
|
||||
sortedEdits.forEach(e => {
|
||||
let startOffset = document.offsetAt(e.range.start);
|
||||
let endOffset = document.offsetAt(e.range.end);
|
||||
text = text.substring(0, startOffset) + e.newText + text.substring(endOffset, text.length);
|
||||
lastOffset = startOffset;
|
||||
});
|
||||
return text;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user