diff --git a/src/vs/workbench/parts/search/browser/searchViewlet.ts b/src/vs/workbench/parts/search/browser/searchViewlet.ts index 820f4dca02b..af174f8eb6b 100644 --- a/src/vs/workbench/parts/search/browser/searchViewlet.ts +++ b/src/vs/workbench/parts/search/browser/searchViewlet.ts @@ -964,7 +964,7 @@ export class SearchViewlet extends Viewlet { } // Open focused element from results in case the editor area is otherwise empty - if (visible && !this.editorService.getActiveEditorInput()) { + if (visible && !this.editorService.getActiveEditor()) { let focus = this.tree.getFocus(); if (focus) { this.onFocus(focus, false, false);