File tree Expand file tree Collapse file tree
src/vs/workbench/contrib/searchEditor/browser Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ export const ToggleSearchEditorCaseSensitiveCommandId = 'toggleSearchEditorCaseS
1212export const ToggleSearchEditorWholeWordCommandId = 'toggleSearchEditorWholeWord' ;
1313export const ToggleSearchEditorRegexCommandId = 'toggleSearchEditorRegex' ;
1414export const ToggleSearchEditorContextLinesCommandId = 'toggleSearchEditorContextLines' ;
15+ export const RerunSearchEditorSearchCommandId = 'rerunSearchEditorSearch' ;
1516
1617export const InSearchEditor = new RawContextKey < boolean > ( 'inSearchEditor' , false ) ;
1718
Original file line number Diff line number Diff line change @@ -145,6 +145,15 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
145145 primary : KeyMod . Alt | KeyCode . KEY_L ,
146146 mac : { primary : KeyMod . CtrlCmd | KeyMod . Alt | KeyCode . KEY_L }
147147} ) ;
148+
149+ CommandsRegistry . registerCommand (
150+ SearchEditorConstants . RerunSearchEditorSearchCommandId ,
151+ ( accessor : ServicesAccessor ) => {
152+ const activeControl = accessor . get ( IEditorService ) . activeControl ;
153+ if ( activeControl instanceof SearchEditor ) {
154+ activeControl . triggerSearch ( { resetCursor : false } ) ;
155+ }
156+ } ) ;
148157//#endregion
149158
150159//#region Actions
You can’t perform that action at this time.
0 commit comments