@codingame/monaco-vscode-search-service-override 4.5.1 → 4.5.2
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/anythingQuickAccess.js +82 -120
- package/vscode/src/vs/workbench/contrib/search/browser/patternInputWidget.js +29 -40
- package/vscode/src/vs/workbench/contrib/search/browser/quickTextSearch/textSearchQuickAccess.js +21 -44
- package/vscode/src/vs/workbench/contrib/search/browser/replaceService.js +34 -35
- package/vscode/src/vs/workbench/contrib/search/browser/search.contribution.js +132 -217
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsCopy.js +8 -19
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsNav.js +46 -131
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsRemoveReplace.js +24 -42
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsSymbol.js +4 -15
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsTextQuickAccess.js +2 -5
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsTopBar.js +52 -61
- package/vscode/src/vs/workbench/contrib/search/browser/searchFindInput.js +6 -13
- package/vscode/src/vs/workbench/contrib/search/browser/searchIcons.js +22 -97
- package/vscode/src/vs/workbench/contrib/search/browser/searchMessage.js +5 -9
- package/vscode/src/vs/workbench/contrib/search/browser/searchResultsView.js +53 -104
- package/vscode/src/vs/workbench/contrib/search/browser/searchView.js +168 -282
- package/vscode/src/vs/workbench/contrib/search/browser/searchWidget.js +52 -81
- package/vscode/src/vs/workbench/contrib/search/browser/symbolsQuickAccess.js +14 -25
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditor.contribution.js +38 -120
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditor.js +50 -79
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorInput.js +30 -40
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorSerialization.js +21 -42
- package/vscode/src/vs/workbench/services/search/browser/searchService.js +29 -36
- package/vscode/src/vs/workbench/services/search/common/searchService.js +3 -3
|
@@ -33,20 +33,17 @@ import './searchActionsTopBar.js';
|
|
|
33
33
|
import './searchActionsTextQuickAccess.js';
|
|
34
34
|
import { TextSearchQuickAccess, TEXT_SEARCH_QUICK_ACCESS_PREFIX } from './quickTextSearch/textSearchQuickAccess.js';
|
|
35
35
|
|
|
36
|
+
const _moduleId = "vs/workbench/contrib/search/browser/search.contribution";
|
|
36
37
|
registerContributions();
|
|
37
38
|
registerContributions$1();
|
|
38
39
|
const SEARCH_MODE_CONFIG = 'search.mode';
|
|
39
|
-
const viewContainer = ( Registry.as(Extensions.ViewContainersRegistry)).registerViewContainer({
|
|
40
|
+
const viewContainer = ( (Registry.as(Extensions.ViewContainersRegistry))).registerViewContainer({
|
|
40
41
|
id: VIEWLET_ID,
|
|
41
|
-
title: ( localize2WithPath(
|
|
42
|
-
|
|
43
|
-
'search',
|
|
44
|
-
"Search"
|
|
45
|
-
)),
|
|
46
|
-
ctorDescriptor: ( new SyncDescriptor(
|
|
42
|
+
title: ( localize2WithPath(_moduleId, 0, "Search")),
|
|
43
|
+
ctorDescriptor: ( (new SyncDescriptor(
|
|
47
44
|
ViewPaneContainer,
|
|
48
45
|
[VIEWLET_ID, { mergeViewWithContainerWhenSingleView: true }]
|
|
49
|
-
)),
|
|
46
|
+
))),
|
|
50
47
|
hideIfEmpty: true,
|
|
51
48
|
icon: searchViewIcon,
|
|
52
49
|
order: 1,
|
|
@@ -54,47 +51,35 @@ const viewContainer = ( Registry.as(Extensions.ViewContainersRegistry)).register
|
|
|
54
51
|
const viewDescriptor = {
|
|
55
52
|
id: VIEW_ID,
|
|
56
53
|
containerIcon: searchViewIcon,
|
|
57
|
-
name: ( localize2WithPath(
|
|
58
|
-
|
|
59
|
-
'search',
|
|
60
|
-
"Search"
|
|
61
|
-
)),
|
|
62
|
-
ctorDescriptor: ( new SyncDescriptor(SearchView)),
|
|
54
|
+
name: ( localize2WithPath(_moduleId, 0, "Search")),
|
|
55
|
+
ctorDescriptor: ( (new SyncDescriptor(SearchView))),
|
|
63
56
|
canToggleVisibility: false,
|
|
64
57
|
canMoveView: true,
|
|
65
58
|
openCommandActionDescriptor: {
|
|
66
59
|
id: viewContainer.id,
|
|
67
|
-
mnemonicTitle: ( localizeWithPath(
|
|
68
|
-
'vs/workbench/contrib/search/browser/search.contribution',
|
|
69
|
-
{ key: 'miViewSearch', comment: ['&& denotes a mnemonic'] },
|
|
70
|
-
"&&Search"
|
|
71
|
-
)),
|
|
60
|
+
mnemonicTitle: ( localizeWithPath(_moduleId, 1, "&&Search")),
|
|
72
61
|
keybindings: {
|
|
73
62
|
primary: 2048 | 1024 | 36 ,
|
|
74
|
-
when: ( ContextKeyExpr.regex('neverMatch', /doesNotMatch/))
|
|
63
|
+
when: ( (ContextKeyExpr.regex('neverMatch', /doesNotMatch/)))
|
|
75
64
|
},
|
|
76
65
|
order: 1
|
|
77
66
|
}
|
|
78
67
|
};
|
|
79
|
-
( Registry.as(Extensions.ViewsRegistry)).registerViews([viewDescriptor], viewContainer);
|
|
80
|
-
const quickAccessRegistry = ( Registry.as(Extensions$1.Quickaccess));
|
|
68
|
+
( (Registry.as(Extensions.ViewsRegistry))).registerViews([viewDescriptor], viewContainer);
|
|
69
|
+
const quickAccessRegistry = ( (Registry.as(Extensions$1.Quickaccess)));
|
|
81
70
|
quickAccessRegistry.registerQuickAccessProvider({
|
|
82
71
|
ctor: AnythingQuickAccessProvider,
|
|
83
72
|
prefix: AnythingQuickAccessProvider.PREFIX,
|
|
84
73
|
placeholder: ( localizeWithPath(
|
|
85
|
-
|
|
86
|
-
|
|
74
|
+
_moduleId,
|
|
75
|
+
2,
|
|
87
76
|
"Search files by name (append {0} to go to line or {1} to go to symbol)",
|
|
88
77
|
AbstractGotoLineQuickAccessProvider.PREFIX,
|
|
89
78
|
GotoSymbolQuickAccessProvider.PREFIX
|
|
90
79
|
)),
|
|
91
80
|
contextKey: defaultQuickAccessContextKeyValue,
|
|
92
81
|
helpEntries: [{
|
|
93
|
-
description: ( localizeWithPath(
|
|
94
|
-
'vs/workbench/contrib/search/browser/search.contribution',
|
|
95
|
-
'anythingQuickAccess',
|
|
96
|
-
"Go to File"
|
|
97
|
-
)),
|
|
82
|
+
description: ( localizeWithPath(_moduleId, 3, "Go to File")),
|
|
98
83
|
commandId: 'workbench.action.quickOpen',
|
|
99
84
|
commandCenterOrder: 10
|
|
100
85
|
}]
|
|
@@ -102,55 +87,35 @@ quickAccessRegistry.registerQuickAccessProvider({
|
|
|
102
87
|
quickAccessRegistry.registerQuickAccessProvider({
|
|
103
88
|
ctor: SymbolsQuickAccessProvider,
|
|
104
89
|
prefix: SymbolsQuickAccessProvider.PREFIX,
|
|
105
|
-
placeholder: ( localizeWithPath(
|
|
106
|
-
'vs/workbench/contrib/search/browser/search.contribution',
|
|
107
|
-
'symbolsQuickAccessPlaceholder',
|
|
108
|
-
"Type the name of a symbol to open."
|
|
109
|
-
)),
|
|
90
|
+
placeholder: ( localizeWithPath(_moduleId, 4, "Type the name of a symbol to open.")),
|
|
110
91
|
contextKey: 'inWorkspaceSymbolsPicker',
|
|
111
|
-
helpEntries: [{ description: ( localizeWithPath(
|
|
112
|
-
'vs/workbench/contrib/search/browser/search.contribution',
|
|
113
|
-
'symbolsQuickAccess',
|
|
114
|
-
"Go to Symbol in Workspace"
|
|
115
|
-
)), commandId: "workbench.action.showAllSymbols" }]
|
|
92
|
+
helpEntries: [{ description: ( localizeWithPath(_moduleId, 5, "Go to Symbol in Workspace")), commandId: "workbench.action.showAllSymbols" }]
|
|
116
93
|
});
|
|
117
94
|
quickAccessRegistry.registerQuickAccessProvider({
|
|
118
95
|
ctor: TextSearchQuickAccess,
|
|
119
96
|
prefix: TEXT_SEARCH_QUICK_ACCESS_PREFIX,
|
|
120
97
|
contextKey: 'inTextSearchPicker',
|
|
121
|
-
placeholder: ( localizeWithPath(
|
|
122
|
-
'vs/workbench/contrib/search/browser/search.contribution',
|
|
123
|
-
'textSearchPickerPlaceholder',
|
|
124
|
-
"Search for text in your workspace files (experimental)."
|
|
125
|
-
)),
|
|
98
|
+
placeholder: ( localizeWithPath(_moduleId, 6, "Search for text in your workspace files (experimental).")),
|
|
126
99
|
helpEntries: [
|
|
127
100
|
{
|
|
128
|
-
description: ( localizeWithPath(
|
|
129
|
-
'vs/workbench/contrib/search/browser/search.contribution',
|
|
130
|
-
'textSearchPickerHelp',
|
|
131
|
-
"Search for Text (Experimental)"
|
|
132
|
-
)),
|
|
101
|
+
description: ( localizeWithPath(_moduleId, 7, "Search for Text (Experimental)")),
|
|
133
102
|
commandId: "workbench.action.experimental.quickTextSearch" ,
|
|
134
103
|
commandCenterOrder: 65,
|
|
135
104
|
}
|
|
136
105
|
]
|
|
137
106
|
});
|
|
138
|
-
const configurationRegistry = ( Registry.as(Extensions$2.Configuration));
|
|
107
|
+
const configurationRegistry = ( (Registry.as(Extensions$2.Configuration)));
|
|
139
108
|
configurationRegistry.registerConfiguration({
|
|
140
109
|
id: 'search',
|
|
141
110
|
order: 13,
|
|
142
|
-
title: ( localizeWithPath(
|
|
143
|
-
'vs/workbench/contrib/search/browser/search.contribution',
|
|
144
|
-
'searchConfigurationTitle',
|
|
145
|
-
"Search"
|
|
146
|
-
)),
|
|
111
|
+
title: ( localizeWithPath(_moduleId, 8, "Search")),
|
|
147
112
|
type: 'object',
|
|
148
113
|
properties: {
|
|
149
114
|
[SEARCH_EXCLUDE_CONFIG]: {
|
|
150
115
|
type: 'object',
|
|
151
116
|
markdownDescription: ( localizeWithPath(
|
|
152
|
-
|
|
153
|
-
|
|
117
|
+
_moduleId,
|
|
118
|
+
9,
|
|
154
119
|
"Configure [glob patterns](https://code.visualstudio.com/docs/editor/codebasics#_advanced-search-options) for excluding files and folders in fulltext searches and file search in quick open. To exclude files from the recently opened list in quick open, patterns must be absolute (for example `**/node_modules/**`). Inherits all glob patterns from the `#files.exclude#` setting."
|
|
155
120
|
)),
|
|
156
121
|
default: { '**/node_modules': true, '**/bower_components': true, '**/*.code-search': true },
|
|
@@ -159,8 +124,8 @@ configurationRegistry.registerConfiguration({
|
|
|
159
124
|
{
|
|
160
125
|
type: 'boolean',
|
|
161
126
|
description: ( localizeWithPath(
|
|
162
|
-
|
|
163
|
-
|
|
127
|
+
_moduleId,
|
|
128
|
+
10,
|
|
164
129
|
"The glob pattern to match file paths against. Set to true or false to enable or disable the pattern."
|
|
165
130
|
)),
|
|
166
131
|
},
|
|
@@ -172,8 +137,8 @@ configurationRegistry.registerConfiguration({
|
|
|
172
137
|
pattern: '\\w*\\$\\(basename\\)\\w*',
|
|
173
138
|
default: '$(basename).ext',
|
|
174
139
|
markdownDescription: ( localizeWithPath(
|
|
175
|
-
|
|
176
|
-
|
|
140
|
+
_moduleId,
|
|
141
|
+
11,
|
|
177
142
|
'Additional check on the siblings of a matching file. Use \\$(basename) as variable for the matching file name.'
|
|
178
143
|
))
|
|
179
144
|
}
|
|
@@ -188,38 +153,34 @@ configurationRegistry.registerConfiguration({
|
|
|
188
153
|
enum: ['view', 'reuseEditor', 'newEditor'],
|
|
189
154
|
default: 'view',
|
|
190
155
|
markdownDescription: ( localizeWithPath(
|
|
191
|
-
|
|
192
|
-
|
|
156
|
+
_moduleId,
|
|
157
|
+
12,
|
|
193
158
|
"Controls where new `Search: Find in Files` and `Find in Folder` operations occur: either in the search view, or in a search editor."
|
|
194
159
|
)),
|
|
195
160
|
enumDescriptions: [
|
|
196
161
|
( localizeWithPath(
|
|
197
|
-
|
|
198
|
-
|
|
162
|
+
_moduleId,
|
|
163
|
+
13,
|
|
199
164
|
"Search in the search view, either in the panel or side bars."
|
|
200
165
|
)),
|
|
201
166
|
( localizeWithPath(
|
|
202
|
-
|
|
203
|
-
|
|
167
|
+
_moduleId,
|
|
168
|
+
14,
|
|
204
169
|
"Search in an existing search editor if present, otherwise in a new search editor."
|
|
205
170
|
)),
|
|
206
|
-
( localizeWithPath(
|
|
207
|
-
'vs/workbench/contrib/search/browser/search.contribution',
|
|
208
|
-
'search.mode.newEditor',
|
|
209
|
-
"Search in a new search editor."
|
|
210
|
-
)),
|
|
171
|
+
( localizeWithPath(_moduleId, 15, "Search in a new search editor.")),
|
|
211
172
|
]
|
|
212
173
|
},
|
|
213
174
|
'search.useRipgrep': {
|
|
214
175
|
type: 'boolean',
|
|
215
176
|
description: ( localizeWithPath(
|
|
216
|
-
|
|
217
|
-
|
|
177
|
+
_moduleId,
|
|
178
|
+
16,
|
|
218
179
|
"This setting is deprecated and now falls back on \"search.usePCRE2\"."
|
|
219
180
|
)),
|
|
220
181
|
deprecationMessage: ( localizeWithPath(
|
|
221
|
-
|
|
222
|
-
|
|
182
|
+
_moduleId,
|
|
183
|
+
17,
|
|
223
184
|
"Deprecated. Consider \"search.usePCRE2\" for advanced regex feature support."
|
|
224
185
|
)),
|
|
225
186
|
default: true
|
|
@@ -227,13 +188,13 @@ configurationRegistry.registerConfiguration({
|
|
|
227
188
|
'search.maintainFileSearchCache': {
|
|
228
189
|
type: 'boolean',
|
|
229
190
|
deprecationMessage: ( localizeWithPath(
|
|
230
|
-
|
|
231
|
-
|
|
191
|
+
_moduleId,
|
|
192
|
+
18,
|
|
232
193
|
"The search cache is kept in the extension host which never shuts down, so this setting is no longer needed."
|
|
233
194
|
)),
|
|
234
195
|
description: ( localizeWithPath(
|
|
235
|
-
|
|
236
|
-
|
|
196
|
+
_moduleId,
|
|
197
|
+
19,
|
|
237
198
|
"When enabled, the searchService process will be kept alive instead of being shut down after an hour of inactivity. This will keep the file search cache in memory."
|
|
238
199
|
)),
|
|
239
200
|
default: false
|
|
@@ -241,8 +202,8 @@ configurationRegistry.registerConfiguration({
|
|
|
241
202
|
'search.useIgnoreFiles': {
|
|
242
203
|
type: 'boolean',
|
|
243
204
|
markdownDescription: ( localizeWithPath(
|
|
244
|
-
|
|
245
|
-
|
|
205
|
+
_moduleId,
|
|
206
|
+
20,
|
|
246
207
|
"Controls whether to use `.gitignore` and `.ignore` files when searching for files."
|
|
247
208
|
)),
|
|
248
209
|
default: true,
|
|
@@ -251,8 +212,8 @@ configurationRegistry.registerConfiguration({
|
|
|
251
212
|
'search.useGlobalIgnoreFiles': {
|
|
252
213
|
type: 'boolean',
|
|
253
214
|
markdownDescription: ( localizeWithPath(
|
|
254
|
-
|
|
255
|
-
|
|
215
|
+
_moduleId,
|
|
216
|
+
21,
|
|
256
217
|
"Controls whether to use your global gitignore file (for example, from `$HOME/.config/git/ignore`) when searching for files. Requires `#search.useIgnoreFiles#` to be enabled."
|
|
257
218
|
)),
|
|
258
219
|
default: false,
|
|
@@ -261,8 +222,8 @@ configurationRegistry.registerConfiguration({
|
|
|
261
222
|
'search.useParentIgnoreFiles': {
|
|
262
223
|
type: 'boolean',
|
|
263
224
|
markdownDescription: ( localizeWithPath(
|
|
264
|
-
|
|
265
|
-
|
|
225
|
+
_moduleId,
|
|
226
|
+
22,
|
|
266
227
|
"Controls whether to use `.gitignore` and `.ignore` files in parent directories when searching for files. Requires `#search.useIgnoreFiles#` to be enabled."
|
|
267
228
|
)),
|
|
268
229
|
default: false,
|
|
@@ -271,8 +232,8 @@ configurationRegistry.registerConfiguration({
|
|
|
271
232
|
'search.quickOpen.includeSymbols': {
|
|
272
233
|
type: 'boolean',
|
|
273
234
|
description: ( localizeWithPath(
|
|
274
|
-
|
|
275
|
-
|
|
235
|
+
_moduleId,
|
|
236
|
+
23,
|
|
276
237
|
"Whether to include results from a global symbol search in the file results for Quick Open."
|
|
277
238
|
)),
|
|
278
239
|
default: false
|
|
@@ -280,8 +241,8 @@ configurationRegistry.registerConfiguration({
|
|
|
280
241
|
'search.quickOpen.includeHistory': {
|
|
281
242
|
type: 'boolean',
|
|
282
243
|
description: ( localizeWithPath(
|
|
283
|
-
|
|
284
|
-
|
|
244
|
+
_moduleId,
|
|
245
|
+
24,
|
|
285
246
|
"Whether to include results from recently opened files in the file results for Quick Open."
|
|
286
247
|
)),
|
|
287
248
|
default: true
|
|
@@ -292,36 +253,32 @@ configurationRegistry.registerConfiguration({
|
|
|
292
253
|
'default': 'default',
|
|
293
254
|
'enumDescriptions': [
|
|
294
255
|
( localizeWithPath(
|
|
295
|
-
|
|
296
|
-
|
|
256
|
+
_moduleId,
|
|
257
|
+
25,
|
|
297
258
|
'History entries are sorted by relevance based on the filter value used. More relevant entries appear first.'
|
|
298
259
|
)),
|
|
299
260
|
( localizeWithPath(
|
|
300
|
-
|
|
301
|
-
|
|
261
|
+
_moduleId,
|
|
262
|
+
26,
|
|
302
263
|
'History entries are sorted by recency. More recently opened entries appear first.'
|
|
303
264
|
))
|
|
304
265
|
],
|
|
305
266
|
'description': ( localizeWithPath(
|
|
306
|
-
|
|
307
|
-
|
|
267
|
+
_moduleId,
|
|
268
|
+
27,
|
|
308
269
|
"Controls sorting order of editor history in quick open when filtering."
|
|
309
270
|
))
|
|
310
271
|
},
|
|
311
272
|
'search.followSymlinks': {
|
|
312
273
|
type: 'boolean',
|
|
313
|
-
description: ( localizeWithPath(
|
|
314
|
-
'vs/workbench/contrib/search/browser/search.contribution',
|
|
315
|
-
'search.followSymlinks',
|
|
316
|
-
"Controls whether to follow symlinks while searching."
|
|
317
|
-
)),
|
|
274
|
+
description: ( localizeWithPath(_moduleId, 28, "Controls whether to follow symlinks while searching.")),
|
|
318
275
|
default: true
|
|
319
276
|
},
|
|
320
277
|
'search.smartCase': {
|
|
321
278
|
type: 'boolean',
|
|
322
279
|
description: ( localizeWithPath(
|
|
323
|
-
|
|
324
|
-
|
|
280
|
+
_moduleId,
|
|
281
|
+
29,
|
|
325
282
|
"Search case-insensitively if the pattern is all lowercase, otherwise, search case-sensitively."
|
|
326
283
|
)),
|
|
327
284
|
default: false
|
|
@@ -330,8 +287,8 @@ configurationRegistry.registerConfiguration({
|
|
|
330
287
|
type: 'boolean',
|
|
331
288
|
default: false,
|
|
332
289
|
description: ( localizeWithPath(
|
|
333
|
-
|
|
334
|
-
|
|
290
|
+
_moduleId,
|
|
291
|
+
30,
|
|
335
292
|
"Controls whether the search view should read or modify the shared find clipboard on macOS."
|
|
336
293
|
)),
|
|
337
294
|
included: isMacintosh
|
|
@@ -341,13 +298,13 @@ configurationRegistry.registerConfiguration({
|
|
|
341
298
|
enum: ['sidebar', 'panel'],
|
|
342
299
|
default: 'sidebar',
|
|
343
300
|
description: ( localizeWithPath(
|
|
344
|
-
|
|
345
|
-
|
|
301
|
+
_moduleId,
|
|
302
|
+
31,
|
|
346
303
|
"Controls whether the search will be shown as a view in the sidebar or as a panel in the panel area for more horizontal space."
|
|
347
304
|
)),
|
|
348
305
|
deprecationMessage: ( localizeWithPath(
|
|
349
|
-
|
|
350
|
-
|
|
306
|
+
_moduleId,
|
|
307
|
+
32,
|
|
351
308
|
"This setting is deprecated. You can drag the search icon to a new location instead."
|
|
352
309
|
))
|
|
353
310
|
},
|
|
@@ -355,8 +312,8 @@ configurationRegistry.registerConfiguration({
|
|
|
355
312
|
type: ['number', 'null'],
|
|
356
313
|
default: 20000,
|
|
357
314
|
markdownDescription: ( localizeWithPath(
|
|
358
|
-
|
|
359
|
-
|
|
315
|
+
_moduleId,
|
|
316
|
+
33,
|
|
360
317
|
"Controls the maximum number of search results, this can be set to `null` (empty) to return unlimited results."
|
|
361
318
|
))
|
|
362
319
|
},
|
|
@@ -365,8 +322,8 @@ configurationRegistry.registerConfiguration({
|
|
|
365
322
|
enum: ['auto', 'alwaysCollapse', 'alwaysExpand'],
|
|
366
323
|
enumDescriptions: [
|
|
367
324
|
( localizeWithPath(
|
|
368
|
-
|
|
369
|
-
|
|
325
|
+
_moduleId,
|
|
326
|
+
34,
|
|
370
327
|
"Files with less than 10 results are expanded. Others are collapsed."
|
|
371
328
|
)),
|
|
372
329
|
'',
|
|
@@ -374,8 +331,8 @@ configurationRegistry.registerConfiguration({
|
|
|
374
331
|
],
|
|
375
332
|
default: 'alwaysExpand',
|
|
376
333
|
description: ( localizeWithPath(
|
|
377
|
-
|
|
378
|
-
|
|
334
|
+
_moduleId,
|
|
335
|
+
35,
|
|
379
336
|
"Controls whether the search results will be collapsed or expanded."
|
|
380
337
|
)),
|
|
381
338
|
},
|
|
@@ -383,31 +340,27 @@ configurationRegistry.registerConfiguration({
|
|
|
383
340
|
type: 'boolean',
|
|
384
341
|
default: true,
|
|
385
342
|
description: ( localizeWithPath(
|
|
386
|
-
|
|
387
|
-
|
|
343
|
+
_moduleId,
|
|
344
|
+
36,
|
|
388
345
|
"Controls whether to open Replace Preview when selecting or replacing a match."
|
|
389
346
|
)),
|
|
390
347
|
},
|
|
391
348
|
'search.showLineNumbers': {
|
|
392
349
|
type: 'boolean',
|
|
393
350
|
default: false,
|
|
394
|
-
description: ( localizeWithPath(
|
|
395
|
-
'vs/workbench/contrib/search/browser/search.contribution',
|
|
396
|
-
'search.showLineNumbers',
|
|
397
|
-
"Controls whether to show line numbers for search results."
|
|
398
|
-
)),
|
|
351
|
+
description: ( localizeWithPath(_moduleId, 37, "Controls whether to show line numbers for search results.")),
|
|
399
352
|
},
|
|
400
353
|
'search.usePCRE2': {
|
|
401
354
|
type: 'boolean',
|
|
402
355
|
default: false,
|
|
403
356
|
description: ( localizeWithPath(
|
|
404
|
-
|
|
405
|
-
|
|
357
|
+
_moduleId,
|
|
358
|
+
38,
|
|
406
359
|
"Whether to use the PCRE2 regex engine in text search. This enables using some advanced regex features like lookahead and backreferences. However, not all PCRE2 features are supported - only features that are also supported by JavaScript."
|
|
407
360
|
)),
|
|
408
361
|
deprecationMessage: ( localizeWithPath(
|
|
409
|
-
|
|
410
|
-
|
|
362
|
+
_moduleId,
|
|
363
|
+
39,
|
|
411
364
|
"Deprecated. PCRE2 will be used automatically when using regex features that are only supported by PCRE2."
|
|
412
365
|
)),
|
|
413
366
|
},
|
|
@@ -416,38 +369,30 @@ configurationRegistry.registerConfiguration({
|
|
|
416
369
|
enum: ['auto', 'right'],
|
|
417
370
|
enumDescriptions: [
|
|
418
371
|
( localizeWithPath(
|
|
419
|
-
|
|
420
|
-
|
|
372
|
+
_moduleId,
|
|
373
|
+
40,
|
|
421
374
|
"Position the actionbar to the right when the search view is narrow, and immediately after the content when the search view is wide."
|
|
422
375
|
)),
|
|
423
|
-
( localizeWithPath(
|
|
424
|
-
'vs/workbench/contrib/search/browser/search.contribution',
|
|
425
|
-
'search.actionsPositionRight',
|
|
426
|
-
"Always position the actionbar to the right."
|
|
427
|
-
)),
|
|
376
|
+
( localizeWithPath(_moduleId, 41, "Always position the actionbar to the right.")),
|
|
428
377
|
],
|
|
429
378
|
default: 'right',
|
|
430
379
|
description: ( localizeWithPath(
|
|
431
|
-
|
|
432
|
-
|
|
380
|
+
_moduleId,
|
|
381
|
+
42,
|
|
433
382
|
"Controls the positioning of the actionbar on rows in the search view."
|
|
434
383
|
))
|
|
435
384
|
},
|
|
436
385
|
'search.searchOnType': {
|
|
437
386
|
type: 'boolean',
|
|
438
387
|
default: true,
|
|
439
|
-
description: ( localizeWithPath(
|
|
440
|
-
'vs/workbench/contrib/search/browser/search.contribution',
|
|
441
|
-
'search.searchOnType',
|
|
442
|
-
"Search all files as you type."
|
|
443
|
-
))
|
|
388
|
+
description: ( localizeWithPath(_moduleId, 43, "Search all files as you type."))
|
|
444
389
|
},
|
|
445
390
|
'search.seedWithNearestWord': {
|
|
446
391
|
type: 'boolean',
|
|
447
392
|
default: false,
|
|
448
393
|
description: ( localizeWithPath(
|
|
449
|
-
|
|
450
|
-
|
|
394
|
+
_moduleId,
|
|
395
|
+
44,
|
|
451
396
|
"Enable seeding search from the word nearest the cursor when the active editor has no selection."
|
|
452
397
|
))
|
|
453
398
|
},
|
|
@@ -455,8 +400,8 @@ configurationRegistry.registerConfiguration({
|
|
|
455
400
|
type: 'boolean',
|
|
456
401
|
default: false,
|
|
457
402
|
markdownDescription: ( localizeWithPath(
|
|
458
|
-
|
|
459
|
-
|
|
403
|
+
_moduleId,
|
|
404
|
+
45,
|
|
460
405
|
"Update the search query to the editor's selected text when focusing the search view. This happens either on click or when triggering the `workbench.views.search.focus` command."
|
|
461
406
|
))
|
|
462
407
|
},
|
|
@@ -464,8 +409,8 @@ configurationRegistry.registerConfiguration({
|
|
|
464
409
|
type: 'number',
|
|
465
410
|
default: 300,
|
|
466
411
|
markdownDescription: ( localizeWithPath(
|
|
467
|
-
|
|
468
|
-
|
|
412
|
+
_moduleId,
|
|
413
|
+
46,
|
|
469
414
|
"When {0} is enabled, controls the timeout in milliseconds between a character being typed and the search starting. Has no effect when {0} is disabled.",
|
|
470
415
|
'`#search.searchOnType#`'
|
|
471
416
|
))
|
|
@@ -475,25 +420,21 @@ configurationRegistry.registerConfiguration({
|
|
|
475
420
|
enum: ['selectWord', 'goToLocation', 'openLocationToSide'],
|
|
476
421
|
default: 'goToLocation',
|
|
477
422
|
enumDescriptions: [
|
|
423
|
+
( localizeWithPath(_moduleId, 47, "Double-clicking selects the word under the cursor.")),
|
|
478
424
|
( localizeWithPath(
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
"Double-clicking selects the word under the cursor."
|
|
482
|
-
)),
|
|
483
|
-
( localizeWithPath(
|
|
484
|
-
'vs/workbench/contrib/search/browser/search.contribution',
|
|
485
|
-
'search.searchEditor.doubleClickBehaviour.goToLocation',
|
|
425
|
+
_moduleId,
|
|
426
|
+
48,
|
|
486
427
|
"Double-clicking opens the result in the active editor group."
|
|
487
428
|
)),
|
|
488
429
|
( localizeWithPath(
|
|
489
|
-
|
|
490
|
-
|
|
430
|
+
_moduleId,
|
|
431
|
+
49,
|
|
491
432
|
"Double-clicking opens the result in the editor group to the side, creating one if it does not yet exist."
|
|
492
433
|
)),
|
|
493
434
|
],
|
|
494
435
|
markdownDescription: ( localizeWithPath(
|
|
495
|
-
|
|
496
|
-
|
|
436
|
+
_moduleId,
|
|
437
|
+
50,
|
|
497
438
|
"Configure effect of double-clicking a result in a search editor."
|
|
498
439
|
))
|
|
499
440
|
},
|
|
@@ -502,20 +443,12 @@ configurationRegistry.registerConfiguration({
|
|
|
502
443
|
enum: ['default', 'peekDefinition',],
|
|
503
444
|
default: 'default',
|
|
504
445
|
enumDescriptions: [
|
|
505
|
-
( localizeWithPath(
|
|
506
|
-
|
|
507
|
-
'search.searchEditor.singleClickBehaviour.default',
|
|
508
|
-
"Single-clicking does nothing."
|
|
509
|
-
)),
|
|
510
|
-
( localizeWithPath(
|
|
511
|
-
'vs/workbench/contrib/search/browser/search.contribution',
|
|
512
|
-
'search.searchEditor.singleClickBehaviour.peekDefinition',
|
|
513
|
-
"Single-clicking opens a Peek Definition window."
|
|
514
|
-
)),
|
|
446
|
+
( localizeWithPath(_moduleId, 51, "Single-clicking does nothing.")),
|
|
447
|
+
( localizeWithPath(_moduleId, 52, "Single-clicking opens a Peek Definition window.")),
|
|
515
448
|
],
|
|
516
449
|
markdownDescription: ( localizeWithPath(
|
|
517
|
-
|
|
518
|
-
|
|
450
|
+
_moduleId,
|
|
451
|
+
53,
|
|
519
452
|
"Configure effect of single-clicking a result in a search editor."
|
|
520
453
|
))
|
|
521
454
|
},
|
|
@@ -523,8 +456,8 @@ configurationRegistry.registerConfiguration({
|
|
|
523
456
|
type: 'boolean',
|
|
524
457
|
default: false,
|
|
525
458
|
markdownDescription: ( localizeWithPath(
|
|
526
|
-
|
|
527
|
-
|
|
459
|
+
_moduleId,
|
|
460
|
+
54,
|
|
528
461
|
"When enabled, new Search Editors will reuse the includes, excludes, and flags of the previously opened Search Editor."
|
|
529
462
|
))
|
|
530
463
|
},
|
|
@@ -532,8 +465,8 @@ configurationRegistry.registerConfiguration({
|
|
|
532
465
|
type: ['number', 'null'],
|
|
533
466
|
default: 1,
|
|
534
467
|
markdownDescription: ( localizeWithPath(
|
|
535
|
-
|
|
536
|
-
|
|
468
|
+
_moduleId,
|
|
469
|
+
55,
|
|
537
470
|
"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."
|
|
538
471
|
))
|
|
539
472
|
},
|
|
@@ -543,47 +476,39 @@ configurationRegistry.registerConfiguration({
|
|
|
543
476
|
'default': "default" ,
|
|
544
477
|
'enumDescriptions': [
|
|
545
478
|
( localizeWithPath(
|
|
546
|
-
|
|
547
|
-
|
|
479
|
+
_moduleId,
|
|
480
|
+
56,
|
|
548
481
|
"Results are sorted by folder and file names, in alphabetical order."
|
|
549
482
|
)),
|
|
550
483
|
( localizeWithPath(
|
|
551
|
-
|
|
552
|
-
|
|
484
|
+
_moduleId,
|
|
485
|
+
57,
|
|
553
486
|
"Results are sorted by file names ignoring folder order, in alphabetical order."
|
|
554
487
|
)),
|
|
555
488
|
( localizeWithPath(
|
|
556
|
-
|
|
557
|
-
|
|
489
|
+
_moduleId,
|
|
490
|
+
58,
|
|
558
491
|
"Results are sorted by file extensions, in alphabetical order."
|
|
559
492
|
)),
|
|
560
493
|
( localizeWithPath(
|
|
561
|
-
|
|
562
|
-
|
|
494
|
+
_moduleId,
|
|
495
|
+
59,
|
|
563
496
|
"Results are sorted by file last modified date, in descending order."
|
|
564
497
|
)),
|
|
565
498
|
( localizeWithPath(
|
|
566
|
-
|
|
567
|
-
|
|
499
|
+
_moduleId,
|
|
500
|
+
60,
|
|
568
501
|
"Results are sorted by count per file, in descending order."
|
|
569
502
|
)),
|
|
570
|
-
( localizeWithPath(
|
|
571
|
-
'vs/workbench/contrib/search/browser/search.contribution',
|
|
572
|
-
'searchSortOrder.countAscending',
|
|
573
|
-
"Results are sorted by count per file, in ascending order."
|
|
574
|
-
))
|
|
503
|
+
( localizeWithPath(_moduleId, 61, "Results are sorted by count per file, in ascending order."))
|
|
575
504
|
],
|
|
576
|
-
'description': ( localizeWithPath(
|
|
577
|
-
'vs/workbench/contrib/search/browser/search.contribution',
|
|
578
|
-
'search.sortOrder',
|
|
579
|
-
"Controls sorting order of search results."
|
|
580
|
-
))
|
|
505
|
+
'description': ( localizeWithPath(_moduleId, 62, "Controls sorting order of search results."))
|
|
581
506
|
},
|
|
582
507
|
'search.decorations.colors': {
|
|
583
508
|
type: 'boolean',
|
|
584
509
|
description: ( localizeWithPath(
|
|
585
|
-
|
|
586
|
-
|
|
510
|
+
_moduleId,
|
|
511
|
+
63,
|
|
587
512
|
"Controls whether search file decorations should use colors."
|
|
588
513
|
)),
|
|
589
514
|
default: true
|
|
@@ -591,8 +516,8 @@ configurationRegistry.registerConfiguration({
|
|
|
591
516
|
'search.decorations.badges': {
|
|
592
517
|
type: 'boolean',
|
|
593
518
|
description: ( localizeWithPath(
|
|
594
|
-
|
|
595
|
-
|
|
519
|
+
_moduleId,
|
|
520
|
+
64,
|
|
596
521
|
"Controls whether search file decorations should use badges."
|
|
597
522
|
)),
|
|
598
523
|
default: true
|
|
@@ -602,28 +527,16 @@ configurationRegistry.registerConfiguration({
|
|
|
602
527
|
'enum': ["tree" , "list" ],
|
|
603
528
|
'default': "list" ,
|
|
604
529
|
'enumDescriptions': [
|
|
605
|
-
( localizeWithPath(
|
|
606
|
-
|
|
607
|
-
'scm.defaultViewMode.tree',
|
|
608
|
-
"Shows search results as a tree."
|
|
609
|
-
)),
|
|
610
|
-
( localizeWithPath(
|
|
611
|
-
'vs/workbench/contrib/search/browser/search.contribution',
|
|
612
|
-
'scm.defaultViewMode.list',
|
|
613
|
-
"Shows search results as a list."
|
|
614
|
-
))
|
|
530
|
+
( localizeWithPath(_moduleId, 65, "Shows search results as a tree.")),
|
|
531
|
+
( localizeWithPath(_moduleId, 66, "Shows search results as a list."))
|
|
615
532
|
],
|
|
616
|
-
'description': ( localizeWithPath(
|
|
617
|
-
'vs/workbench/contrib/search/browser/search.contribution',
|
|
618
|
-
'search.defaultViewMode',
|
|
619
|
-
"Controls the default search result view mode."
|
|
620
|
-
))
|
|
533
|
+
'description': ( localizeWithPath(_moduleId, 67, "Controls the default search result view mode."))
|
|
621
534
|
},
|
|
622
535
|
'search.experimental.closedNotebookRichContentResults': {
|
|
623
536
|
type: 'boolean',
|
|
624
537
|
description: ( localizeWithPath(
|
|
625
|
-
|
|
626
|
-
|
|
538
|
+
_moduleId,
|
|
539
|
+
68,
|
|
627
540
|
"Show notebook editor rich content results for closed notebooks. Please refresh your search results after changing this setting."
|
|
628
541
|
)),
|
|
629
542
|
default: false
|
|
@@ -631,8 +544,8 @@ configurationRegistry.registerConfiguration({
|
|
|
631
544
|
'search.experimental.quickAccess.preserveInput': {
|
|
632
545
|
'type': 'boolean',
|
|
633
546
|
'description': ( localizeWithPath(
|
|
634
|
-
|
|
635
|
-
|
|
547
|
+
_moduleId,
|
|
548
|
+
69,
|
|
636
549
|
"Controls whether the last typed input to Quick Search should be restored when opening it the next time."
|
|
637
550
|
)),
|
|
638
551
|
'default': false
|
|
@@ -643,5 +556,7 @@ CommandsRegistry.registerCommand('_executeWorkspaceSymbolProvider', async functi
|
|
|
643
556
|
const [query] = args;
|
|
644
557
|
assertType(typeof query === 'string');
|
|
645
558
|
const result = await getWorkspaceSymbols(query);
|
|
646
|
-
return (
|
|
559
|
+
return (
|
|
560
|
+
(result.map(item => item.symbol))
|
|
561
|
+
);
|
|
647
562
|
});
|