mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-10 08:45:56 +01:00
Clean up search editor rerun actions
This commit is contained in:
@@ -46,6 +46,16 @@
|
||||
}
|
||||
],
|
||||
"menus": {
|
||||
"commandPalette": [
|
||||
{
|
||||
"command": "searchResult.rerunSearch",
|
||||
"when": "false"
|
||||
},
|
||||
{
|
||||
"command": "searchResult.rerunSearchWithContext",
|
||||
"when": "false"
|
||||
}
|
||||
],
|
||||
"editor/title": [
|
||||
{
|
||||
"command": "searchResult.rerunSearch",
|
||||
|
||||
@@ -646,16 +646,17 @@ registry.registerWorkbenchAction(
|
||||
'Search: Open Results in Editor', category,
|
||||
ContextKeyExpr.and(Constants.EnableSearchEditorPreview));
|
||||
|
||||
const searchEditorCategory = nls.localize({ comment: ['The name of the tabbed search view'], key: 'searcheditor' }, "Search Editor");
|
||||
registry.registerWorkbenchAction(
|
||||
SyncActionDescriptor.create(RerunEditorSearchAction, RerunEditorSearchAction.ID, RerunEditorSearchAction.LABEL,
|
||||
{ primary: KeyMod.Shift | KeyMod.CtrlCmd | KeyCode.KEY_R },
|
||||
ContextKeyExpr.and(EditorContextKeys.languageId.isEqualTo('search-result'))),
|
||||
'Search Editor: Search Again', category,
|
||||
'Search Editor: Search Again', searchEditorCategory,
|
||||
ContextKeyExpr.and(EditorContextKeys.languageId.isEqualTo('search-result')));
|
||||
|
||||
registry.registerWorkbenchAction(
|
||||
SyncActionDescriptor.create(RerunEditorSearchWithContextAction, RerunEditorSearchWithContextAction.ID, RerunEditorSearchWithContextAction.LABEL),
|
||||
'Search Editor: Search Again (With Context)', category,
|
||||
'Search Editor: Search Again (With Context)', searchEditorCategory,
|
||||
ContextKeyExpr.and(EditorContextKeys.languageId.isEqualTo('search-result')));
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user