Enabling the 'noUnusedLocals' compiler option for extensions

This commit is contained in:
Erich Gamma
2017-11-08 10:23:42 +01:00
parent bf0949be4c
commit a54c44cb0d
12 changed files with 12 additions and 0 deletions

View File

@@ -15,6 +15,7 @@ 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);