mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 03:29:00 +01:00
eng - some extHost strict-null work
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user