@codingame/monaco-vscode-search-service-override 36.2.7 → 37.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/vscode/src/vs/workbench/contrib/search/browser/quickTextSearch/textSearchQuickAccess.js +8 -8
- package/vscode/src/vs/workbench/contrib/search/browser/replaceService.js +2 -2
- package/vscode/src/vs/workbench/contrib/search/browser/search.common.contribution.js +120 -3
- package/vscode/src/vs/workbench/contrib/search/browser/search.contribution.js +38 -203
- package/vscode/src/vs/workbench/contrib/search/browser/searchAccessibilityHelp.js +55 -55
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsCopy.js +4 -4
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsFind.js +12 -12
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsNav.js +17 -17
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsRemoveReplace.js +4 -4
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsSymbol.js +3 -3
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsTextQuickAccess.js +1 -1
- package/vscode/src/vs/workbench/contrib/search/browser/searchQuickAccess.contribution.js +4 -4
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditor.contribution.js +28 -28
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditor.js +18 -13
- package/vscode/src/vs/workbench/services/search/browser/searchService.js +2 -2
|
@@ -16,7 +16,7 @@ registerAction2(class CopyMatchCommandAction extends Action2 {
|
|
|
16
16
|
constructor() {
|
|
17
17
|
super({
|
|
18
18
|
id: SearchCommandIds.CopyMatchCommandId,
|
|
19
|
-
title: ( localize2(
|
|
19
|
+
title: ( localize2(15742, "Copy")),
|
|
20
20
|
category,
|
|
21
21
|
keybinding: {
|
|
22
22
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -39,7 +39,7 @@ registerAction2(class CopyPathCommandAction extends Action2 {
|
|
|
39
39
|
constructor() {
|
|
40
40
|
super({
|
|
41
41
|
id: SearchCommandIds.CopyPathCommandId,
|
|
42
|
-
title: ( localize2(
|
|
42
|
+
title: ( localize2(15743, "Copy Path")),
|
|
43
43
|
category,
|
|
44
44
|
keybinding: {
|
|
45
45
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -65,7 +65,7 @@ registerAction2(class CopyAllCommandAction extends Action2 {
|
|
|
65
65
|
constructor() {
|
|
66
66
|
super({
|
|
67
67
|
id: SearchCommandIds.CopyAllCommandId,
|
|
68
|
-
title: ( localize2(
|
|
68
|
+
title: ( localize2(15744, "Copy All")),
|
|
69
69
|
category,
|
|
70
70
|
menu: [{
|
|
71
71
|
id: MenuId.SearchContext,
|
|
@@ -83,7 +83,7 @@ registerAction2(class GetSearchResultsAction extends Action2 {
|
|
|
83
83
|
constructor() {
|
|
84
84
|
super({
|
|
85
85
|
id: SearchCommandIds.GetSearchResultsActionId,
|
|
86
|
-
title: ( localize2(
|
|
86
|
+
title: ( localize2(15745, "Get Search Results")),
|
|
87
87
|
category,
|
|
88
88
|
f1: false
|
|
89
89
|
});
|
|
@@ -31,7 +31,7 @@ registerAction2(class RestrictSearchToFolderAction extends Action2 {
|
|
|
31
31
|
constructor() {
|
|
32
32
|
super({
|
|
33
33
|
id: SearchCommandIds.RestrictSearchToFolderId,
|
|
34
|
-
title: ( localize2(
|
|
34
|
+
title: ( localize2(15746, "Restrict Search to Folder")),
|
|
35
35
|
category,
|
|
36
36
|
keybinding: {
|
|
37
37
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -57,7 +57,7 @@ registerAction2(class ExpandSelectedTreeCommandAction extends Action2 {
|
|
|
57
57
|
constructor() {
|
|
58
58
|
super({
|
|
59
59
|
id: SearchCommandIds.ExpandRecursivelyCommandId,
|
|
60
|
-
title: ( localize(
|
|
60
|
+
title: ( localize(15747, "Expand Recursively")),
|
|
61
61
|
category,
|
|
62
62
|
menu: [{
|
|
63
63
|
id: MenuId.SearchContext,
|
|
@@ -78,7 +78,7 @@ registerAction2(class ExcludeFolderFromSearchAction extends Action2 {
|
|
|
78
78
|
constructor() {
|
|
79
79
|
super({
|
|
80
80
|
id: SearchCommandIds.ExcludeFolderFromSearchId,
|
|
81
|
-
title: ( localize2(
|
|
81
|
+
title: ( localize2(15748, "Exclude Folder from Search")),
|
|
82
82
|
category,
|
|
83
83
|
menu: [{
|
|
84
84
|
id: MenuId.SearchContext,
|
|
@@ -96,7 +96,7 @@ registerAction2(class ExcludeFileTypeFromSearchAction extends Action2 {
|
|
|
96
96
|
constructor() {
|
|
97
97
|
super({
|
|
98
98
|
id: SearchCommandIds.ExcludeFileTypeFromSearchId,
|
|
99
|
-
title: ( localize2(
|
|
99
|
+
title: ( localize2(15749, "Exclude File Type from Search")),
|
|
100
100
|
category,
|
|
101
101
|
menu: [{
|
|
102
102
|
id: MenuId.SearchContext,
|
|
@@ -114,7 +114,7 @@ registerAction2(class IncludeFileTypeInSearchAction extends Action2 {
|
|
|
114
114
|
constructor() {
|
|
115
115
|
super({
|
|
116
116
|
id: SearchCommandIds.IncludeFileTypeInSearchId,
|
|
117
|
-
title: ( localize2(
|
|
117
|
+
title: ( localize2(15750, "Include File Type from Search")),
|
|
118
118
|
category,
|
|
119
119
|
menu: [{
|
|
120
120
|
id: MenuId.SearchContext,
|
|
@@ -132,7 +132,7 @@ registerAction2(class RevealInSideBarForSearchResultsAction extends Action2 {
|
|
|
132
132
|
constructor() {
|
|
133
133
|
super({
|
|
134
134
|
id: SearchCommandIds.RevealInSideBarForSearchResults,
|
|
135
|
-
title: ( localize2(
|
|
135
|
+
title: ( localize2(15751, "Reveal in Explorer View")),
|
|
136
136
|
category,
|
|
137
137
|
menu: [{
|
|
138
138
|
id: MenuId.SearchContext,
|
|
@@ -179,13 +179,13 @@ registerAction2(class FindInFilesAction extends Action2 {
|
|
|
179
179
|
super({
|
|
180
180
|
id: SearchCommandIds.FindInFilesActionId,
|
|
181
181
|
title: {
|
|
182
|
-
...( localize2(
|
|
183
|
-
mnemonicTitle: ( localize(
|
|
182
|
+
...( localize2(15752, "Find in Files")),
|
|
183
|
+
mnemonicTitle: ( localize(15753, "Find &&in Files"))
|
|
184
184
|
},
|
|
185
185
|
metadata: {
|
|
186
|
-
description: ( localize(
|
|
186
|
+
description: ( localize(15754, "Open a workspace search")),
|
|
187
187
|
args: [{
|
|
188
|
-
name: ( localize(
|
|
188
|
+
name: ( localize(15755, "A set of options for the search")),
|
|
189
189
|
schema: {
|
|
190
190
|
type: "object",
|
|
191
191
|
properties: {
|
|
@@ -252,7 +252,7 @@ registerAction2(class FindInFolderAction extends Action2 {
|
|
|
252
252
|
constructor() {
|
|
253
253
|
super({
|
|
254
254
|
id: SearchCommandIds.FindInFolderId,
|
|
255
|
-
title: ( localize2(
|
|
255
|
+
title: ( localize2(15756, "Find in Folder...")),
|
|
256
256
|
category,
|
|
257
257
|
keybinding: {
|
|
258
258
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -275,7 +275,7 @@ registerAction2(class FindInWorkspaceAction extends Action2 {
|
|
|
275
275
|
constructor() {
|
|
276
276
|
super({
|
|
277
277
|
id: SearchCommandIds.FindInWorkspaceId,
|
|
278
|
-
title: ( localize2(
|
|
278
|
+
title: ( localize2(15757, "Find in Workspace...")),
|
|
279
279
|
category,
|
|
280
280
|
menu: [{
|
|
281
281
|
id: MenuId.ExplorerContext,
|
|
@@ -24,7 +24,7 @@ registerAction2(class ToggleQueryDetailsAction extends Action2 {
|
|
|
24
24
|
constructor() {
|
|
25
25
|
super({
|
|
26
26
|
id: SearchCommandIds.ToggleQueryDetailsActionId,
|
|
27
|
-
title: ( localize2(
|
|
27
|
+
title: ( localize2(15758, "Toggle Query Details")),
|
|
28
28
|
category,
|
|
29
29
|
keybinding: {
|
|
30
30
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -51,7 +51,7 @@ registerAction2(class CloseReplaceAction extends Action2 {
|
|
|
51
51
|
constructor() {
|
|
52
52
|
super({
|
|
53
53
|
id: SearchCommandIds.CloseReplaceWidgetActionId,
|
|
54
|
-
title: ( localize2(
|
|
54
|
+
title: ( localize2(15759, "Close Replace Widget")),
|
|
55
55
|
category,
|
|
56
56
|
keybinding: {
|
|
57
57
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -76,7 +76,7 @@ registerAction2(class ToggleCaseSensitiveCommandAction extends Action2 {
|
|
|
76
76
|
constructor() {
|
|
77
77
|
super({
|
|
78
78
|
id: SearchCommandIds.ToggleCaseSensitiveCommandId,
|
|
79
|
-
title: ( localize2(
|
|
79
|
+
title: ( localize2(15760, "Toggle Case Sensitive")),
|
|
80
80
|
category,
|
|
81
81
|
keybinding: Object.assign({
|
|
82
82
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -92,7 +92,7 @@ registerAction2(class ToggleWholeWordCommandAction extends Action2 {
|
|
|
92
92
|
constructor() {
|
|
93
93
|
super({
|
|
94
94
|
id: SearchCommandIds.ToggleWholeWordCommandId,
|
|
95
|
-
title: ( localize2(
|
|
95
|
+
title: ( localize2(15761, "Toggle Whole Word")),
|
|
96
96
|
keybinding: Object.assign({
|
|
97
97
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
98
98
|
when: SearchContext.SearchViewFocusedKey
|
|
@@ -108,7 +108,7 @@ registerAction2(class ToggleRegexCommandAction extends Action2 {
|
|
|
108
108
|
constructor() {
|
|
109
109
|
super({
|
|
110
110
|
id: SearchCommandIds.ToggleRegexCommandId,
|
|
111
|
-
title: ( localize2(
|
|
111
|
+
title: ( localize2(15762, "Toggle Regex")),
|
|
112
112
|
keybinding: Object.assign({
|
|
113
113
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
114
114
|
when: SearchContext.SearchViewFocusedKey
|
|
@@ -124,7 +124,7 @@ registerAction2(class TogglePreserveCaseAction extends Action2 {
|
|
|
124
124
|
constructor() {
|
|
125
125
|
super({
|
|
126
126
|
id: SearchCommandIds.TogglePreserveCaseId,
|
|
127
|
-
title: ( localize2(
|
|
127
|
+
title: ( localize2(15763, "Toggle Preserve Case")),
|
|
128
128
|
keybinding: Object.assign({
|
|
129
129
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
130
130
|
when: SearchContext.SearchViewFocusedKey
|
|
@@ -140,7 +140,7 @@ registerAction2(class OpenMatchAction extends Action2 {
|
|
|
140
140
|
constructor() {
|
|
141
141
|
super({
|
|
142
142
|
id: SearchCommandIds.OpenMatch,
|
|
143
|
-
title: ( localize2(
|
|
143
|
+
title: ( localize2(15764, "Open Match")),
|
|
144
144
|
category,
|
|
145
145
|
keybinding: {
|
|
146
146
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -174,7 +174,7 @@ registerAction2(class OpenMatchToSideAction extends Action2 {
|
|
|
174
174
|
constructor() {
|
|
175
175
|
super({
|
|
176
176
|
id: SearchCommandIds.OpenMatchToSide,
|
|
177
|
-
title: ( localize2(
|
|
177
|
+
title: ( localize2(15765, "Open Match To Side")),
|
|
178
178
|
category,
|
|
179
179
|
keybinding: {
|
|
180
180
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -201,7 +201,7 @@ registerAction2(class AddCursorsAtSearchResultsAction extends Action2 {
|
|
|
201
201
|
constructor() {
|
|
202
202
|
super({
|
|
203
203
|
id: SearchCommandIds.AddCursorsAtSearchResults,
|
|
204
|
-
title: ( localize2(
|
|
204
|
+
title: ( localize2(15766, "Add Cursors at Search Results")),
|
|
205
205
|
keybinding: {
|
|
206
206
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
207
207
|
when: ( ContextKeyExpr.and(
|
|
@@ -225,7 +225,7 @@ registerAction2(class FocusNextInputAction extends Action2 {
|
|
|
225
225
|
constructor() {
|
|
226
226
|
super({
|
|
227
227
|
id: SearchCommandIds.FocusNextInputActionId,
|
|
228
|
-
title: ( localize2(
|
|
228
|
+
title: ( localize2(15767, "Focus Next Input")),
|
|
229
229
|
category,
|
|
230
230
|
keybinding: {
|
|
231
231
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -254,7 +254,7 @@ registerAction2(class FocusPreviousInputAction extends Action2 {
|
|
|
254
254
|
constructor() {
|
|
255
255
|
super({
|
|
256
256
|
id: SearchCommandIds.FocusPreviousInputActionId,
|
|
257
|
-
title: ( localize2(
|
|
257
|
+
title: ( localize2(15768, "Focus Previous Input")),
|
|
258
258
|
category,
|
|
259
259
|
keybinding: {
|
|
260
260
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -284,7 +284,7 @@ registerAction2(class FocusSearchFromResultsAction extends Action2 {
|
|
|
284
284
|
constructor() {
|
|
285
285
|
super({
|
|
286
286
|
id: SearchCommandIds.FocusSearchFromResults,
|
|
287
|
-
title: ( localize2(
|
|
287
|
+
title: ( localize2(15769, "Focus Search From Results")),
|
|
288
288
|
category,
|
|
289
289
|
keybinding: {
|
|
290
290
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -308,7 +308,7 @@ registerAction2(class ToggleSearchOnTypeAction extends Action2 {
|
|
|
308
308
|
constructor() {
|
|
309
309
|
super({
|
|
310
310
|
id: SearchCommandIds.ToggleSearchOnTypeActionId,
|
|
311
|
-
title: ( localize2(
|
|
311
|
+
title: ( localize2(15770, "Toggle Search on Type")),
|
|
312
312
|
category
|
|
313
313
|
});
|
|
314
314
|
}
|
|
@@ -322,7 +322,7 @@ registerAction2(class FocusSearchListCommandAction extends Action2 {
|
|
|
322
322
|
constructor() {
|
|
323
323
|
super({
|
|
324
324
|
id: SearchCommandIds.FocusSearchListCommandID,
|
|
325
|
-
title: ( localize2(
|
|
325
|
+
title: ( localize2(15771, "Focus List")),
|
|
326
326
|
category,
|
|
327
327
|
f1: true
|
|
328
328
|
});
|
|
@@ -335,7 +335,7 @@ registerAction2(class FocusNextSearchResultAction extends Action2 {
|
|
|
335
335
|
constructor() {
|
|
336
336
|
super({
|
|
337
337
|
id: SearchCommandIds.FocusNextSearchResultActionId,
|
|
338
|
-
title: ( localize2(
|
|
338
|
+
title: ( localize2(15772, "Focus Next Search Result")),
|
|
339
339
|
keybinding: [{
|
|
340
340
|
primary: KeyCode.F4,
|
|
341
341
|
weight: KeybindingWeight.WorkbenchContrib
|
|
@@ -356,7 +356,7 @@ registerAction2(class FocusPreviousSearchResultAction extends Action2 {
|
|
|
356
356
|
constructor() {
|
|
357
357
|
super({
|
|
358
358
|
id: SearchCommandIds.FocusPreviousSearchResultActionId,
|
|
359
|
-
title: ( localize2(
|
|
359
|
+
title: ( localize2(15773, "Focus Previous Search Result")),
|
|
360
360
|
keybinding: [{
|
|
361
361
|
primary: KeyMod.Shift | KeyCode.F4,
|
|
362
362
|
weight: KeybindingWeight.WorkbenchContrib
|
|
@@ -377,7 +377,7 @@ registerAction2(class ReplaceInFilesAction extends Action2 {
|
|
|
377
377
|
constructor() {
|
|
378
378
|
super({
|
|
379
379
|
id: SearchCommandIds.ReplaceInFilesActionId,
|
|
380
|
-
title: ( localize2(
|
|
380
|
+
title: ( localize2(15774, "Replace in Files")),
|
|
381
381
|
keybinding: [{
|
|
382
382
|
primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyH,
|
|
383
383
|
weight: KeybindingWeight.WorkbenchContrib
|
|
@@ -23,7 +23,7 @@ registerAction2(class RemoveAction extends Action2 {
|
|
|
23
23
|
constructor() {
|
|
24
24
|
super({
|
|
25
25
|
id: SearchCommandIds.RemoveActionId,
|
|
26
|
-
title: ( localize2(
|
|
26
|
+
title: ( localize2(15775, "Dismiss")),
|
|
27
27
|
category,
|
|
28
28
|
icon: searchRemoveIcon,
|
|
29
29
|
keybinding: {
|
|
@@ -106,7 +106,7 @@ registerAction2(class ReplaceAction extends Action2 {
|
|
|
106
106
|
constructor() {
|
|
107
107
|
super({
|
|
108
108
|
id: SearchCommandIds.ReplaceActionId,
|
|
109
|
-
title: ( localize2(
|
|
109
|
+
title: ( localize2(15776, "Replace")),
|
|
110
110
|
category,
|
|
111
111
|
keybinding: {
|
|
112
112
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -148,7 +148,7 @@ registerAction2(class ReplaceAllAction extends Action2 {
|
|
|
148
148
|
constructor() {
|
|
149
149
|
super({
|
|
150
150
|
id: SearchCommandIds.ReplaceAllInFileActionId,
|
|
151
|
-
title: ( localize2(
|
|
151
|
+
title: ( localize2(15777, "Replace All")),
|
|
152
152
|
category,
|
|
153
153
|
keybinding: {
|
|
154
154
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -191,7 +191,7 @@ registerAction2(class ReplaceAllInFolderAction extends Action2 {
|
|
|
191
191
|
constructor() {
|
|
192
192
|
super({
|
|
193
193
|
id: SearchCommandIds.ReplaceAllInFolderActionId,
|
|
194
|
-
title: ( localize2(
|
|
194
|
+
title: ( localize2(15777, "Replace All")),
|
|
195
195
|
category,
|
|
196
196
|
keybinding: {
|
|
197
197
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -11,7 +11,7 @@ registerAction2(class ShowAllSymbolsAction extends Action2 {
|
|
|
11
11
|
this.ID = "workbench.action.showAllSymbols";
|
|
12
12
|
}
|
|
13
13
|
static {
|
|
14
|
-
this.LABEL = ( localize(
|
|
14
|
+
this.LABEL = ( localize(15778, "Go to Symbol in Workspace..."));
|
|
15
15
|
}
|
|
16
16
|
static {
|
|
17
17
|
this.ALL_SYMBOLS_PREFIX = "#";
|
|
@@ -20,8 +20,8 @@ registerAction2(class ShowAllSymbolsAction extends Action2 {
|
|
|
20
20
|
super({
|
|
21
21
|
id: SearchCommandIds.ShowAllSymbolsActionId,
|
|
22
22
|
title: {
|
|
23
|
-
...( localize2(
|
|
24
|
-
mnemonicTitle: ( localize(
|
|
23
|
+
...( localize2(15778, "Go to Symbol in Workspace...")),
|
|
24
|
+
mnemonicTitle: ( localize(15779, "Go to Symbol in &&Workspace..."))
|
|
25
25
|
},
|
|
26
26
|
f1: true,
|
|
27
27
|
keybinding: {
|
|
@@ -13,7 +13,7 @@ registerAction2(class TextSearchQuickAccessAction extends Action2 {
|
|
|
13
13
|
constructor() {
|
|
14
14
|
super({
|
|
15
15
|
id: SearchCommandIds.QuickTextSearchActionId,
|
|
16
|
-
title: ( localize2(
|
|
16
|
+
title: ( localize2(15780, "Quick Search")),
|
|
17
17
|
category,
|
|
18
18
|
f1: true
|
|
19
19
|
});
|
|
@@ -14,14 +14,14 @@ quickAccessRegistry.registerQuickAccessProvider({
|
|
|
14
14
|
ctor: AnythingQuickAccessProvider,
|
|
15
15
|
prefix: AnythingQuickAccessProvider.PREFIX,
|
|
16
16
|
placeholder: ( localize(
|
|
17
|
-
|
|
17
|
+
15818,
|
|
18
18
|
"Search files by name (append {0} to go to line or {1} to go to symbol)",
|
|
19
19
|
AbstractGotoLineQuickAccessProvider.GO_TO_LINE_PREFIX,
|
|
20
20
|
GotoSymbolQuickAccessProvider.PREFIX
|
|
21
21
|
)),
|
|
22
22
|
contextKey: defaultQuickAccessContextKeyValue,
|
|
23
23
|
helpEntries: [{
|
|
24
|
-
description: ( localize(
|
|
24
|
+
description: ( localize(15819, "Go to File")),
|
|
25
25
|
commandId: "workbench.action.quickOpen",
|
|
26
26
|
commandCenterOrder: 10
|
|
27
27
|
}]
|
|
@@ -29,10 +29,10 @@ quickAccessRegistry.registerQuickAccessProvider({
|
|
|
29
29
|
quickAccessRegistry.registerQuickAccessProvider({
|
|
30
30
|
ctor: SymbolsQuickAccessProvider,
|
|
31
31
|
prefix: SymbolsQuickAccessProvider.PREFIX,
|
|
32
|
-
placeholder: ( localize(
|
|
32
|
+
placeholder: ( localize(15820, "Type the name of a symbol to open.")),
|
|
33
33
|
contextKey: "inWorkspaceSymbolsPicker",
|
|
34
34
|
helpEntries: [{
|
|
35
|
-
description: ( localize(
|
|
35
|
+
description: ( localize(15821, "Go to Symbol in Workspace")),
|
|
36
36
|
commandId: "workbench.action.showAllSymbols"
|
|
37
37
|
}]
|
|
38
38
|
});
|
|
@@ -55,24 +55,24 @@ const SelectAllSearchEditorMatchesCommandId = "selectAllSearchEditorMatches";
|
|
|
55
55
|
type: "string",
|
|
56
56
|
enum: ["selectWord", "goToLocation", "openLocationToSide"],
|
|
57
57
|
default: "goToLocation",
|
|
58
|
-
enumDescriptions: [( localize(
|
|
59
|
-
|
|
58
|
+
enumDescriptions: [( localize(15907, "Double-clicking selects the word under the cursor.")), ( localize(15908, "Double-clicking opens the result in the active editor group.")), ( localize(
|
|
59
|
+
15909,
|
|
60
60
|
"Double-clicking opens the result in the editor group to the side, creating one if it does not yet exist."
|
|
61
61
|
))],
|
|
62
|
-
markdownDescription: ( localize(
|
|
62
|
+
markdownDescription: ( localize(15910, "Configure effect of double-clicking a result in a search editor."))
|
|
63
63
|
},
|
|
64
64
|
"search.searchEditor.singleClickBehaviour": {
|
|
65
65
|
type: "string",
|
|
66
66
|
enum: ["default", "peekDefinition"],
|
|
67
67
|
default: "default",
|
|
68
|
-
enumDescriptions: [( localize(
|
|
69
|
-
markdownDescription: ( localize(
|
|
68
|
+
enumDescriptions: [( localize(15911, "Single-clicking does nothing.")), ( localize(15912, "Single-clicking opens a Peek Definition window."))],
|
|
69
|
+
markdownDescription: ( localize(15913, "Configure effect of single-clicking a result in a search editor."))
|
|
70
70
|
},
|
|
71
71
|
"search.searchEditor.reusePriorSearchConfiguration": {
|
|
72
72
|
type: "boolean",
|
|
73
73
|
default: false,
|
|
74
74
|
markdownDescription: ( localize(
|
|
75
|
-
|
|
75
|
+
15914,
|
|
76
76
|
"When enabled, new Search Editors will reuse the includes, excludes, and flags of the previously opened Search Editor."
|
|
77
77
|
))
|
|
78
78
|
},
|
|
@@ -80,7 +80,7 @@ const SelectAllSearchEditorMatchesCommandId = "selectAllSearchEditorMatches";
|
|
|
80
80
|
type: ["number", "null"],
|
|
81
81
|
default: 1,
|
|
82
82
|
markdownDescription: ( localize(
|
|
83
|
-
|
|
83
|
+
15915,
|
|
84
84
|
"The default number of surrounding context lines to use when creating new Search Editors. If using `#search.searchEditor.reusePriorSearchConfiguration#`, this can be set to `null` (empty) to use the prior Search Editor's configuration."
|
|
85
85
|
))
|
|
86
86
|
},
|
|
@@ -88,13 +88,13 @@ const SelectAllSearchEditorMatchesCommandId = "selectAllSearchEditorMatches";
|
|
|
88
88
|
type: "boolean",
|
|
89
89
|
default: false,
|
|
90
90
|
markdownDescription: ( localize(
|
|
91
|
-
|
|
91
|
+
15916,
|
|
92
92
|
"When a search is triggered, focus the Search Editor results instead of the Search Editor input."
|
|
93
93
|
))
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
});
|
|
97
|
-
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(SearchEditor, SearchEditor.ID, ( localize(
|
|
97
|
+
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(SearchEditor, SearchEditor.ID, ( localize(15917, "Search Editor"))), [( new SyncDescriptor(SearchEditorInput))]);
|
|
98
98
|
let SearchEditorContribution = class SearchEditorContribution {
|
|
99
99
|
static {
|
|
100
100
|
this.ID = "workbench.contrib.searchEditor";
|
|
@@ -102,7 +102,7 @@ let SearchEditorContribution = class SearchEditorContribution {
|
|
|
102
102
|
constructor(editorResolverService, instantiationService) {
|
|
103
103
|
editorResolverService.registerEditor("*" + SEARCH_EDITOR_EXT, {
|
|
104
104
|
id: SearchEditorInput.ID,
|
|
105
|
-
label: ( localize(
|
|
105
|
+
label: ( localize(15918, "Search Editor")),
|
|
106
106
|
detail: DEFAULT_EDITOR_ASSOCIATION.providerDisplayName,
|
|
107
107
|
priority: RegisteredEditorPriority.default
|
|
108
108
|
}, {
|
|
@@ -209,7 +209,7 @@ CommandsRegistry.registerCommand(CleanSearchEditorStateCommandId, accessor => {
|
|
|
209
209
|
activeEditorPane.cleanState();
|
|
210
210
|
}
|
|
211
211
|
});
|
|
212
|
-
const category = ( localize2(
|
|
212
|
+
const category = ( localize2(15919, "Search Editor"));
|
|
213
213
|
const translateLegacyConfig = (legacyConfig = {}) => {
|
|
214
214
|
const config = {};
|
|
215
215
|
const overrides = {
|
|
@@ -275,7 +275,7 @@ registerAction2(class extends Action2 {
|
|
|
275
275
|
constructor() {
|
|
276
276
|
super({
|
|
277
277
|
id: "search.searchEditor.action.deleteFileResults",
|
|
278
|
-
title: ( localize2(
|
|
278
|
+
title: ( localize2(15920, "Delete File Results")),
|
|
279
279
|
keybinding: {
|
|
280
280
|
weight: KeybindingWeight.EditorContrib,
|
|
281
281
|
primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.Backspace
|
|
@@ -296,7 +296,7 @@ registerAction2(class extends Action2 {
|
|
|
296
296
|
constructor() {
|
|
297
297
|
super({
|
|
298
298
|
id: OpenNewEditorCommandId,
|
|
299
|
-
title: ( localize2(
|
|
299
|
+
title: ( localize2(15921, "New Search Editor")),
|
|
300
300
|
category,
|
|
301
301
|
f1: true,
|
|
302
302
|
metadata: openArgMetadata
|
|
@@ -313,7 +313,7 @@ registerAction2(class extends Action2 {
|
|
|
313
313
|
constructor() {
|
|
314
314
|
super({
|
|
315
315
|
id: OpenEditorCommandId,
|
|
316
|
-
title: ( localize2(
|
|
316
|
+
title: ( localize2(15922, "Open Search Editor")),
|
|
317
317
|
category,
|
|
318
318
|
f1: true,
|
|
319
319
|
metadata: openArgMetadata
|
|
@@ -330,7 +330,7 @@ registerAction2(class extends Action2 {
|
|
|
330
330
|
constructor() {
|
|
331
331
|
super({
|
|
332
332
|
id: OpenNewEditorToSideCommandId,
|
|
333
|
-
title: ( localize2(
|
|
333
|
+
title: ( localize2(15923, "Open New Search Editor to the Side")),
|
|
334
334
|
category,
|
|
335
335
|
f1: true,
|
|
336
336
|
metadata: openArgMetadata
|
|
@@ -344,7 +344,7 @@ registerAction2(class extends Action2 {
|
|
|
344
344
|
constructor() {
|
|
345
345
|
super({
|
|
346
346
|
id: OpenInEditorCommandId,
|
|
347
|
-
title: ( localize2(
|
|
347
|
+
title: ( localize2(15924, "Open Results in Editor")),
|
|
348
348
|
category,
|
|
349
349
|
f1: true,
|
|
350
350
|
keybinding: {
|
|
@@ -379,7 +379,7 @@ registerAction2(class extends Action2 {
|
|
|
379
379
|
constructor() {
|
|
380
380
|
super({
|
|
381
381
|
id: RerunSearchEditorSearchCommandId,
|
|
382
|
-
title: ( localize2(
|
|
382
|
+
title: ( localize2(15925, "Search Again")),
|
|
383
383
|
category,
|
|
384
384
|
keybinding: {
|
|
385
385
|
primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyR,
|
|
@@ -411,7 +411,7 @@ registerAction2(class extends Action2 {
|
|
|
411
411
|
constructor() {
|
|
412
412
|
super({
|
|
413
413
|
id: FocusQueryEditorWidgetCommandId,
|
|
414
|
-
title: ( localize2(
|
|
414
|
+
title: ( localize2(15926, "Focus Search Editor Input")),
|
|
415
415
|
category,
|
|
416
416
|
f1: true,
|
|
417
417
|
precondition: InSearchEditor,
|
|
@@ -433,7 +433,7 @@ registerAction2(class extends Action2 {
|
|
|
433
433
|
constructor() {
|
|
434
434
|
super({
|
|
435
435
|
id: FocusQueryEditorFilesToIncludeCommandId,
|
|
436
|
-
title: ( localize2(
|
|
436
|
+
title: ( localize2(15927, "Focus Search Editor Files to Include")),
|
|
437
437
|
category,
|
|
438
438
|
f1: true,
|
|
439
439
|
precondition: InSearchEditor
|
|
@@ -451,7 +451,7 @@ registerAction2(class extends Action2 {
|
|
|
451
451
|
constructor() {
|
|
452
452
|
super({
|
|
453
453
|
id: FocusQueryEditorFilesToExcludeCommandId,
|
|
454
|
-
title: ( localize2(
|
|
454
|
+
title: ( localize2(15928, "Focus Search Editor Files to Exclude")),
|
|
455
455
|
category,
|
|
456
456
|
f1: true,
|
|
457
457
|
precondition: InSearchEditor
|
|
@@ -469,7 +469,7 @@ registerAction2(class extends Action2 {
|
|
|
469
469
|
constructor() {
|
|
470
470
|
super({
|
|
471
471
|
id: ToggleSearchEditorCaseSensitiveCommandId,
|
|
472
|
-
title: ( localize2(
|
|
472
|
+
title: ( localize2(15929, "Toggle Match Case")),
|
|
473
473
|
category,
|
|
474
474
|
f1: true,
|
|
475
475
|
precondition: InSearchEditor,
|
|
@@ -487,7 +487,7 @@ registerAction2(class extends Action2 {
|
|
|
487
487
|
constructor() {
|
|
488
488
|
super({
|
|
489
489
|
id: ToggleSearchEditorWholeWordCommandId,
|
|
490
|
-
title: ( localize2(
|
|
490
|
+
title: ( localize2(15930, "Toggle Match Whole Word")),
|
|
491
491
|
category,
|
|
492
492
|
f1: true,
|
|
493
493
|
precondition: InSearchEditor,
|
|
@@ -505,7 +505,7 @@ registerAction2(class extends Action2 {
|
|
|
505
505
|
constructor() {
|
|
506
506
|
super({
|
|
507
507
|
id: ToggleSearchEditorRegexCommandId,
|
|
508
|
-
title: ( localize2(
|
|
508
|
+
title: ( localize2(15931, "Toggle Use Regular Expression")),
|
|
509
509
|
category,
|
|
510
510
|
f1: true,
|
|
511
511
|
precondition: InSearchEditor,
|
|
@@ -523,7 +523,7 @@ registerAction2(class extends Action2 {
|
|
|
523
523
|
constructor() {
|
|
524
524
|
super({
|
|
525
525
|
id: ToggleSearchEditorContextLinesCommandId,
|
|
526
|
-
title: ( localize2(
|
|
526
|
+
title: ( localize2(15932, "Toggle Context Lines")),
|
|
527
527
|
category,
|
|
528
528
|
f1: true,
|
|
529
529
|
precondition: InSearchEditor,
|
|
@@ -544,7 +544,7 @@ registerAction2(class extends Action2 {
|
|
|
544
544
|
constructor() {
|
|
545
545
|
super({
|
|
546
546
|
id: IncreaseSearchEditorContextLinesCommandId,
|
|
547
|
-
title: ( localize2(
|
|
547
|
+
title: ( localize2(15933, "Increase Context Lines")),
|
|
548
548
|
category,
|
|
549
549
|
f1: true,
|
|
550
550
|
precondition: InSearchEditor,
|
|
@@ -562,7 +562,7 @@ registerAction2(class extends Action2 {
|
|
|
562
562
|
constructor() {
|
|
563
563
|
super({
|
|
564
564
|
id: DecreaseSearchEditorContextLinesCommandId,
|
|
565
|
-
title: ( localize2(
|
|
565
|
+
title: ( localize2(15934, "Decrease Context Lines")),
|
|
566
566
|
category,
|
|
567
567
|
f1: true,
|
|
568
568
|
precondition: InSearchEditor,
|
|
@@ -580,7 +580,7 @@ registerAction2(class extends Action2 {
|
|
|
580
580
|
constructor() {
|
|
581
581
|
super({
|
|
582
582
|
id: SelectAllSearchEditorMatchesCommandId,
|
|
583
|
-
title: ( localize2(
|
|
583
|
+
title: ( localize2(15935, "Select All Matches")),
|
|
584
584
|
category,
|
|
585
585
|
f1: true,
|
|
586
586
|
precondition: InSearchEditor,
|
|
@@ -598,7 +598,7 @@ registerAction2(class OpenSearchEditorAction extends Action2 {
|
|
|
598
598
|
constructor() {
|
|
599
599
|
super({
|
|
600
600
|
id: "search.action.openNewEditorFromView",
|
|
601
|
-
title: ( localize(
|
|
601
|
+
title: ( localize(15936, "Open New Search Editor")),
|
|
602
602
|
category,
|
|
603
603
|
icon: searchNewEditorIcon,
|
|
604
604
|
menu: [{
|