mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-23 00:29:35 +01:00
use getActiveEditor when editor is meant
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user