Skip to content

Commit f0fb323

Browse files
author
Jackson Kearl
committed
1 parent b34be2a commit f0fb323

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

src/vs/workbench/contrib/searchEditor/browser/searchEditor.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -248,10 +248,7 @@ export class SearchEditor extends BaseTextEditor {
248248
}
249249

250250
focusSearchInput() {
251-
const viewState = this.loadViewState();
252-
if (viewState && viewState.focused === 'editor') {
253-
this.queryEditorWidget.searchInput.focus();
254-
}
251+
this.queryEditorWidget.searchInput.focus();
255252
}
256253

257254
focusNextInput() {

src/vs/workbench/contrib/searchEditor/browser/searchEditorActions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ export class RerunSearchEditorSearchAction extends Action {
161161

162162
export class FocusQueryEditorWidgetAction extends Action {
163163
static readonly ID: string = Constants.FocusQueryEditorWidgetCommandId;
164-
static readonly LABEL = localize('search.action.focusQueryEditorWidget', "Focus Query Editor Widget");
164+
static readonly LABEL = localize('search.action.focusQueryEditorWidget', "Focus Search Editor Input");
165165

166166
constructor(id: string, label: string,
167167
@IEditorService private readonly editorService: IEditorService,

0 commit comments

Comments
 (0)