eng - some extHost strict-null work

This commit is contained in:
Johannes Rieken
2019-03-06 15:36:56 +01:00
parent 95e877dbcf
commit 763ae0943d
5 changed files with 7 additions and 7 deletions

View File

@@ -75,7 +75,7 @@ export class ExtHostEditors implements ExtHostEditorsShape {
}
return this._proxy.$tryShowTextDocument(document.uri, options).then(id => {
const editor = this._extHostDocumentsAndEditors.getEditor(id);
const editor = id && this._extHostDocumentsAndEditors.getEditor(id);
if (editor) {
return editor;
} else {