提交 f0fb3231 编写于 作者: J Jackson Kearl

Fix #94439.

上级 b34be2a2
...@@ -248,10 +248,7 @@ export class SearchEditor extends BaseTextEditor { ...@@ -248,10 +248,7 @@ export class SearchEditor extends BaseTextEditor {
} }
focusSearchInput() { focusSearchInput() {
const viewState = this.loadViewState(); this.queryEditorWidget.searchInput.focus();
if (viewState && viewState.focused === 'editor') {
this.queryEditorWidget.searchInput.focus();
}
} }
focusNextInput() { focusNextInput() {
......
...@@ -161,7 +161,7 @@ export class RerunSearchEditorSearchAction extends Action { ...@@ -161,7 +161,7 @@ export class RerunSearchEditorSearchAction extends Action {
export class FocusQueryEditorWidgetAction extends Action { export class FocusQueryEditorWidgetAction extends Action {
static readonly ID: string = Constants.FocusQueryEditorWidgetCommandId; static readonly ID: string = Constants.FocusQueryEditorWidgetCommandId;
static readonly LABEL = localize('search.action.focusQueryEditorWidget', "Focus Query Editor Widget"); static readonly LABEL = localize('search.action.focusQueryEditorWidget', "Focus Search Editor Input");
constructor(id: string, label: string, constructor(id: string, label: string,
@IEditorService private readonly editorService: IEditorService, @IEditorService private readonly editorService: IEditorService,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册