use getActiveEditor when editor is meant

This commit is contained in:
Benjamin Pasero
2016-06-02 17:09:26 +02:00
parent 284840d2d3
commit ea75c05cd0
@@ -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);