Fix a few more emmet errors for strict null

This commit is contained in:
Matt Bierner
2017-11-20 14:29:29 -08:00
parent 336e9cebf5
commit 86999bb82b
8 changed files with 40 additions and 16 deletions

View File

@@ -34,7 +34,7 @@ export function toggleComment(): Thenable<boolean> | undefined {
return editor.edit(editBuilder => {
editor.selections.reverse().forEach(selection => {
let edits = toggleCommentInternal(editor.document, selection, rootNode);
let edits = toggleCommentInternal(editor.document, selection, rootNode!);
edits.forEach(x => {
editBuilder.replace(x.range, x.newText);
});