@codingame/monaco-vscode-search-service-override 28.4.1 → 29.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 +7 -7
- package/vscode/src/vs/workbench/contrib/search/browser/replaceService.js +2 -2
- package/vscode/src/vs/workbench/contrib/search/browser/search.contribution.js +74 -74
- 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/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/searchEditor/browser/searchEditor.contribution.js +20 -20
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditor.js +9 -9
- package/vscode/src/vs/workbench/services/search/browser/searchService.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-search-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "29.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - search service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-api": "
|
|
18
|
+
"@codingame/monaco-vscode-api": "29.0.0"
|
|
19
19
|
},
|
|
20
20
|
"main": "index.js",
|
|
21
21
|
"module": "index.js",
|
package/vscode/src/vs/workbench/contrib/search/browser/quickTextSearch/textSearchQuickAccess.js
CHANGED
|
@@ -96,7 +96,7 @@ let TextSearchQuickAccess = class TextSearchQuickAccess extends PickerQuickAcces
|
|
|
96
96
|
picker.buttons = [{
|
|
97
97
|
location: QuickInputButtonLocation.Inline,
|
|
98
98
|
iconClass: ThemeIcon.asClassName(Codicon.goToSearch),
|
|
99
|
-
tooltip: ( localize(
|
|
99
|
+
tooltip: ( localize(12380, "Open in Search View"))
|
|
100
100
|
}];
|
|
101
101
|
this.editorViewState.reset();
|
|
102
102
|
disposables.add(picker.onDidTriggerButton(async () => {
|
|
@@ -220,7 +220,7 @@ let TextSearchQuickAccess = class TextSearchQuickAccess extends PickerQuickAcces
|
|
|
220
220
|
type: "separator"
|
|
221
221
|
});
|
|
222
222
|
picks.push({
|
|
223
|
-
label: ( localize(
|
|
223
|
+
label: ( localize(12381, "See More Files")),
|
|
224
224
|
iconClass: ThemeIcon.asClassName(searchDetailsIcon),
|
|
225
225
|
accept: async () => {
|
|
226
226
|
await this.moveToSearchViewlet(matches[limit]);
|
|
@@ -239,7 +239,7 @@ let TextSearchQuickAccess = class TextSearchQuickAccess extends PickerQuickAcces
|
|
|
239
239
|
description,
|
|
240
240
|
buttons: [{
|
|
241
241
|
iconClass: ThemeIcon.asClassName(searchOpenInFileIcon),
|
|
242
|
-
tooltip: ( localize(
|
|
242
|
+
tooltip: ( localize(12382, "Open File"))
|
|
243
243
|
}],
|
|
244
244
|
trigger: async () => {
|
|
245
245
|
await this.handleAccept(iFileInstanceMatch, {});
|
|
@@ -251,7 +251,7 @@ let TextSearchQuickAccess = class TextSearchQuickAccess extends PickerQuickAcces
|
|
|
251
251
|
const element = results[matchIndex];
|
|
252
252
|
if (matchIndex === MAX_RESULTS_PER_FILE) {
|
|
253
253
|
picks.push({
|
|
254
|
-
label: ( localize(
|
|
254
|
+
label: ( localize(12383, "More")),
|
|
255
255
|
iconClass: ThemeIcon.asClassName(searchDetailsIcon),
|
|
256
256
|
accept: async () => {
|
|
257
257
|
await this.moveToSearchViewlet(element);
|
|
@@ -272,7 +272,7 @@ let TextSearchQuickAccess = class TextSearchQuickAccess extends PickerQuickAcces
|
|
|
272
272
|
},
|
|
273
273
|
buttons: [{
|
|
274
274
|
iconClass: ThemeIcon.asClassName(searchActivityBarIcon),
|
|
275
|
-
tooltip: ( localize(
|
|
275
|
+
tooltip: ( localize(12384, "Open in Search View"))
|
|
276
276
|
}],
|
|
277
277
|
ariaLabel: `Match at location ${element.range().startLineNumber}:${element.range().startColumn} - ${previewText}`,
|
|
278
278
|
accept: async (keyMods, event) => {
|
|
@@ -310,7 +310,7 @@ let TextSearchQuickAccess = class TextSearchQuickAccess extends PickerQuickAcces
|
|
|
310
310
|
if (contentPattern === "") {
|
|
311
311
|
this.searchModel.searchResult.clear();
|
|
312
312
|
return [{
|
|
313
|
-
label: ( localize(
|
|
313
|
+
label: ( localize(12385, "Enter a term to search for across your files."))
|
|
314
314
|
}];
|
|
315
315
|
}
|
|
316
316
|
const conditionalTokenCts = disposables.add(( new CancellationTokenSource()));
|
|
@@ -334,7 +334,7 @@ let TextSearchQuickAccess = class TextSearchQuickAccess extends PickerQuickAcces
|
|
|
334
334
|
return {
|
|
335
335
|
picks: syncResult,
|
|
336
336
|
additionalPicks: allMatches.asyncResults.then(asyncResults => (asyncResults.length + syncResult.length === 0) ? [{
|
|
337
|
-
label: ( localize(
|
|
337
|
+
label: ( localize(12386, "No matching results"))
|
|
338
338
|
}] : this._getPicksFromMatches(asyncResults, MAX_FILES_SHOWN - matches.length)).then(picks => {
|
|
339
339
|
if (picks.length > 0) {
|
|
340
340
|
this.searchModel.searchResult.toggleHighlights(true);
|
|
@@ -112,7 +112,7 @@ let ReplaceService = class ReplaceService {
|
|
|
112
112
|
ReplaceService_1 = this;
|
|
113
113
|
}
|
|
114
114
|
static {
|
|
115
|
-
this.REPLACE_SAVE_SOURCE = SaveSourceRegistry.registerSource("searchReplace.source", ( localize(
|
|
115
|
+
this.REPLACE_SAVE_SOURCE = SaveSourceRegistry.registerSource("searchReplace.source", ( localize(12387, "Search and Replace")));
|
|
116
116
|
}
|
|
117
117
|
constructor(
|
|
118
118
|
textFileService,
|
|
@@ -166,7 +166,7 @@ let ReplaceService = class ReplaceService {
|
|
|
166
166
|
modified: {
|
|
167
167
|
resource: toReplaceResource(fileMatch.resource)
|
|
168
168
|
},
|
|
169
|
-
label: ( localize(
|
|
169
|
+
label: ( localize(12388, "{0} ↔ {1} (Replace Preview)", fileMatch.name(), fileMatch.name())),
|
|
170
170
|
description: this.labelService.getUriLabel(dirname(fileMatch.resource), {
|
|
171
171
|
relative: true
|
|
172
172
|
}),
|
|
@@ -53,7 +53,7 @@ AccessibleViewRegistry.register(( new SearchAccessibilityHelp()));
|
|
|
53
53
|
const SEARCH_MODE_CONFIG = "search.mode";
|
|
54
54
|
const viewContainer = ( Registry.as(Extensions.ViewContainersRegistry)).registerViewContainer({
|
|
55
55
|
id: VIEWLET_ID,
|
|
56
|
-
title: ( localize2(
|
|
56
|
+
title: ( localize2(12389, "Search")),
|
|
57
57
|
ctorDescriptor: ( new SyncDescriptor(ViewPaneContainer, [VIEWLET_ID, {
|
|
58
58
|
mergeViewWithContainerWhenSingleView: true
|
|
59
59
|
}])),
|
|
@@ -66,13 +66,13 @@ const viewContainer = ( Registry.as(Extensions.ViewContainersRegistry)).register
|
|
|
66
66
|
const viewDescriptor = {
|
|
67
67
|
id: VIEW_ID,
|
|
68
68
|
containerIcon: searchViewIcon,
|
|
69
|
-
name: ( localize2(
|
|
69
|
+
name: ( localize2(12389, "Search")),
|
|
70
70
|
ctorDescriptor: ( new SyncDescriptor(SearchView)),
|
|
71
71
|
canToggleVisibility: false,
|
|
72
72
|
canMoveView: true,
|
|
73
73
|
openCommandActionDescriptor: {
|
|
74
74
|
id: viewContainer.id,
|
|
75
|
-
mnemonicTitle: ( localize(
|
|
75
|
+
mnemonicTitle: ( localize(12390, "&&Search")),
|
|
76
76
|
keybindings: {
|
|
77
77
|
primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyF,
|
|
78
78
|
when: ( ContextKeyExpr.regex("neverMatch", /doesNotMatch/))
|
|
@@ -86,14 +86,14 @@ quickAccessRegistry.registerQuickAccessProvider({
|
|
|
86
86
|
ctor: AnythingQuickAccessProvider,
|
|
87
87
|
prefix: AnythingQuickAccessProvider.PREFIX,
|
|
88
88
|
placeholder: ( localize(
|
|
89
|
-
|
|
89
|
+
12391,
|
|
90
90
|
"Search files by name (append {0} to go to line or {1} to go to symbol)",
|
|
91
91
|
AbstractGotoLineQuickAccessProvider.GO_TO_LINE_PREFIX,
|
|
92
92
|
GotoSymbolQuickAccessProvider.PREFIX
|
|
93
93
|
)),
|
|
94
94
|
contextKey: defaultQuickAccessContextKeyValue,
|
|
95
95
|
helpEntries: [{
|
|
96
|
-
description: ( localize(
|
|
96
|
+
description: ( localize(12392, "Go to File")),
|
|
97
97
|
commandId: "workbench.action.quickOpen",
|
|
98
98
|
commandCenterOrder: 10
|
|
99
99
|
}]
|
|
@@ -101,10 +101,10 @@ quickAccessRegistry.registerQuickAccessProvider({
|
|
|
101
101
|
quickAccessRegistry.registerQuickAccessProvider({
|
|
102
102
|
ctor: SymbolsQuickAccessProvider,
|
|
103
103
|
prefix: SymbolsQuickAccessProvider.PREFIX,
|
|
104
|
-
placeholder: ( localize(
|
|
104
|
+
placeholder: ( localize(12393, "Type the name of a symbol to open.")),
|
|
105
105
|
contextKey: "inWorkspaceSymbolsPicker",
|
|
106
106
|
helpEntries: [{
|
|
107
|
-
description: ( localize(
|
|
107
|
+
description: ( localize(12394, "Go to Symbol in Workspace")),
|
|
108
108
|
commandId: SearchCommandIds.ShowAllSymbolsActionId
|
|
109
109
|
}]
|
|
110
110
|
});
|
|
@@ -112,9 +112,9 @@ quickAccessRegistry.registerQuickAccessProvider({
|
|
|
112
112
|
ctor: TextSearchQuickAccess,
|
|
113
113
|
prefix: TEXT_SEARCH_QUICK_ACCESS_PREFIX,
|
|
114
114
|
contextKey: "inTextSearchPicker",
|
|
115
|
-
placeholder: ( localize(
|
|
115
|
+
placeholder: ( localize(12395, "Search for text in your workspace files.")),
|
|
116
116
|
helpEntries: [{
|
|
117
|
-
description: ( localize(
|
|
117
|
+
description: ( localize(12396, "Search for Text")),
|
|
118
118
|
commandId: SearchCommandIds.QuickTextSearchActionId,
|
|
119
119
|
commandCenterOrder: 25
|
|
120
120
|
}]
|
|
@@ -123,13 +123,13 @@ const configurationRegistry = ( Registry.as(Extensions$2.Configuration));
|
|
|
123
123
|
configurationRegistry.registerConfiguration({
|
|
124
124
|
id: "search",
|
|
125
125
|
order: 13,
|
|
126
|
-
title: ( localize(
|
|
126
|
+
title: ( localize(12397, "Search")),
|
|
127
127
|
type: "object",
|
|
128
128
|
properties: {
|
|
129
129
|
[SEARCH_EXCLUDE_CONFIG]: {
|
|
130
130
|
type: "object",
|
|
131
131
|
markdownDescription: ( localize(
|
|
132
|
-
|
|
132
|
+
12398,
|
|
133
133
|
"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."
|
|
134
134
|
)),
|
|
135
135
|
default: {
|
|
@@ -141,7 +141,7 @@ configurationRegistry.registerConfiguration({
|
|
|
141
141
|
anyOf: [{
|
|
142
142
|
type: "boolean",
|
|
143
143
|
description: ( localize(
|
|
144
|
-
|
|
144
|
+
12399,
|
|
145
145
|
"The glob pattern to match file paths against. Set to true or false to enable or disable the pattern."
|
|
146
146
|
))
|
|
147
147
|
}, {
|
|
@@ -152,7 +152,7 @@ configurationRegistry.registerConfiguration({
|
|
|
152
152
|
pattern: "\\w*\\$\\(basename\\)\\w*",
|
|
153
153
|
default: "$(basename).ext",
|
|
154
154
|
markdownDescription: ( localize(
|
|
155
|
-
|
|
155
|
+
12400,
|
|
156
156
|
"Additional check on the siblings of a matching file. Use \\$(basename) as variable for the matching file name."
|
|
157
157
|
))
|
|
158
158
|
}
|
|
@@ -166,22 +166,22 @@ configurationRegistry.registerConfiguration({
|
|
|
166
166
|
enum: ["view", "reuseEditor", "newEditor"],
|
|
167
167
|
default: "view",
|
|
168
168
|
markdownDescription: ( localize(
|
|
169
|
-
|
|
169
|
+
12401,
|
|
170
170
|
"Controls where new `Search: Find in Files` and `Find in Folder` operations occur: either in the Search view, or in a search editor."
|
|
171
171
|
)),
|
|
172
|
-
enumDescriptions: [( localize(
|
|
173
|
-
|
|
172
|
+
enumDescriptions: [( localize(12402, "Search in the Search view, either in the panel or side bars.")), ( localize(
|
|
173
|
+
12403,
|
|
174
174
|
"Search in an existing search editor if present, otherwise in a new search editor."
|
|
175
|
-
)), ( localize(
|
|
175
|
+
)), ( localize(12404, "Search in a new search editor."))]
|
|
176
176
|
},
|
|
177
177
|
"search.useRipgrep": {
|
|
178
178
|
type: "boolean",
|
|
179
179
|
description: ( localize(
|
|
180
|
-
|
|
180
|
+
12405,
|
|
181
181
|
"This setting is deprecated and now falls back on \"search.usePCRE2\"."
|
|
182
182
|
)),
|
|
183
183
|
deprecationMessage: ( localize(
|
|
184
|
-
|
|
184
|
+
12406,
|
|
185
185
|
"Deprecated. Consider \"search.usePCRE2\" for advanced regex feature support."
|
|
186
186
|
)),
|
|
187
187
|
default: true
|
|
@@ -189,11 +189,11 @@ configurationRegistry.registerConfiguration({
|
|
|
189
189
|
"search.maintainFileSearchCache": {
|
|
190
190
|
type: "boolean",
|
|
191
191
|
deprecationMessage: ( localize(
|
|
192
|
-
|
|
192
|
+
12407,
|
|
193
193
|
"The search cache is kept in the extension host which never shuts down, so this setting is no longer needed."
|
|
194
194
|
)),
|
|
195
195
|
description: ( localize(
|
|
196
|
-
|
|
196
|
+
12408,
|
|
197
197
|
"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."
|
|
198
198
|
)),
|
|
199
199
|
default: false
|
|
@@ -201,7 +201,7 @@ configurationRegistry.registerConfiguration({
|
|
|
201
201
|
"search.useIgnoreFiles": {
|
|
202
202
|
type: "boolean",
|
|
203
203
|
markdownDescription: ( localize(
|
|
204
|
-
|
|
204
|
+
12409,
|
|
205
205
|
"Controls whether to use `.gitignore` and `.ignore` files when searching for files."
|
|
206
206
|
)),
|
|
207
207
|
default: true,
|
|
@@ -210,7 +210,7 @@ configurationRegistry.registerConfiguration({
|
|
|
210
210
|
"search.useGlobalIgnoreFiles": {
|
|
211
211
|
type: "boolean",
|
|
212
212
|
markdownDescription: ( localize(
|
|
213
|
-
|
|
213
|
+
12410,
|
|
214
214
|
"Controls whether to use your global gitignore file (for example, from `$HOME/.config/git/ignore`) when searching for files. Requires {0} to be enabled.",
|
|
215
215
|
"`#search.useIgnoreFiles#`"
|
|
216
216
|
)),
|
|
@@ -220,7 +220,7 @@ configurationRegistry.registerConfiguration({
|
|
|
220
220
|
"search.useParentIgnoreFiles": {
|
|
221
221
|
type: "boolean",
|
|
222
222
|
markdownDescription: ( localize(
|
|
223
|
-
|
|
223
|
+
12411,
|
|
224
224
|
"Controls whether to use `.gitignore` and `.ignore` files in parent directories when searching for files. Requires {0} to be enabled.",
|
|
225
225
|
"`#search.useIgnoreFiles#`"
|
|
226
226
|
)),
|
|
@@ -230,7 +230,7 @@ configurationRegistry.registerConfiguration({
|
|
|
230
230
|
"search.quickOpen.includeSymbols": {
|
|
231
231
|
type: "boolean",
|
|
232
232
|
description: ( localize(
|
|
233
|
-
|
|
233
|
+
12412,
|
|
234
234
|
"Whether to include results from a global symbol search in the file results for Quick Open."
|
|
235
235
|
)),
|
|
236
236
|
default: false
|
|
@@ -238,7 +238,7 @@ configurationRegistry.registerConfiguration({
|
|
|
238
238
|
"search.ripgrep.maxThreads": {
|
|
239
239
|
type: "number",
|
|
240
240
|
description: ( localize(
|
|
241
|
-
|
|
241
|
+
12413,
|
|
242
242
|
"Number of threads to use for searching. When set to 0, the engine automatically determines this value."
|
|
243
243
|
)),
|
|
244
244
|
default: 0
|
|
@@ -246,7 +246,7 @@ configurationRegistry.registerConfiguration({
|
|
|
246
246
|
"search.quickOpen.includeHistory": {
|
|
247
247
|
type: "boolean",
|
|
248
248
|
description: ( localize(
|
|
249
|
-
|
|
249
|
+
12414,
|
|
250
250
|
"Whether to include results from recently opened files in the file results for Quick Open."
|
|
251
251
|
)),
|
|
252
252
|
default: true
|
|
@@ -256,26 +256,26 @@ configurationRegistry.registerConfiguration({
|
|
|
256
256
|
enum: ["default", "recency"],
|
|
257
257
|
default: "default",
|
|
258
258
|
enumDescriptions: [( localize(
|
|
259
|
-
|
|
259
|
+
12415,
|
|
260
260
|
"History entries are sorted by relevance based on the filter value used. More relevant entries appear first."
|
|
261
261
|
)), ( localize(
|
|
262
|
-
|
|
262
|
+
12416,
|
|
263
263
|
"History entries are sorted by recency. More recently opened entries appear first."
|
|
264
264
|
))],
|
|
265
265
|
description: ( localize(
|
|
266
|
-
|
|
266
|
+
12417,
|
|
267
267
|
"Controls sorting order of editor history in quick open when filtering."
|
|
268
268
|
))
|
|
269
269
|
},
|
|
270
270
|
"search.followSymlinks": {
|
|
271
271
|
type: "boolean",
|
|
272
|
-
description: ( localize(
|
|
272
|
+
description: ( localize(12418, "Controls whether to follow symlinks while searching.")),
|
|
273
273
|
default: true
|
|
274
274
|
},
|
|
275
275
|
"search.smartCase": {
|
|
276
276
|
type: "boolean",
|
|
277
277
|
description: ( localize(
|
|
278
|
-
|
|
278
|
+
12419,
|
|
279
279
|
"Search case-insensitively if the pattern is all lowercase, otherwise, search case-sensitively."
|
|
280
280
|
)),
|
|
281
281
|
default: false
|
|
@@ -284,7 +284,7 @@ configurationRegistry.registerConfiguration({
|
|
|
284
284
|
type: "boolean",
|
|
285
285
|
default: false,
|
|
286
286
|
description: ( localize(
|
|
287
|
-
|
|
287
|
+
12420,
|
|
288
288
|
"Controls whether the Search view should read or modify the shared find clipboard on macOS."
|
|
289
289
|
)),
|
|
290
290
|
included: isMacintosh
|
|
@@ -294,11 +294,11 @@ configurationRegistry.registerConfiguration({
|
|
|
294
294
|
enum: ["sidebar", "panel"],
|
|
295
295
|
default: "sidebar",
|
|
296
296
|
description: ( localize(
|
|
297
|
-
|
|
297
|
+
12421,
|
|
298
298
|
"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."
|
|
299
299
|
)),
|
|
300
300
|
deprecationMessage: ( localize(
|
|
301
|
-
|
|
301
|
+
12422,
|
|
302
302
|
"This setting is deprecated. You can drag the search icon to a new location instead."
|
|
303
303
|
))
|
|
304
304
|
},
|
|
@@ -306,7 +306,7 @@ configurationRegistry.registerConfiguration({
|
|
|
306
306
|
type: ["number", "null"],
|
|
307
307
|
default: DEFAULT_MAX_SEARCH_RESULTS,
|
|
308
308
|
markdownDescription: ( localize(
|
|
309
|
-
|
|
309
|
+
12423,
|
|
310
310
|
"Controls the maximum number of search results, this can be set to `null` (empty) to return unlimited results."
|
|
311
311
|
))
|
|
312
312
|
},
|
|
@@ -314,12 +314,12 @@ configurationRegistry.registerConfiguration({
|
|
|
314
314
|
type: "string",
|
|
315
315
|
enum: ["auto", "alwaysCollapse", "alwaysExpand"],
|
|
316
316
|
enumDescriptions: [( localize(
|
|
317
|
-
|
|
317
|
+
12424,
|
|
318
318
|
"Files with less than 10 results are expanded. Others are collapsed."
|
|
319
319
|
)), "", ""],
|
|
320
320
|
default: "alwaysExpand",
|
|
321
321
|
description: ( localize(
|
|
322
|
-
|
|
322
|
+
12425,
|
|
323
323
|
"Controls whether the search results will be collapsed or expanded."
|
|
324
324
|
))
|
|
325
325
|
},
|
|
@@ -327,24 +327,24 @@ configurationRegistry.registerConfiguration({
|
|
|
327
327
|
type: "boolean",
|
|
328
328
|
default: true,
|
|
329
329
|
description: ( localize(
|
|
330
|
-
|
|
330
|
+
12426,
|
|
331
331
|
"Controls whether to open Replace Preview when selecting or replacing a match."
|
|
332
332
|
))
|
|
333
333
|
},
|
|
334
334
|
"search.showLineNumbers": {
|
|
335
335
|
type: "boolean",
|
|
336
336
|
default: false,
|
|
337
|
-
description: ( localize(
|
|
337
|
+
description: ( localize(12427, "Controls whether to show line numbers for search results."))
|
|
338
338
|
},
|
|
339
339
|
"search.usePCRE2": {
|
|
340
340
|
type: "boolean",
|
|
341
341
|
default: false,
|
|
342
342
|
description: ( localize(
|
|
343
|
-
|
|
343
|
+
12428,
|
|
344
344
|
"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."
|
|
345
345
|
)),
|
|
346
346
|
deprecationMessage: ( localize(
|
|
347
|
-
|
|
347
|
+
12429,
|
|
348
348
|
"Deprecated. PCRE2 will be used automatically when using regex features that are only supported by PCRE2."
|
|
349
349
|
))
|
|
350
350
|
},
|
|
@@ -352,25 +352,25 @@ configurationRegistry.registerConfiguration({
|
|
|
352
352
|
type: "string",
|
|
353
353
|
enum: ["auto", "right"],
|
|
354
354
|
enumDescriptions: [( localize(
|
|
355
|
-
|
|
355
|
+
12430,
|
|
356
356
|
"Position the actionbar to the right when the Search view is narrow, and immediately after the content when the Search view is wide."
|
|
357
|
-
)), ( localize(
|
|
357
|
+
)), ( localize(12431, "Always position the actionbar to the right."))],
|
|
358
358
|
default: "right",
|
|
359
359
|
description: ( localize(
|
|
360
|
-
|
|
360
|
+
12432,
|
|
361
361
|
"Controls the positioning of the actionbar on rows in the Search view."
|
|
362
362
|
))
|
|
363
363
|
},
|
|
364
364
|
"search.searchOnType": {
|
|
365
365
|
type: "boolean",
|
|
366
366
|
default: true,
|
|
367
|
-
description: ( localize(
|
|
367
|
+
description: ( localize(12433, "Search all files as you type."))
|
|
368
368
|
},
|
|
369
369
|
"search.seedWithNearestWord": {
|
|
370
370
|
type: "boolean",
|
|
371
371
|
default: false,
|
|
372
372
|
description: ( localize(
|
|
373
|
-
|
|
373
|
+
12434,
|
|
374
374
|
"Enable seeding search from the word nearest the cursor when the active editor has no selection."
|
|
375
375
|
))
|
|
376
376
|
},
|
|
@@ -378,7 +378,7 @@ configurationRegistry.registerConfiguration({
|
|
|
378
378
|
type: "boolean",
|
|
379
379
|
default: false,
|
|
380
380
|
markdownDescription: ( localize(
|
|
381
|
-
|
|
381
|
+
12435,
|
|
382
382
|
"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."
|
|
383
383
|
))
|
|
384
384
|
},
|
|
@@ -386,7 +386,7 @@ configurationRegistry.registerConfiguration({
|
|
|
386
386
|
type: "number",
|
|
387
387
|
default: 300,
|
|
388
388
|
markdownDescription: ( localize(
|
|
389
|
-
|
|
389
|
+
12436,
|
|
390
390
|
"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.",
|
|
391
391
|
"`#search.searchOnType#`"
|
|
392
392
|
))
|
|
@@ -395,24 +395,24 @@ configurationRegistry.registerConfiguration({
|
|
|
395
395
|
type: "string",
|
|
396
396
|
enum: ["selectWord", "goToLocation", "openLocationToSide"],
|
|
397
397
|
default: "goToLocation",
|
|
398
|
-
enumDescriptions: [( localize(
|
|
399
|
-
|
|
398
|
+
enumDescriptions: [( localize(12437, "Double-clicking selects the word under the cursor.")), ( localize(12438, "Double-clicking opens the result in the active editor group.")), ( localize(
|
|
399
|
+
12439,
|
|
400
400
|
"Double-clicking opens the result in the editor group to the side, creating one if it does not yet exist."
|
|
401
401
|
))],
|
|
402
|
-
markdownDescription: ( localize(
|
|
402
|
+
markdownDescription: ( localize(12440, "Configure effect of double-clicking a result in a search editor."))
|
|
403
403
|
},
|
|
404
404
|
"search.searchEditor.singleClickBehaviour": {
|
|
405
405
|
type: "string",
|
|
406
406
|
enum: ["default", "peekDefinition"],
|
|
407
407
|
default: "default",
|
|
408
|
-
enumDescriptions: [( localize(
|
|
409
|
-
markdownDescription: ( localize(
|
|
408
|
+
enumDescriptions: [( localize(12441, "Single-clicking does nothing.")), ( localize(12442, "Single-clicking opens a Peek Definition window."))],
|
|
409
|
+
markdownDescription: ( localize(12443, "Configure effect of single-clicking a result in a search editor."))
|
|
410
410
|
},
|
|
411
411
|
"search.searchEditor.reusePriorSearchConfiguration": {
|
|
412
412
|
type: "boolean",
|
|
413
413
|
default: false,
|
|
414
414
|
markdownDescription: ( localize(
|
|
415
|
-
|
|
415
|
+
12444,
|
|
416
416
|
"When enabled, new Search Editors will reuse the includes, excludes, and flags of the previously opened Search Editor."
|
|
417
417
|
))
|
|
418
418
|
},
|
|
@@ -420,7 +420,7 @@ configurationRegistry.registerConfiguration({
|
|
|
420
420
|
type: ["number", "null"],
|
|
421
421
|
default: 1,
|
|
422
422
|
markdownDescription: ( localize(
|
|
423
|
-
|
|
423
|
+
12445,
|
|
424
424
|
"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."
|
|
425
425
|
))
|
|
426
426
|
},
|
|
@@ -428,7 +428,7 @@ configurationRegistry.registerConfiguration({
|
|
|
428
428
|
type: "boolean",
|
|
429
429
|
default: false,
|
|
430
430
|
markdownDescription: ( localize(
|
|
431
|
-
|
|
431
|
+
12446,
|
|
432
432
|
"When a search is triggered, focus the Search Editor results instead of the Search Editor input."
|
|
433
433
|
))
|
|
434
434
|
},
|
|
@@ -444,38 +444,38 @@ configurationRegistry.registerConfiguration({
|
|
|
444
444
|
],
|
|
445
445
|
default: SearchSortOrder.Default,
|
|
446
446
|
enumDescriptions: [( localize(
|
|
447
|
-
|
|
447
|
+
12447,
|
|
448
448
|
"Results are sorted by folder and file names, in alphabetical order."
|
|
449
449
|
)), ( localize(
|
|
450
|
-
|
|
450
|
+
12448,
|
|
451
451
|
"Results are sorted by file names ignoring folder order, in alphabetical order."
|
|
452
|
-
)), ( localize(
|
|
453
|
-
|
|
452
|
+
)), ( localize(12449, "Results are sorted by file extensions, in alphabetical order.")), ( localize(
|
|
453
|
+
12450,
|
|
454
454
|
"Results are sorted by file last modified date, in descending order."
|
|
455
|
-
)), ( localize(
|
|
456
|
-
description: ( localize(
|
|
455
|
+
)), ( localize(12451, "Results are sorted by count per file, in descending order.")), ( localize(12452, "Results are sorted by count per file, in ascending order."))],
|
|
456
|
+
description: ( localize(12453, "Controls sorting order of search results."))
|
|
457
457
|
},
|
|
458
458
|
"search.decorations.colors": {
|
|
459
459
|
type: "boolean",
|
|
460
|
-
description: ( localize(
|
|
460
|
+
description: ( localize(12454, "Controls whether search file decorations should use colors.")),
|
|
461
461
|
default: true
|
|
462
462
|
},
|
|
463
463
|
"search.decorations.badges": {
|
|
464
464
|
type: "boolean",
|
|
465
|
-
description: ( localize(
|
|
465
|
+
description: ( localize(12455, "Controls whether search file decorations should use badges.")),
|
|
466
466
|
default: true
|
|
467
467
|
},
|
|
468
468
|
"search.defaultViewMode": {
|
|
469
469
|
type: "string",
|
|
470
470
|
enum: [ViewMode.Tree, ViewMode.List],
|
|
471
471
|
default: ViewMode.List,
|
|
472
|
-
enumDescriptions: [( localize(
|
|
473
|
-
description: ( localize(
|
|
472
|
+
enumDescriptions: [( localize(12456, "Shows search results as a tree.")), ( localize(12457, "Shows search results as a list."))],
|
|
473
|
+
description: ( localize(12458, "Controls the default search result view mode."))
|
|
474
474
|
},
|
|
475
475
|
"search.quickAccess.preserveInput": {
|
|
476
476
|
type: "boolean",
|
|
477
477
|
description: ( localize(
|
|
478
|
-
|
|
478
|
+
12459,
|
|
479
479
|
"Controls whether the last typed input to Quick Search should be restored when opening it the next time."
|
|
480
480
|
)),
|
|
481
481
|
default: false
|
|
@@ -483,7 +483,7 @@ configurationRegistry.registerConfiguration({
|
|
|
483
483
|
"search.experimental.closedNotebookRichContentResults": {
|
|
484
484
|
type: "boolean",
|
|
485
485
|
description: ( localize(
|
|
486
|
-
|
|
486
|
+
12460,
|
|
487
487
|
"Show notebook editor rich content results for closed notebooks. Please refresh your search results after changing this setting."
|
|
488
488
|
)),
|
|
489
489
|
default: false
|
|
@@ -491,7 +491,7 @@ configurationRegistry.registerConfiguration({
|
|
|
491
491
|
"search.searchView.semanticSearchBehavior": {
|
|
492
492
|
type: "string",
|
|
493
493
|
description: ( localize(
|
|
494
|
-
|
|
494
|
+
12461,
|
|
495
495
|
"Controls the behavior of the semantic search results displayed in the Search view."
|
|
496
496
|
)),
|
|
497
497
|
enum: [
|
|
@@ -500,15 +500,15 @@ configurationRegistry.registerConfiguration({
|
|
|
500
500
|
SemanticSearchBehavior.Auto
|
|
501
501
|
],
|
|
502
502
|
default: SemanticSearchBehavior.Manual,
|
|
503
|
-
enumDescriptions: [( localize(
|
|
504
|
-
|
|
503
|
+
enumDescriptions: [( localize(12462, "Only request semantic search results manually.")), ( localize(
|
|
504
|
+
12463,
|
|
505
505
|
"Request semantic results automatically only when text search results are empty."
|
|
506
|
-
)), ( localize(
|
|
506
|
+
)), ( localize(12464, "Request semantic results automatically with every search."))],
|
|
507
507
|
tags: ["preview"]
|
|
508
508
|
},
|
|
509
509
|
"search.searchView.keywordSuggestions": {
|
|
510
510
|
type: "boolean",
|
|
511
|
-
description: ( localize(
|
|
511
|
+
description: ( localize(12465, "Enable keyword suggestions in the Search view.")),
|
|
512
512
|
default: false,
|
|
513
513
|
tags: ["preview"]
|
|
514
514
|
}
|