@codingame/monaco-vscode-search-service-override 32.0.0 → 32.0.1
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 +62 -62
- 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 +29 -29
- 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": "32.0.
|
|
3
|
+
"version": "32.0.1",
|
|
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": "32.0.
|
|
18
|
+
"@codingame/monaco-vscode-api": "32.0.1"
|
|
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(12892, "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(12893, "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(12894, "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(12895, "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(12896, "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(12897, "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(12898, "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(12899, "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(12900, "{0} ↔ {1} (Replace Preview)", fileMatch.name(), fileMatch.name())),
|
|
170
170
|
description: this.labelService.getUriLabel(dirname(fileMatch.resource), {
|
|
171
171
|
relative: true
|
|
172
172
|
}),
|
|
@@ -45,7 +45,7 @@ AccessibleViewRegistry.register(( new SearchAccessibilityHelp()));
|
|
|
45
45
|
const SEARCH_MODE_CONFIG = "search.mode";
|
|
46
46
|
const viewContainer = ( Registry.as(Extensions.ViewContainersRegistry)).registerViewContainer({
|
|
47
47
|
id: VIEWLET_ID,
|
|
48
|
-
title: ( localize2(
|
|
48
|
+
title: ( localize2(12901, "Search")),
|
|
49
49
|
ctorDescriptor: ( new SyncDescriptor(ViewPaneContainer, [VIEWLET_ID, {
|
|
50
50
|
mergeViewWithContainerWhenSingleView: true
|
|
51
51
|
}])),
|
|
@@ -58,13 +58,13 @@ const viewContainer = ( Registry.as(Extensions.ViewContainersRegistry)).register
|
|
|
58
58
|
const viewDescriptor = {
|
|
59
59
|
id: VIEW_ID,
|
|
60
60
|
containerIcon: searchViewIcon,
|
|
61
|
-
name: ( localize2(
|
|
61
|
+
name: ( localize2(12901, "Search")),
|
|
62
62
|
ctorDescriptor: ( new SyncDescriptor(SearchView)),
|
|
63
63
|
canToggleVisibility: false,
|
|
64
64
|
canMoveView: true,
|
|
65
65
|
openCommandActionDescriptor: {
|
|
66
66
|
id: viewContainer.id,
|
|
67
|
-
mnemonicTitle: ( localize(
|
|
67
|
+
mnemonicTitle: ( localize(12902, "&&Search")),
|
|
68
68
|
keybindings: {
|
|
69
69
|
primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyF,
|
|
70
70
|
when: ( ContextKeyExpr.regex("neverMatch", /doesNotMatch/))
|
|
@@ -78,9 +78,9 @@ quickAccessRegistry.registerQuickAccessProvider({
|
|
|
78
78
|
ctor: TextSearchQuickAccess,
|
|
79
79
|
prefix: TEXT_SEARCH_QUICK_ACCESS_PREFIX,
|
|
80
80
|
contextKey: "inTextSearchPicker",
|
|
81
|
-
placeholder: ( localize(
|
|
81
|
+
placeholder: ( localize(12903, "Search for text in your workspace files.")),
|
|
82
82
|
helpEntries: [{
|
|
83
|
-
description: ( localize(
|
|
83
|
+
description: ( localize(12904, "Search for Text")),
|
|
84
84
|
commandId: SearchCommandIds.QuickTextSearchActionId,
|
|
85
85
|
commandCenterOrder: 25
|
|
86
86
|
}]
|
|
@@ -89,13 +89,13 @@ const configurationRegistry = ( Registry.as(Extensions$2.Configuration));
|
|
|
89
89
|
configurationRegistry.registerConfiguration({
|
|
90
90
|
id: "search",
|
|
91
91
|
order: 13,
|
|
92
|
-
title: ( localize(
|
|
92
|
+
title: ( localize(12905, "Search")),
|
|
93
93
|
type: "object",
|
|
94
94
|
properties: {
|
|
95
95
|
[SEARCH_EXCLUDE_CONFIG]: {
|
|
96
96
|
type: "object",
|
|
97
97
|
markdownDescription: ( localize(
|
|
98
|
-
|
|
98
|
+
12906,
|
|
99
99
|
"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."
|
|
100
100
|
)),
|
|
101
101
|
default: {
|
|
@@ -107,7 +107,7 @@ configurationRegistry.registerConfiguration({
|
|
|
107
107
|
anyOf: [{
|
|
108
108
|
type: "boolean",
|
|
109
109
|
description: ( localize(
|
|
110
|
-
|
|
110
|
+
12907,
|
|
111
111
|
"The glob pattern to match file paths against. Set to true or false to enable or disable the pattern."
|
|
112
112
|
))
|
|
113
113
|
}, {
|
|
@@ -118,7 +118,7 @@ configurationRegistry.registerConfiguration({
|
|
|
118
118
|
pattern: "\\w*\\$\\(basename\\)\\w*",
|
|
119
119
|
default: "$(basename).ext",
|
|
120
120
|
markdownDescription: ( localize(
|
|
121
|
-
|
|
121
|
+
12908,
|
|
122
122
|
"Additional check on the siblings of a matching file. Use \\$(basename) as variable for the matching file name."
|
|
123
123
|
))
|
|
124
124
|
}
|
|
@@ -132,22 +132,22 @@ configurationRegistry.registerConfiguration({
|
|
|
132
132
|
enum: ["view", "reuseEditor", "newEditor"],
|
|
133
133
|
default: "view",
|
|
134
134
|
markdownDescription: ( localize(
|
|
135
|
-
|
|
135
|
+
12909,
|
|
136
136
|
"Controls where new `Search: Find in Files` and `Find in Folder` operations occur: either in the Search view, or in a search editor."
|
|
137
137
|
)),
|
|
138
|
-
enumDescriptions: [( localize(
|
|
139
|
-
|
|
138
|
+
enumDescriptions: [( localize(12910, "Search in the Search view, either in the panel or side bars.")), ( localize(
|
|
139
|
+
12911,
|
|
140
140
|
"Search in an existing search editor if present, otherwise in a new search editor."
|
|
141
|
-
)), ( localize(
|
|
141
|
+
)), ( localize(12912, "Search in a new search editor."))]
|
|
142
142
|
},
|
|
143
143
|
"search.useRipgrep": {
|
|
144
144
|
type: "boolean",
|
|
145
145
|
description: ( localize(
|
|
146
|
-
|
|
146
|
+
12913,
|
|
147
147
|
"This setting is deprecated and now falls back on \"search.usePCRE2\"."
|
|
148
148
|
)),
|
|
149
149
|
deprecationMessage: ( localize(
|
|
150
|
-
|
|
150
|
+
12914,
|
|
151
151
|
"Deprecated. Consider \"search.usePCRE2\" for advanced regex feature support."
|
|
152
152
|
)),
|
|
153
153
|
default: true
|
|
@@ -155,11 +155,11 @@ configurationRegistry.registerConfiguration({
|
|
|
155
155
|
"search.maintainFileSearchCache": {
|
|
156
156
|
type: "boolean",
|
|
157
157
|
deprecationMessage: ( localize(
|
|
158
|
-
|
|
158
|
+
12915,
|
|
159
159
|
"The search cache is kept in the extension host which never shuts down, so this setting is no longer needed."
|
|
160
160
|
)),
|
|
161
161
|
description: ( localize(
|
|
162
|
-
|
|
162
|
+
12916,
|
|
163
163
|
"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."
|
|
164
164
|
)),
|
|
165
165
|
default: false
|
|
@@ -167,7 +167,7 @@ configurationRegistry.registerConfiguration({
|
|
|
167
167
|
"search.useIgnoreFiles": {
|
|
168
168
|
type: "boolean",
|
|
169
169
|
markdownDescription: ( localize(
|
|
170
|
-
|
|
170
|
+
12917,
|
|
171
171
|
"Controls whether to use `.gitignore` and `.ignore` files when searching for files."
|
|
172
172
|
)),
|
|
173
173
|
default: true,
|
|
@@ -176,7 +176,7 @@ configurationRegistry.registerConfiguration({
|
|
|
176
176
|
"search.useGlobalIgnoreFiles": {
|
|
177
177
|
type: "boolean",
|
|
178
178
|
markdownDescription: ( localize(
|
|
179
|
-
|
|
179
|
+
12918,
|
|
180
180
|
"Controls whether to use your global gitignore file (for example, from `$HOME/.config/git/ignore`) when searching for files. Requires {0} to be enabled.",
|
|
181
181
|
"`#search.useIgnoreFiles#`"
|
|
182
182
|
)),
|
|
@@ -186,7 +186,7 @@ configurationRegistry.registerConfiguration({
|
|
|
186
186
|
"search.useParentIgnoreFiles": {
|
|
187
187
|
type: "boolean",
|
|
188
188
|
markdownDescription: ( localize(
|
|
189
|
-
|
|
189
|
+
12919,
|
|
190
190
|
"Controls whether to use `.gitignore` and `.ignore` files in parent directories when searching for files. Requires {0} to be enabled.",
|
|
191
191
|
"`#search.useIgnoreFiles#`"
|
|
192
192
|
)),
|
|
@@ -196,7 +196,7 @@ configurationRegistry.registerConfiguration({
|
|
|
196
196
|
"search.quickOpen.includeSymbols": {
|
|
197
197
|
type: "boolean",
|
|
198
198
|
description: ( localize(
|
|
199
|
-
|
|
199
|
+
12920,
|
|
200
200
|
"Whether to include results from a global symbol search in the file results for Quick Open."
|
|
201
201
|
)),
|
|
202
202
|
default: false
|
|
@@ -204,7 +204,7 @@ configurationRegistry.registerConfiguration({
|
|
|
204
204
|
"search.ripgrep.maxThreads": {
|
|
205
205
|
type: "number",
|
|
206
206
|
description: ( localize(
|
|
207
|
-
|
|
207
|
+
12921,
|
|
208
208
|
"Number of threads to use for searching. When set to 0, the engine automatically determines this value."
|
|
209
209
|
)),
|
|
210
210
|
default: 0
|
|
@@ -212,7 +212,7 @@ configurationRegistry.registerConfiguration({
|
|
|
212
212
|
"search.quickOpen.includeHistory": {
|
|
213
213
|
type: "boolean",
|
|
214
214
|
description: ( localize(
|
|
215
|
-
|
|
215
|
+
12922,
|
|
216
216
|
"Whether to include results from recently opened files in the file results for Quick Open."
|
|
217
217
|
)),
|
|
218
218
|
default: true,
|
|
@@ -225,26 +225,26 @@ configurationRegistry.registerConfiguration({
|
|
|
225
225
|
enum: ["default", "recency"],
|
|
226
226
|
default: "default",
|
|
227
227
|
enumDescriptions: [( localize(
|
|
228
|
-
|
|
228
|
+
12923,
|
|
229
229
|
"History entries are sorted by relevance based on the filter value used. More relevant entries appear first."
|
|
230
230
|
)), ( localize(
|
|
231
|
-
|
|
231
|
+
12924,
|
|
232
232
|
"History entries are sorted by recency. More recently opened entries appear first."
|
|
233
233
|
))],
|
|
234
234
|
description: ( localize(
|
|
235
|
-
|
|
235
|
+
12925,
|
|
236
236
|
"Controls sorting order of editor history in quick open when filtering."
|
|
237
237
|
))
|
|
238
238
|
},
|
|
239
239
|
"search.followSymlinks": {
|
|
240
240
|
type: "boolean",
|
|
241
|
-
description: ( localize(
|
|
241
|
+
description: ( localize(12926, "Controls whether to follow symlinks while searching.")),
|
|
242
242
|
default: true
|
|
243
243
|
},
|
|
244
244
|
"search.smartCase": {
|
|
245
245
|
type: "boolean",
|
|
246
246
|
description: ( localize(
|
|
247
|
-
|
|
247
|
+
12927,
|
|
248
248
|
"Search case-insensitively if the pattern is all lowercase, otherwise, search case-sensitively."
|
|
249
249
|
)),
|
|
250
250
|
default: false
|
|
@@ -253,7 +253,7 @@ configurationRegistry.registerConfiguration({
|
|
|
253
253
|
type: "boolean",
|
|
254
254
|
default: false,
|
|
255
255
|
description: ( localize(
|
|
256
|
-
|
|
256
|
+
12928,
|
|
257
257
|
"Controls whether the Search view should read or modify the shared find clipboard on macOS."
|
|
258
258
|
)),
|
|
259
259
|
included: isMacintosh
|
|
@@ -263,11 +263,11 @@ configurationRegistry.registerConfiguration({
|
|
|
263
263
|
enum: ["sidebar", "panel"],
|
|
264
264
|
default: "sidebar",
|
|
265
265
|
description: ( localize(
|
|
266
|
-
|
|
266
|
+
12929,
|
|
267
267
|
"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."
|
|
268
268
|
)),
|
|
269
269
|
deprecationMessage: ( localize(
|
|
270
|
-
|
|
270
|
+
12930,
|
|
271
271
|
"This setting is deprecated. You can drag the search icon to a new location instead."
|
|
272
272
|
))
|
|
273
273
|
},
|
|
@@ -275,7 +275,7 @@ configurationRegistry.registerConfiguration({
|
|
|
275
275
|
type: ["number", "null"],
|
|
276
276
|
default: DEFAULT_MAX_SEARCH_RESULTS,
|
|
277
277
|
markdownDescription: ( localize(
|
|
278
|
-
|
|
278
|
+
12931,
|
|
279
279
|
"Controls the maximum number of search results, this can be set to `null` (empty) to return unlimited results."
|
|
280
280
|
))
|
|
281
281
|
},
|
|
@@ -283,12 +283,12 @@ configurationRegistry.registerConfiguration({
|
|
|
283
283
|
type: "string",
|
|
284
284
|
enum: ["auto", "alwaysCollapse", "alwaysExpand"],
|
|
285
285
|
enumDescriptions: [( localize(
|
|
286
|
-
|
|
286
|
+
12932,
|
|
287
287
|
"Files with less than 10 results are expanded. Others are collapsed."
|
|
288
288
|
)), "", ""],
|
|
289
289
|
default: "alwaysExpand",
|
|
290
290
|
description: ( localize(
|
|
291
|
-
|
|
291
|
+
12933,
|
|
292
292
|
"Controls whether the search results will be collapsed or expanded."
|
|
293
293
|
))
|
|
294
294
|
},
|
|
@@ -296,24 +296,24 @@ configurationRegistry.registerConfiguration({
|
|
|
296
296
|
type: "boolean",
|
|
297
297
|
default: true,
|
|
298
298
|
description: ( localize(
|
|
299
|
-
|
|
299
|
+
12934,
|
|
300
300
|
"Controls whether to open Replace Preview when selecting or replacing a match."
|
|
301
301
|
))
|
|
302
302
|
},
|
|
303
303
|
"search.showLineNumbers": {
|
|
304
304
|
type: "boolean",
|
|
305
305
|
default: false,
|
|
306
|
-
description: ( localize(
|
|
306
|
+
description: ( localize(12935, "Controls whether to show line numbers for search results."))
|
|
307
307
|
},
|
|
308
308
|
"search.usePCRE2": {
|
|
309
309
|
type: "boolean",
|
|
310
310
|
default: false,
|
|
311
311
|
description: ( localize(
|
|
312
|
-
|
|
312
|
+
12936,
|
|
313
313
|
"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."
|
|
314
314
|
)),
|
|
315
315
|
deprecationMessage: ( localize(
|
|
316
|
-
|
|
316
|
+
12937,
|
|
317
317
|
"Deprecated. PCRE2 will be used automatically when using regex features that are only supported by PCRE2."
|
|
318
318
|
))
|
|
319
319
|
},
|
|
@@ -321,25 +321,25 @@ configurationRegistry.registerConfiguration({
|
|
|
321
321
|
type: "string",
|
|
322
322
|
enum: ["auto", "right"],
|
|
323
323
|
enumDescriptions: [( localize(
|
|
324
|
-
|
|
324
|
+
12938,
|
|
325
325
|
"Position the actionbar to the right when the Search view is narrow, and immediately after the content when the Search view is wide."
|
|
326
|
-
)), ( localize(
|
|
326
|
+
)), ( localize(12939, "Always position the actionbar to the right."))],
|
|
327
327
|
default: "right",
|
|
328
328
|
description: ( localize(
|
|
329
|
-
|
|
329
|
+
12940,
|
|
330
330
|
"Controls the positioning of the actionbar on rows in the Search view."
|
|
331
331
|
))
|
|
332
332
|
},
|
|
333
333
|
"search.searchOnType": {
|
|
334
334
|
type: "boolean",
|
|
335
335
|
default: true,
|
|
336
|
-
description: ( localize(
|
|
336
|
+
description: ( localize(12941, "Search all files as you type."))
|
|
337
337
|
},
|
|
338
338
|
"search.seedWithNearestWord": {
|
|
339
339
|
type: "boolean",
|
|
340
340
|
default: false,
|
|
341
341
|
description: ( localize(
|
|
342
|
-
|
|
342
|
+
12942,
|
|
343
343
|
"Enable seeding search from the word nearest the cursor when the active editor has no selection."
|
|
344
344
|
))
|
|
345
345
|
},
|
|
@@ -347,7 +347,7 @@ configurationRegistry.registerConfiguration({
|
|
|
347
347
|
type: "boolean",
|
|
348
348
|
default: false,
|
|
349
349
|
markdownDescription: ( localize(
|
|
350
|
-
|
|
350
|
+
12943,
|
|
351
351
|
"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."
|
|
352
352
|
))
|
|
353
353
|
},
|
|
@@ -355,7 +355,7 @@ configurationRegistry.registerConfiguration({
|
|
|
355
355
|
type: "number",
|
|
356
356
|
default: 300,
|
|
357
357
|
markdownDescription: ( localize(
|
|
358
|
-
|
|
358
|
+
12944,
|
|
359
359
|
"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.",
|
|
360
360
|
"`#search.searchOnType#`"
|
|
361
361
|
))
|
|
@@ -372,38 +372,38 @@ configurationRegistry.registerConfiguration({
|
|
|
372
372
|
],
|
|
373
373
|
default: SearchSortOrder.Default,
|
|
374
374
|
enumDescriptions: [( localize(
|
|
375
|
-
|
|
375
|
+
12945,
|
|
376
376
|
"Results are sorted by folder and file names, in alphabetical order."
|
|
377
377
|
)), ( localize(
|
|
378
|
-
|
|
378
|
+
12946,
|
|
379
379
|
"Results are sorted by file names ignoring folder order, in alphabetical order."
|
|
380
|
-
)), ( localize(
|
|
381
|
-
|
|
380
|
+
)), ( localize(12947, "Results are sorted by file extensions, in alphabetical order.")), ( localize(
|
|
381
|
+
12948,
|
|
382
382
|
"Results are sorted by file last modified date, in descending order."
|
|
383
|
-
)), ( localize(
|
|
384
|
-
description: ( localize(
|
|
383
|
+
)), ( localize(12949, "Results are sorted by count per file, in descending order.")), ( localize(12950, "Results are sorted by count per file, in ascending order."))],
|
|
384
|
+
description: ( localize(12951, "Controls sorting order of search results."))
|
|
385
385
|
},
|
|
386
386
|
"search.decorations.colors": {
|
|
387
387
|
type: "boolean",
|
|
388
|
-
description: ( localize(
|
|
388
|
+
description: ( localize(12952, "Controls whether search file decorations should use colors.")),
|
|
389
389
|
default: true
|
|
390
390
|
},
|
|
391
391
|
"search.decorations.badges": {
|
|
392
392
|
type: "boolean",
|
|
393
|
-
description: ( localize(
|
|
393
|
+
description: ( localize(12953, "Controls whether search file decorations should use badges.")),
|
|
394
394
|
default: true
|
|
395
395
|
},
|
|
396
396
|
"search.defaultViewMode": {
|
|
397
397
|
type: "string",
|
|
398
398
|
enum: [ViewMode.Tree, ViewMode.List],
|
|
399
399
|
default: ViewMode.List,
|
|
400
|
-
enumDescriptions: [( localize(
|
|
401
|
-
description: ( localize(
|
|
400
|
+
enumDescriptions: [( localize(12954, "Shows search results as a tree.")), ( localize(12955, "Shows search results as a list."))],
|
|
401
|
+
description: ( localize(12956, "Controls the default search result view mode."))
|
|
402
402
|
},
|
|
403
403
|
"search.quickAccess.preserveInput": {
|
|
404
404
|
type: "boolean",
|
|
405
405
|
description: ( localize(
|
|
406
|
-
|
|
406
|
+
12957,
|
|
407
407
|
"Controls whether the last typed input to Quick Search should be restored when opening it the next time."
|
|
408
408
|
)),
|
|
409
409
|
default: false
|
|
@@ -411,7 +411,7 @@ configurationRegistry.registerConfiguration({
|
|
|
411
411
|
"search.experimental.closedNotebookRichContentResults": {
|
|
412
412
|
type: "boolean",
|
|
413
413
|
description: ( localize(
|
|
414
|
-
|
|
414
|
+
12958,
|
|
415
415
|
"Show notebook editor rich content results for closed notebooks. Please refresh your search results after changing this setting."
|
|
416
416
|
)),
|
|
417
417
|
default: false
|
|
@@ -419,7 +419,7 @@ configurationRegistry.registerConfiguration({
|
|
|
419
419
|
"search.searchView.semanticSearchBehavior": {
|
|
420
420
|
type: "string",
|
|
421
421
|
description: ( localize(
|
|
422
|
-
|
|
422
|
+
12959,
|
|
423
423
|
"Controls the behavior of the semantic search results displayed in the Search view."
|
|
424
424
|
)),
|
|
425
425
|
enum: [
|
|
@@ -428,15 +428,15 @@ configurationRegistry.registerConfiguration({
|
|
|
428
428
|
SemanticSearchBehavior.Auto
|
|
429
429
|
],
|
|
430
430
|
default: SemanticSearchBehavior.Manual,
|
|
431
|
-
enumDescriptions: [( localize(
|
|
432
|
-
|
|
431
|
+
enumDescriptions: [( localize(12960, "Only request semantic search results manually.")), ( localize(
|
|
432
|
+
12961,
|
|
433
433
|
"Request semantic results automatically only when text search results are empty."
|
|
434
|
-
)), ( localize(
|
|
434
|
+
)), ( localize(12962, "Request semantic results automatically with every search."))],
|
|
435
435
|
tags: ["preview"]
|
|
436
436
|
},
|
|
437
437
|
"search.searchView.keywordSuggestions": {
|
|
438
438
|
type: "boolean",
|
|
439
|
-
description: ( localize(
|
|
439
|
+
description: ( localize(12963, "Enable keyword suggestions in the Search view.")),
|
|
440
440
|
default: false,
|
|
441
441
|
tags: ["preview"]
|
|
442
442
|
}
|