make sure that the falsy value for the activeTextEditor is undefined, #5022

This commit is contained in:
Johannes Rieken
2016-04-06 17:42:59 +02:00
parent 8bced8eac0
commit 78dcfe10d8
2 changed files with 10 additions and 5 deletions

View File

@@ -77,7 +77,7 @@ export class ExtHostEditors {
}
getActiveTextEditor(): vscode.TextEditor {
return this._activeEditorId && this._editors[this._activeEditorId];
return this._editors[this._activeEditorId];
}
getVisibleTextEditors(): vscode.TextEditor[] {