@codingame/monaco-vscode-search-service-override 33.0.9 → 34.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.common.contribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/search/browser/search.contribution.js +60 -60
- 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/search/browser/searchTreeModel/searchResult.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/search/browser/searchTreeModel/searchResult.js +5 -7
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditor.contribution.js +28 -28
- 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": "34.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": "34.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(13211, "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(13212, "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(13213, "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(13214, "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(13215, "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(13216, "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(13217, "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(13218, "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(13219, "{0} ↔ {1} (Replace Preview)", fileMatch.name(), fileMatch.name())),
|
|
170
170
|
description: this.labelService.getUriLabel(dirname(fileMatch.resource), {
|
|
171
171
|
relative: true
|
|
172
172
|
}),
|
|
@@ -16,13 +16,13 @@ registerContributions();
|
|
|
16
16
|
"search.searchOnType": {
|
|
17
17
|
type: "boolean",
|
|
18
18
|
default: true,
|
|
19
|
-
description: ( localize(
|
|
19
|
+
description: ( localize(13220, "Search all files as you type."))
|
|
20
20
|
},
|
|
21
21
|
"search.searchOnTypeDebouncePeriod": {
|
|
22
22
|
type: "number",
|
|
23
23
|
default: 300,
|
|
24
24
|
markdownDescription: ( localize(
|
|
25
|
-
|
|
25
|
+
13221,
|
|
26
26
|
"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.",
|
|
27
27
|
"`#search.searchOnType#`"
|
|
28
28
|
))
|
|
@@ -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(13222, "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(13222, "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(13223, "&&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(13224, "Search for text in your workspace files.")),
|
|
82
82
|
helpEntries: [{
|
|
83
|
-
description: ( localize(
|
|
83
|
+
description: ( localize(13225, "Search for Text")),
|
|
84
84
|
commandId: SearchCommandIds.QuickTextSearchActionId,
|
|
85
85
|
commandCenterOrder: 25
|
|
86
86
|
}]
|
|
@@ -92,7 +92,7 @@ configurationRegistry.registerConfiguration({
|
|
|
92
92
|
[SEARCH_EXCLUDE_CONFIG]: {
|
|
93
93
|
type: "object",
|
|
94
94
|
markdownDescription: ( localize(
|
|
95
|
-
|
|
95
|
+
13226,
|
|
96
96
|
"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."
|
|
97
97
|
)),
|
|
98
98
|
default: {
|
|
@@ -104,7 +104,7 @@ configurationRegistry.registerConfiguration({
|
|
|
104
104
|
anyOf: [{
|
|
105
105
|
type: "boolean",
|
|
106
106
|
description: ( localize(
|
|
107
|
-
|
|
107
|
+
13227,
|
|
108
108
|
"The glob pattern to match file paths against. Set to true or false to enable or disable the pattern."
|
|
109
109
|
))
|
|
110
110
|
}, {
|
|
@@ -115,7 +115,7 @@ configurationRegistry.registerConfiguration({
|
|
|
115
115
|
pattern: "\\w*\\$\\(basename\\)\\w*",
|
|
116
116
|
default: "$(basename).ext",
|
|
117
117
|
markdownDescription: ( localize(
|
|
118
|
-
|
|
118
|
+
13228,
|
|
119
119
|
"Additional check on the siblings of a matching file. Use \\$(basename) as variable for the matching file name."
|
|
120
120
|
))
|
|
121
121
|
}
|
|
@@ -129,22 +129,22 @@ configurationRegistry.registerConfiguration({
|
|
|
129
129
|
enum: ["view", "reuseEditor", "newEditor"],
|
|
130
130
|
default: "view",
|
|
131
131
|
markdownDescription: ( localize(
|
|
132
|
-
|
|
132
|
+
13229,
|
|
133
133
|
"Controls where new `Search: Find in Files` and `Find in Folder` operations occur: either in the Search view, or in a search editor."
|
|
134
134
|
)),
|
|
135
|
-
enumDescriptions: [( localize(
|
|
136
|
-
|
|
135
|
+
enumDescriptions: [( localize(13230, "Search in the Search view, either in the panel or side bars.")), ( localize(
|
|
136
|
+
13231,
|
|
137
137
|
"Search in an existing search editor if present, otherwise in a new search editor."
|
|
138
|
-
)), ( localize(
|
|
138
|
+
)), ( localize(13232, "Search in a new search editor."))]
|
|
139
139
|
},
|
|
140
140
|
"search.useRipgrep": {
|
|
141
141
|
type: "boolean",
|
|
142
142
|
description: ( localize(
|
|
143
|
-
|
|
143
|
+
13233,
|
|
144
144
|
"This setting is deprecated and now falls back on \"search.usePCRE2\"."
|
|
145
145
|
)),
|
|
146
146
|
deprecationMessage: ( localize(
|
|
147
|
-
|
|
147
|
+
13234,
|
|
148
148
|
"Deprecated. Consider \"search.usePCRE2\" for advanced regex feature support."
|
|
149
149
|
)),
|
|
150
150
|
default: true
|
|
@@ -152,11 +152,11 @@ configurationRegistry.registerConfiguration({
|
|
|
152
152
|
"search.maintainFileSearchCache": {
|
|
153
153
|
type: "boolean",
|
|
154
154
|
deprecationMessage: ( localize(
|
|
155
|
-
|
|
155
|
+
13235,
|
|
156
156
|
"The search cache is kept in the extension host which never shuts down, so this setting is no longer needed."
|
|
157
157
|
)),
|
|
158
158
|
description: ( localize(
|
|
159
|
-
|
|
159
|
+
13236,
|
|
160
160
|
"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."
|
|
161
161
|
)),
|
|
162
162
|
default: false
|
|
@@ -164,7 +164,7 @@ configurationRegistry.registerConfiguration({
|
|
|
164
164
|
"search.useIgnoreFiles": {
|
|
165
165
|
type: "boolean",
|
|
166
166
|
markdownDescription: ( localize(
|
|
167
|
-
|
|
167
|
+
13237,
|
|
168
168
|
"Controls whether to use `.gitignore` and `.ignore` files when searching for files."
|
|
169
169
|
)),
|
|
170
170
|
default: true,
|
|
@@ -173,7 +173,7 @@ configurationRegistry.registerConfiguration({
|
|
|
173
173
|
"search.useGlobalIgnoreFiles": {
|
|
174
174
|
type: "boolean",
|
|
175
175
|
markdownDescription: ( localize(
|
|
176
|
-
|
|
176
|
+
13238,
|
|
177
177
|
"Controls whether to use your global gitignore file (for example, from `$HOME/.config/git/ignore`) when searching for files. Requires {0} to be enabled.",
|
|
178
178
|
"`#search.useIgnoreFiles#`"
|
|
179
179
|
)),
|
|
@@ -183,7 +183,7 @@ configurationRegistry.registerConfiguration({
|
|
|
183
183
|
"search.useParentIgnoreFiles": {
|
|
184
184
|
type: "boolean",
|
|
185
185
|
markdownDescription: ( localize(
|
|
186
|
-
|
|
186
|
+
13239,
|
|
187
187
|
"Controls whether to use `.gitignore` and `.ignore` files in parent directories when searching for files. Requires {0} to be enabled.",
|
|
188
188
|
"`#search.useIgnoreFiles#`"
|
|
189
189
|
)),
|
|
@@ -193,7 +193,7 @@ configurationRegistry.registerConfiguration({
|
|
|
193
193
|
"search.quickOpen.includeSymbols": {
|
|
194
194
|
type: "boolean",
|
|
195
195
|
description: ( localize(
|
|
196
|
-
|
|
196
|
+
13240,
|
|
197
197
|
"Whether to include results from a global symbol search in the file results for Quick Open."
|
|
198
198
|
)),
|
|
199
199
|
default: false
|
|
@@ -201,7 +201,7 @@ configurationRegistry.registerConfiguration({
|
|
|
201
201
|
"search.ripgrep.maxThreads": {
|
|
202
202
|
type: "number",
|
|
203
203
|
description: ( localize(
|
|
204
|
-
|
|
204
|
+
13241,
|
|
205
205
|
"Number of threads to use for searching. When set to 0, the engine automatically determines this value."
|
|
206
206
|
)),
|
|
207
207
|
default: 0
|
|
@@ -209,7 +209,7 @@ configurationRegistry.registerConfiguration({
|
|
|
209
209
|
"search.quickOpen.includeHistory": {
|
|
210
210
|
type: "boolean",
|
|
211
211
|
description: ( localize(
|
|
212
|
-
|
|
212
|
+
13242,
|
|
213
213
|
"Whether to include results from recently opened files in the file results for Quick Open."
|
|
214
214
|
)),
|
|
215
215
|
default: true,
|
|
@@ -222,26 +222,26 @@ configurationRegistry.registerConfiguration({
|
|
|
222
222
|
enum: ["default", "recency"],
|
|
223
223
|
default: "default",
|
|
224
224
|
enumDescriptions: [( localize(
|
|
225
|
-
|
|
225
|
+
13243,
|
|
226
226
|
"History entries are sorted by relevance based on the filter value used. More relevant entries appear first."
|
|
227
227
|
)), ( localize(
|
|
228
|
-
|
|
228
|
+
13244,
|
|
229
229
|
"History entries are sorted by recency. More recently opened entries appear first."
|
|
230
230
|
))],
|
|
231
231
|
description: ( localize(
|
|
232
|
-
|
|
232
|
+
13245,
|
|
233
233
|
"Controls sorting order of editor history in quick open when filtering."
|
|
234
234
|
))
|
|
235
235
|
},
|
|
236
236
|
"search.followSymlinks": {
|
|
237
237
|
type: "boolean",
|
|
238
|
-
description: ( localize(
|
|
238
|
+
description: ( localize(13246, "Controls whether to follow symlinks while searching.")),
|
|
239
239
|
default: true
|
|
240
240
|
},
|
|
241
241
|
"search.smartCase": {
|
|
242
242
|
type: "boolean",
|
|
243
243
|
description: ( localize(
|
|
244
|
-
|
|
244
|
+
13247,
|
|
245
245
|
"Search case-insensitively if the pattern is all lowercase, otherwise, search case-sensitively."
|
|
246
246
|
)),
|
|
247
247
|
default: false
|
|
@@ -250,7 +250,7 @@ configurationRegistry.registerConfiguration({
|
|
|
250
250
|
type: "boolean",
|
|
251
251
|
default: false,
|
|
252
252
|
description: ( localize(
|
|
253
|
-
|
|
253
|
+
13248,
|
|
254
254
|
"Controls whether the Search view should read or modify the shared find clipboard on macOS."
|
|
255
255
|
)),
|
|
256
256
|
included: isMacintosh
|
|
@@ -260,11 +260,11 @@ configurationRegistry.registerConfiguration({
|
|
|
260
260
|
enum: ["sidebar", "panel"],
|
|
261
261
|
default: "sidebar",
|
|
262
262
|
description: ( localize(
|
|
263
|
-
|
|
263
|
+
13249,
|
|
264
264
|
"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."
|
|
265
265
|
)),
|
|
266
266
|
deprecationMessage: ( localize(
|
|
267
|
-
|
|
267
|
+
13250,
|
|
268
268
|
"This setting is deprecated. You can drag the search icon to a new location instead."
|
|
269
269
|
))
|
|
270
270
|
},
|
|
@@ -272,7 +272,7 @@ configurationRegistry.registerConfiguration({
|
|
|
272
272
|
type: ["number", "null"],
|
|
273
273
|
default: DEFAULT_MAX_SEARCH_RESULTS,
|
|
274
274
|
markdownDescription: ( localize(
|
|
275
|
-
|
|
275
|
+
13251,
|
|
276
276
|
"Controls the maximum number of search results, this can be set to `null` (empty) to return unlimited results."
|
|
277
277
|
))
|
|
278
278
|
},
|
|
@@ -280,12 +280,12 @@ configurationRegistry.registerConfiguration({
|
|
|
280
280
|
type: "string",
|
|
281
281
|
enum: ["auto", "alwaysCollapse", "alwaysExpand"],
|
|
282
282
|
enumDescriptions: [( localize(
|
|
283
|
-
|
|
283
|
+
13252,
|
|
284
284
|
"Files with less than 10 results are expanded. Others are collapsed."
|
|
285
285
|
)), "", ""],
|
|
286
286
|
default: "alwaysExpand",
|
|
287
287
|
description: ( localize(
|
|
288
|
-
|
|
288
|
+
13253,
|
|
289
289
|
"Controls whether the search results will be collapsed or expanded."
|
|
290
290
|
))
|
|
291
291
|
},
|
|
@@ -293,24 +293,24 @@ configurationRegistry.registerConfiguration({
|
|
|
293
293
|
type: "boolean",
|
|
294
294
|
default: true,
|
|
295
295
|
description: ( localize(
|
|
296
|
-
|
|
296
|
+
13254,
|
|
297
297
|
"Controls whether to open Replace Preview when selecting or replacing a match."
|
|
298
298
|
))
|
|
299
299
|
},
|
|
300
300
|
"search.showLineNumbers": {
|
|
301
301
|
type: "boolean",
|
|
302
302
|
default: false,
|
|
303
|
-
description: ( localize(
|
|
303
|
+
description: ( localize(13255, "Controls whether to show line numbers for search results."))
|
|
304
304
|
},
|
|
305
305
|
"search.usePCRE2": {
|
|
306
306
|
type: "boolean",
|
|
307
307
|
default: false,
|
|
308
308
|
description: ( localize(
|
|
309
|
-
|
|
309
|
+
13256,
|
|
310
310
|
"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."
|
|
311
311
|
)),
|
|
312
312
|
deprecationMessage: ( localize(
|
|
313
|
-
|
|
313
|
+
13257,
|
|
314
314
|
"Deprecated. PCRE2 will be used automatically when using regex features that are only supported by PCRE2."
|
|
315
315
|
))
|
|
316
316
|
},
|
|
@@ -318,12 +318,12 @@ configurationRegistry.registerConfiguration({
|
|
|
318
318
|
type: "string",
|
|
319
319
|
enum: ["auto", "right"],
|
|
320
320
|
enumDescriptions: [( localize(
|
|
321
|
-
|
|
321
|
+
13258,
|
|
322
322
|
"Position the actionbar to the right when the Search view is narrow, and immediately after the content when the Search view is wide."
|
|
323
|
-
)), ( localize(
|
|
323
|
+
)), ( localize(13259, "Always position the actionbar to the right."))],
|
|
324
324
|
default: "right",
|
|
325
325
|
description: ( localize(
|
|
326
|
-
|
|
326
|
+
13260,
|
|
327
327
|
"Controls the positioning of the actionbar on rows in the Search view."
|
|
328
328
|
))
|
|
329
329
|
},
|
|
@@ -331,7 +331,7 @@ configurationRegistry.registerConfiguration({
|
|
|
331
331
|
type: "boolean",
|
|
332
332
|
default: false,
|
|
333
333
|
description: ( localize(
|
|
334
|
-
|
|
334
|
+
13261,
|
|
335
335
|
"Enable seeding search from the word nearest the cursor when the active editor has no selection."
|
|
336
336
|
))
|
|
337
337
|
},
|
|
@@ -339,7 +339,7 @@ configurationRegistry.registerConfiguration({
|
|
|
339
339
|
type: "boolean",
|
|
340
340
|
default: false,
|
|
341
341
|
markdownDescription: ( localize(
|
|
342
|
-
|
|
342
|
+
13262,
|
|
343
343
|
"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."
|
|
344
344
|
))
|
|
345
345
|
},
|
|
@@ -355,38 +355,38 @@ configurationRegistry.registerConfiguration({
|
|
|
355
355
|
],
|
|
356
356
|
default: SearchSortOrder.Default,
|
|
357
357
|
enumDescriptions: [( localize(
|
|
358
|
-
|
|
358
|
+
13263,
|
|
359
359
|
"Results are sorted by folder and file names, in alphabetical order."
|
|
360
360
|
)), ( localize(
|
|
361
|
-
|
|
361
|
+
13264,
|
|
362
362
|
"Results are sorted by file names ignoring folder order, in alphabetical order."
|
|
363
|
-
)), ( localize(
|
|
364
|
-
|
|
363
|
+
)), ( localize(13265, "Results are sorted by file extensions, in alphabetical order.")), ( localize(
|
|
364
|
+
13266,
|
|
365
365
|
"Results are sorted by file last modified date, in descending order."
|
|
366
|
-
)), ( localize(
|
|
367
|
-
description: ( localize(
|
|
366
|
+
)), ( localize(13267, "Results are sorted by count per file, in descending order.")), ( localize(13268, "Results are sorted by count per file, in ascending order."))],
|
|
367
|
+
description: ( localize(13269, "Controls sorting order of search results."))
|
|
368
368
|
},
|
|
369
369
|
"search.decorations.colors": {
|
|
370
370
|
type: "boolean",
|
|
371
|
-
description: ( localize(
|
|
371
|
+
description: ( localize(13270, "Controls whether search file decorations should use colors.")),
|
|
372
372
|
default: true
|
|
373
373
|
},
|
|
374
374
|
"search.decorations.badges": {
|
|
375
375
|
type: "boolean",
|
|
376
|
-
description: ( localize(
|
|
376
|
+
description: ( localize(13271, "Controls whether search file decorations should use badges.")),
|
|
377
377
|
default: true
|
|
378
378
|
},
|
|
379
379
|
"search.defaultViewMode": {
|
|
380
380
|
type: "string",
|
|
381
381
|
enum: [ViewMode.Tree, ViewMode.List],
|
|
382
382
|
default: ViewMode.List,
|
|
383
|
-
enumDescriptions: [( localize(
|
|
384
|
-
description: ( localize(
|
|
383
|
+
enumDescriptions: [( localize(13272, "Shows search results as a tree.")), ( localize(13273, "Shows search results as a list."))],
|
|
384
|
+
description: ( localize(13274, "Controls the default search result view mode."))
|
|
385
385
|
},
|
|
386
386
|
"search.quickAccess.preserveInput": {
|
|
387
387
|
type: "boolean",
|
|
388
388
|
description: ( localize(
|
|
389
|
-
|
|
389
|
+
13275,
|
|
390
390
|
"Controls whether the last typed input to Quick Search should be restored when opening it the next time."
|
|
391
391
|
)),
|
|
392
392
|
default: false
|
|
@@ -394,7 +394,7 @@ configurationRegistry.registerConfiguration({
|
|
|
394
394
|
"search.experimental.closedNotebookRichContentResults": {
|
|
395
395
|
type: "boolean",
|
|
396
396
|
description: ( localize(
|
|
397
|
-
|
|
397
|
+
13276,
|
|
398
398
|
"Show notebook editor rich content results for closed notebooks. Please refresh your search results after changing this setting."
|
|
399
399
|
)),
|
|
400
400
|
default: false
|
|
@@ -403,7 +403,7 @@ configurationRegistry.registerConfiguration({
|
|
|
403
403
|
type: "boolean",
|
|
404
404
|
default: false,
|
|
405
405
|
markdownDescription: ( localize(
|
|
406
|
-
|
|
406
|
+
13277,
|
|
407
407
|
"When enabled, the legacy `findFiles` extension API honors the user's `#search.useIgnoreFiles#` setting instead of always ignoring `.gitignore`. Extensions that explicitly pass `null` as the `exclude` argument still get unfiltered results. Telemetry is emitted regardless of this setting to help decide future defaults."
|
|
408
408
|
)),
|
|
409
409
|
tags: ["experimental"]
|
|
@@ -411,7 +411,7 @@ configurationRegistry.registerConfiguration({
|
|
|
411
411
|
"search.searchView.semanticSearchBehavior": {
|
|
412
412
|
type: "string",
|
|
413
413
|
description: ( localize(
|
|
414
|
-
|
|
414
|
+
13278,
|
|
415
415
|
"Controls the behavior of the semantic search results displayed in the Search view."
|
|
416
416
|
)),
|
|
417
417
|
enum: [
|
|
@@ -420,15 +420,15 @@ configurationRegistry.registerConfiguration({
|
|
|
420
420
|
SemanticSearchBehavior.Auto
|
|
421
421
|
],
|
|
422
422
|
default: SemanticSearchBehavior.Manual,
|
|
423
|
-
enumDescriptions: [( localize(
|
|
424
|
-
|
|
423
|
+
enumDescriptions: [( localize(13279, "Only request semantic search results manually.")), ( localize(
|
|
424
|
+
13280,
|
|
425
425
|
"Request semantic results automatically only when text search results are empty."
|
|
426
|
-
)), ( localize(
|
|
426
|
+
)), ( localize(13281, "Request semantic results automatically with every search."))],
|
|
427
427
|
tags: ["preview"]
|
|
428
428
|
},
|
|
429
429
|
"search.searchView.keywordSuggestions": {
|
|
430
430
|
type: "boolean",
|
|
431
|
-
description: ( localize(
|
|
431
|
+
description: ( localize(13282, "Enable keyword suggestions in the Search view.")),
|
|
432
432
|
default: false,
|
|
433
433
|
tags: ["preview"]
|
|
434
434
|
}
|