@codingame/monaco-vscode-search-service-override 32.0.2 → 33.0.9
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 +3 -3
- 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 +23 -0
- package/vscode/src/vs/workbench/contrib/search/browser/search.contribution.js +70 -78
- 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 +30 -32
- 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,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-search-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "33.0.9",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - search service-override",
|
|
6
6
|
"keywords": [],
|
|
7
|
+
"license": "MIT",
|
|
7
8
|
"author": {
|
|
8
9
|
"name": "CodinGame",
|
|
9
10
|
"url": "http://www.codingame.com"
|
|
10
11
|
},
|
|
11
|
-
"license": "MIT",
|
|
12
12
|
"repository": {
|
|
13
13
|
"type": "git",
|
|
14
14
|
"url": "git+ssh://git@github.com/CodinGame/monaco-vscode-api.git"
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-api": "
|
|
18
|
+
"@codingame/monaco-vscode-api": "33.0.9"
|
|
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(13022, "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(13023, "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(13024, "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(13025, "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(13026, "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(13027, "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(13028, "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(13029, "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(13030, "{0} ↔ {1} (Replace Preview)", fileMatch.name(), fileMatch.name())),
|
|
170
170
|
description: this.labelService.getUriLabel(dirname(fileMatch.resource), {
|
|
171
171
|
relative: true
|
|
172
172
|
}),
|
|
@@ -1,8 +1,31 @@
|
|
|
1
1
|
|
|
2
|
+
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
2
3
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/extensions';
|
|
4
|
+
import { Extensions } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configurationRegistry';
|
|
5
|
+
import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/registry/common/platform';
|
|
3
6
|
import { registerContributions } from './replaceContributions.js';
|
|
4
7
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
5
8
|
import '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/search/browser/notebookSearch/notebookSearchService';
|
|
6
9
|
import '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/search/common/searchHistoryService';
|
|
10
|
+
import { searchConfigurationNode } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/search/common/search';
|
|
7
11
|
|
|
8
12
|
registerContributions();
|
|
13
|
+
( Registry.as(Extensions.Configuration)).registerConfiguration({
|
|
14
|
+
...searchConfigurationNode,
|
|
15
|
+
properties: {
|
|
16
|
+
"search.searchOnType": {
|
|
17
|
+
type: "boolean",
|
|
18
|
+
default: true,
|
|
19
|
+
description: ( localize(13031, "Search all files as you type."))
|
|
20
|
+
},
|
|
21
|
+
"search.searchOnTypeDebouncePeriod": {
|
|
22
|
+
type: "number",
|
|
23
|
+
default: 300,
|
|
24
|
+
markdownDescription: ( localize(
|
|
25
|
+
13032,
|
|
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
|
+
"`#search.searchOnType#`"
|
|
28
|
+
))
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
});
|
|
@@ -18,7 +18,7 @@ import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/ins
|
|
|
18
18
|
import { VIEWLET_ID, VIEW_ID, SemanticSearchBehavior, ViewMode, SearchSortOrder, DEFAULT_MAX_SEARCH_RESULTS, SEARCH_EXCLUDE_CONFIG } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/search/common/search';
|
|
19
19
|
import { CommandsRegistry } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands';
|
|
20
20
|
import { assertType } from '@codingame/monaco-vscode-api/vscode/vs/base/common/types';
|
|
21
|
-
import { getWorkspaceSymbols } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/search/common/search';
|
|
21
|
+
import { searchConfigurationNode, getWorkspaceSymbols } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/search/common/search';
|
|
22
22
|
import { SearchCommandIds } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/search/common/constants';
|
|
23
23
|
import { SearchChatContextContribution } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/search/browser/searchChatContext';
|
|
24
24
|
import './searchActionsCopy.js';
|
|
@@ -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(13033, "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(13033, "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(13034, "&&Search")),
|
|
68
68
|
keybindings: {
|
|
69
69
|
primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyF,
|
|
70
70
|
when: ( ContextKeyExpr.regex("neverMatch", /doesNotMatch/))
|
|
@@ -78,24 +78,21 @@ quickAccessRegistry.registerQuickAccessProvider({
|
|
|
78
78
|
ctor: TextSearchQuickAccess,
|
|
79
79
|
prefix: TEXT_SEARCH_QUICK_ACCESS_PREFIX,
|
|
80
80
|
contextKey: "inTextSearchPicker",
|
|
81
|
-
placeholder: ( localize(
|
|
81
|
+
placeholder: ( localize(13035, "Search for text in your workspace files.")),
|
|
82
82
|
helpEntries: [{
|
|
83
|
-
description: ( localize(
|
|
83
|
+
description: ( localize(13036, "Search for Text")),
|
|
84
84
|
commandId: SearchCommandIds.QuickTextSearchActionId,
|
|
85
85
|
commandCenterOrder: 25
|
|
86
86
|
}]
|
|
87
87
|
});
|
|
88
88
|
const configurationRegistry = ( Registry.as(Extensions$2.Configuration));
|
|
89
89
|
configurationRegistry.registerConfiguration({
|
|
90
|
-
|
|
91
|
-
order: 13,
|
|
92
|
-
title: ( localize(12905, "Search")),
|
|
93
|
-
type: "object",
|
|
90
|
+
...searchConfigurationNode,
|
|
94
91
|
properties: {
|
|
95
92
|
[SEARCH_EXCLUDE_CONFIG]: {
|
|
96
93
|
type: "object",
|
|
97
94
|
markdownDescription: ( localize(
|
|
98
|
-
|
|
95
|
+
13037,
|
|
99
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."
|
|
100
97
|
)),
|
|
101
98
|
default: {
|
|
@@ -107,7 +104,7 @@ configurationRegistry.registerConfiguration({
|
|
|
107
104
|
anyOf: [{
|
|
108
105
|
type: "boolean",
|
|
109
106
|
description: ( localize(
|
|
110
|
-
|
|
107
|
+
13038,
|
|
111
108
|
"The glob pattern to match file paths against. Set to true or false to enable or disable the pattern."
|
|
112
109
|
))
|
|
113
110
|
}, {
|
|
@@ -118,7 +115,7 @@ configurationRegistry.registerConfiguration({
|
|
|
118
115
|
pattern: "\\w*\\$\\(basename\\)\\w*",
|
|
119
116
|
default: "$(basename).ext",
|
|
120
117
|
markdownDescription: ( localize(
|
|
121
|
-
|
|
118
|
+
13039,
|
|
122
119
|
"Additional check on the siblings of a matching file. Use \\$(basename) as variable for the matching file name."
|
|
123
120
|
))
|
|
124
121
|
}
|
|
@@ -132,22 +129,22 @@ configurationRegistry.registerConfiguration({
|
|
|
132
129
|
enum: ["view", "reuseEditor", "newEditor"],
|
|
133
130
|
default: "view",
|
|
134
131
|
markdownDescription: ( localize(
|
|
135
|
-
|
|
132
|
+
13040,
|
|
136
133
|
"Controls where new `Search: Find in Files` and `Find in Folder` operations occur: either in the Search view, or in a search editor."
|
|
137
134
|
)),
|
|
138
|
-
enumDescriptions: [( localize(
|
|
139
|
-
|
|
135
|
+
enumDescriptions: [( localize(13041, "Search in the Search view, either in the panel or side bars.")), ( localize(
|
|
136
|
+
13042,
|
|
140
137
|
"Search in an existing search editor if present, otherwise in a new search editor."
|
|
141
|
-
)), ( localize(
|
|
138
|
+
)), ( localize(13043, "Search in a new search editor."))]
|
|
142
139
|
},
|
|
143
140
|
"search.useRipgrep": {
|
|
144
141
|
type: "boolean",
|
|
145
142
|
description: ( localize(
|
|
146
|
-
|
|
143
|
+
13044,
|
|
147
144
|
"This setting is deprecated and now falls back on \"search.usePCRE2\"."
|
|
148
145
|
)),
|
|
149
146
|
deprecationMessage: ( localize(
|
|
150
|
-
|
|
147
|
+
13045,
|
|
151
148
|
"Deprecated. Consider \"search.usePCRE2\" for advanced regex feature support."
|
|
152
149
|
)),
|
|
153
150
|
default: true
|
|
@@ -155,11 +152,11 @@ configurationRegistry.registerConfiguration({
|
|
|
155
152
|
"search.maintainFileSearchCache": {
|
|
156
153
|
type: "boolean",
|
|
157
154
|
deprecationMessage: ( localize(
|
|
158
|
-
|
|
155
|
+
13046,
|
|
159
156
|
"The search cache is kept in the extension host which never shuts down, so this setting is no longer needed."
|
|
160
157
|
)),
|
|
161
158
|
description: ( localize(
|
|
162
|
-
|
|
159
|
+
13047,
|
|
163
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."
|
|
164
161
|
)),
|
|
165
162
|
default: false
|
|
@@ -167,7 +164,7 @@ configurationRegistry.registerConfiguration({
|
|
|
167
164
|
"search.useIgnoreFiles": {
|
|
168
165
|
type: "boolean",
|
|
169
166
|
markdownDescription: ( localize(
|
|
170
|
-
|
|
167
|
+
13048,
|
|
171
168
|
"Controls whether to use `.gitignore` and `.ignore` files when searching for files."
|
|
172
169
|
)),
|
|
173
170
|
default: true,
|
|
@@ -176,7 +173,7 @@ configurationRegistry.registerConfiguration({
|
|
|
176
173
|
"search.useGlobalIgnoreFiles": {
|
|
177
174
|
type: "boolean",
|
|
178
175
|
markdownDescription: ( localize(
|
|
179
|
-
|
|
176
|
+
13049,
|
|
180
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.",
|
|
181
178
|
"`#search.useIgnoreFiles#`"
|
|
182
179
|
)),
|
|
@@ -186,7 +183,7 @@ configurationRegistry.registerConfiguration({
|
|
|
186
183
|
"search.useParentIgnoreFiles": {
|
|
187
184
|
type: "boolean",
|
|
188
185
|
markdownDescription: ( localize(
|
|
189
|
-
|
|
186
|
+
13050,
|
|
190
187
|
"Controls whether to use `.gitignore` and `.ignore` files in parent directories when searching for files. Requires {0} to be enabled.",
|
|
191
188
|
"`#search.useIgnoreFiles#`"
|
|
192
189
|
)),
|
|
@@ -196,7 +193,7 @@ configurationRegistry.registerConfiguration({
|
|
|
196
193
|
"search.quickOpen.includeSymbols": {
|
|
197
194
|
type: "boolean",
|
|
198
195
|
description: ( localize(
|
|
199
|
-
|
|
196
|
+
13051,
|
|
200
197
|
"Whether to include results from a global symbol search in the file results for Quick Open."
|
|
201
198
|
)),
|
|
202
199
|
default: false
|
|
@@ -204,7 +201,7 @@ configurationRegistry.registerConfiguration({
|
|
|
204
201
|
"search.ripgrep.maxThreads": {
|
|
205
202
|
type: "number",
|
|
206
203
|
description: ( localize(
|
|
207
|
-
|
|
204
|
+
13052,
|
|
208
205
|
"Number of threads to use for searching. When set to 0, the engine automatically determines this value."
|
|
209
206
|
)),
|
|
210
207
|
default: 0
|
|
@@ -212,7 +209,7 @@ configurationRegistry.registerConfiguration({
|
|
|
212
209
|
"search.quickOpen.includeHistory": {
|
|
213
210
|
type: "boolean",
|
|
214
211
|
description: ( localize(
|
|
215
|
-
|
|
212
|
+
13053,
|
|
216
213
|
"Whether to include results from recently opened files in the file results for Quick Open."
|
|
217
214
|
)),
|
|
218
215
|
default: true,
|
|
@@ -225,26 +222,26 @@ configurationRegistry.registerConfiguration({
|
|
|
225
222
|
enum: ["default", "recency"],
|
|
226
223
|
default: "default",
|
|
227
224
|
enumDescriptions: [( localize(
|
|
228
|
-
|
|
225
|
+
13054,
|
|
229
226
|
"History entries are sorted by relevance based on the filter value used. More relevant entries appear first."
|
|
230
227
|
)), ( localize(
|
|
231
|
-
|
|
228
|
+
13055,
|
|
232
229
|
"History entries are sorted by recency. More recently opened entries appear first."
|
|
233
230
|
))],
|
|
234
231
|
description: ( localize(
|
|
235
|
-
|
|
232
|
+
13056,
|
|
236
233
|
"Controls sorting order of editor history in quick open when filtering."
|
|
237
234
|
))
|
|
238
235
|
},
|
|
239
236
|
"search.followSymlinks": {
|
|
240
237
|
type: "boolean",
|
|
241
|
-
description: ( localize(
|
|
238
|
+
description: ( localize(13057, "Controls whether to follow symlinks while searching.")),
|
|
242
239
|
default: true
|
|
243
240
|
},
|
|
244
241
|
"search.smartCase": {
|
|
245
242
|
type: "boolean",
|
|
246
243
|
description: ( localize(
|
|
247
|
-
|
|
244
|
+
13058,
|
|
248
245
|
"Search case-insensitively if the pattern is all lowercase, otherwise, search case-sensitively."
|
|
249
246
|
)),
|
|
250
247
|
default: false
|
|
@@ -253,7 +250,7 @@ configurationRegistry.registerConfiguration({
|
|
|
253
250
|
type: "boolean",
|
|
254
251
|
default: false,
|
|
255
252
|
description: ( localize(
|
|
256
|
-
|
|
253
|
+
13059,
|
|
257
254
|
"Controls whether the Search view should read or modify the shared find clipboard on macOS."
|
|
258
255
|
)),
|
|
259
256
|
included: isMacintosh
|
|
@@ -263,11 +260,11 @@ configurationRegistry.registerConfiguration({
|
|
|
263
260
|
enum: ["sidebar", "panel"],
|
|
264
261
|
default: "sidebar",
|
|
265
262
|
description: ( localize(
|
|
266
|
-
|
|
263
|
+
13060,
|
|
267
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."
|
|
268
265
|
)),
|
|
269
266
|
deprecationMessage: ( localize(
|
|
270
|
-
|
|
267
|
+
13061,
|
|
271
268
|
"This setting is deprecated. You can drag the search icon to a new location instead."
|
|
272
269
|
))
|
|
273
270
|
},
|
|
@@ -275,7 +272,7 @@ configurationRegistry.registerConfiguration({
|
|
|
275
272
|
type: ["number", "null"],
|
|
276
273
|
default: DEFAULT_MAX_SEARCH_RESULTS,
|
|
277
274
|
markdownDescription: ( localize(
|
|
278
|
-
|
|
275
|
+
13062,
|
|
279
276
|
"Controls the maximum number of search results, this can be set to `null` (empty) to return unlimited results."
|
|
280
277
|
))
|
|
281
278
|
},
|
|
@@ -283,12 +280,12 @@ configurationRegistry.registerConfiguration({
|
|
|
283
280
|
type: "string",
|
|
284
281
|
enum: ["auto", "alwaysCollapse", "alwaysExpand"],
|
|
285
282
|
enumDescriptions: [( localize(
|
|
286
|
-
|
|
283
|
+
13063,
|
|
287
284
|
"Files with less than 10 results are expanded. Others are collapsed."
|
|
288
285
|
)), "", ""],
|
|
289
286
|
default: "alwaysExpand",
|
|
290
287
|
description: ( localize(
|
|
291
|
-
|
|
288
|
+
13064,
|
|
292
289
|
"Controls whether the search results will be collapsed or expanded."
|
|
293
290
|
))
|
|
294
291
|
},
|
|
@@ -296,24 +293,24 @@ configurationRegistry.registerConfiguration({
|
|
|
296
293
|
type: "boolean",
|
|
297
294
|
default: true,
|
|
298
295
|
description: ( localize(
|
|
299
|
-
|
|
296
|
+
13065,
|
|
300
297
|
"Controls whether to open Replace Preview when selecting or replacing a match."
|
|
301
298
|
))
|
|
302
299
|
},
|
|
303
300
|
"search.showLineNumbers": {
|
|
304
301
|
type: "boolean",
|
|
305
302
|
default: false,
|
|
306
|
-
description: ( localize(
|
|
303
|
+
description: ( localize(13066, "Controls whether to show line numbers for search results."))
|
|
307
304
|
},
|
|
308
305
|
"search.usePCRE2": {
|
|
309
306
|
type: "boolean",
|
|
310
307
|
default: false,
|
|
311
308
|
description: ( localize(
|
|
312
|
-
|
|
309
|
+
13067,
|
|
313
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."
|
|
314
311
|
)),
|
|
315
312
|
deprecationMessage: ( localize(
|
|
316
|
-
|
|
313
|
+
13068,
|
|
317
314
|
"Deprecated. PCRE2 will be used automatically when using regex features that are only supported by PCRE2."
|
|
318
315
|
))
|
|
319
316
|
},
|
|
@@ -321,25 +318,20 @@ configurationRegistry.registerConfiguration({
|
|
|
321
318
|
type: "string",
|
|
322
319
|
enum: ["auto", "right"],
|
|
323
320
|
enumDescriptions: [( localize(
|
|
324
|
-
|
|
321
|
+
13069,
|
|
325
322
|
"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(
|
|
323
|
+
)), ( localize(13070, "Always position the actionbar to the right."))],
|
|
327
324
|
default: "right",
|
|
328
325
|
description: ( localize(
|
|
329
|
-
|
|
326
|
+
13071,
|
|
330
327
|
"Controls the positioning of the actionbar on rows in the Search view."
|
|
331
328
|
))
|
|
332
329
|
},
|
|
333
|
-
"search.searchOnType": {
|
|
334
|
-
type: "boolean",
|
|
335
|
-
default: true,
|
|
336
|
-
description: ( localize(12941, "Search all files as you type."))
|
|
337
|
-
},
|
|
338
330
|
"search.seedWithNearestWord": {
|
|
339
331
|
type: "boolean",
|
|
340
332
|
default: false,
|
|
341
333
|
description: ( localize(
|
|
342
|
-
|
|
334
|
+
13072,
|
|
343
335
|
"Enable seeding search from the word nearest the cursor when the active editor has no selection."
|
|
344
336
|
))
|
|
345
337
|
},
|
|
@@ -347,19 +339,10 @@ configurationRegistry.registerConfiguration({
|
|
|
347
339
|
type: "boolean",
|
|
348
340
|
default: false,
|
|
349
341
|
markdownDescription: ( localize(
|
|
350
|
-
|
|
342
|
+
13073,
|
|
351
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."
|
|
352
344
|
))
|
|
353
345
|
},
|
|
354
|
-
"search.searchOnTypeDebouncePeriod": {
|
|
355
|
-
type: "number",
|
|
356
|
-
default: 300,
|
|
357
|
-
markdownDescription: ( localize(
|
|
358
|
-
12944,
|
|
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
|
-
"`#search.searchOnType#`"
|
|
361
|
-
))
|
|
362
|
-
},
|
|
363
346
|
"search.sortOrder": {
|
|
364
347
|
type: "string",
|
|
365
348
|
enum: [
|
|
@@ -372,38 +355,38 @@ configurationRegistry.registerConfiguration({
|
|
|
372
355
|
],
|
|
373
356
|
default: SearchSortOrder.Default,
|
|
374
357
|
enumDescriptions: [( localize(
|
|
375
|
-
|
|
358
|
+
13074,
|
|
376
359
|
"Results are sorted by folder and file names, in alphabetical order."
|
|
377
360
|
)), ( localize(
|
|
378
|
-
|
|
361
|
+
13075,
|
|
379
362
|
"Results are sorted by file names ignoring folder order, in alphabetical order."
|
|
380
|
-
)), ( localize(
|
|
381
|
-
|
|
363
|
+
)), ( localize(13076, "Results are sorted by file extensions, in alphabetical order.")), ( localize(
|
|
364
|
+
13077,
|
|
382
365
|
"Results are sorted by file last modified date, in descending order."
|
|
383
|
-
)), ( localize(
|
|
384
|
-
description: ( localize(
|
|
366
|
+
)), ( localize(13078, "Results are sorted by count per file, in descending order.")), ( localize(13079, "Results are sorted by count per file, in ascending order."))],
|
|
367
|
+
description: ( localize(13080, "Controls sorting order of search results."))
|
|
385
368
|
},
|
|
386
369
|
"search.decorations.colors": {
|
|
387
370
|
type: "boolean",
|
|
388
|
-
description: ( localize(
|
|
371
|
+
description: ( localize(13081, "Controls whether search file decorations should use colors.")),
|
|
389
372
|
default: true
|
|
390
373
|
},
|
|
391
374
|
"search.decorations.badges": {
|
|
392
375
|
type: "boolean",
|
|
393
|
-
description: ( localize(
|
|
376
|
+
description: ( localize(13082, "Controls whether search file decorations should use badges.")),
|
|
394
377
|
default: true
|
|
395
378
|
},
|
|
396
379
|
"search.defaultViewMode": {
|
|
397
380
|
type: "string",
|
|
398
381
|
enum: [ViewMode.Tree, ViewMode.List],
|
|
399
382
|
default: ViewMode.List,
|
|
400
|
-
enumDescriptions: [( localize(
|
|
401
|
-
description: ( localize(
|
|
383
|
+
enumDescriptions: [( localize(13083, "Shows search results as a tree.")), ( localize(13084, "Shows search results as a list."))],
|
|
384
|
+
description: ( localize(13085, "Controls the default search result view mode."))
|
|
402
385
|
},
|
|
403
386
|
"search.quickAccess.preserveInput": {
|
|
404
387
|
type: "boolean",
|
|
405
388
|
description: ( localize(
|
|
406
|
-
|
|
389
|
+
13086,
|
|
407
390
|
"Controls whether the last typed input to Quick Search should be restored when opening it the next time."
|
|
408
391
|
)),
|
|
409
392
|
default: false
|
|
@@ -411,15 +394,24 @@ configurationRegistry.registerConfiguration({
|
|
|
411
394
|
"search.experimental.closedNotebookRichContentResults": {
|
|
412
395
|
type: "boolean",
|
|
413
396
|
description: ( localize(
|
|
414
|
-
|
|
397
|
+
13087,
|
|
415
398
|
"Show notebook editor rich content results for closed notebooks. Please refresh your search results after changing this setting."
|
|
416
399
|
)),
|
|
417
400
|
default: false
|
|
418
401
|
},
|
|
402
|
+
"search.experimental.useIgnoreFilesInFindFiles": {
|
|
403
|
+
type: "boolean",
|
|
404
|
+
default: false,
|
|
405
|
+
markdownDescription: ( localize(
|
|
406
|
+
13088,
|
|
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
|
+
)),
|
|
409
|
+
tags: ["experimental"]
|
|
410
|
+
},
|
|
419
411
|
"search.searchView.semanticSearchBehavior": {
|
|
420
412
|
type: "string",
|
|
421
413
|
description: ( localize(
|
|
422
|
-
|
|
414
|
+
13089,
|
|
423
415
|
"Controls the behavior of the semantic search results displayed in the Search view."
|
|
424
416
|
)),
|
|
425
417
|
enum: [
|
|
@@ -428,15 +420,15 @@ configurationRegistry.registerConfiguration({
|
|
|
428
420
|
SemanticSearchBehavior.Auto
|
|
429
421
|
],
|
|
430
422
|
default: SemanticSearchBehavior.Manual,
|
|
431
|
-
enumDescriptions: [( localize(
|
|
432
|
-
|
|
423
|
+
enumDescriptions: [( localize(13090, "Only request semantic search results manually.")), ( localize(
|
|
424
|
+
13091,
|
|
433
425
|
"Request semantic results automatically only when text search results are empty."
|
|
434
|
-
)), ( localize(
|
|
426
|
+
)), ( localize(13092, "Request semantic results automatically with every search."))],
|
|
435
427
|
tags: ["preview"]
|
|
436
428
|
},
|
|
437
429
|
"search.searchView.keywordSuggestions": {
|
|
438
430
|
type: "boolean",
|
|
439
|
-
description: ( localize(
|
|
431
|
+
description: ( localize(13093, "Enable keyword suggestions in the Search view.")),
|
|
440
432
|
default: false,
|
|
441
433
|
tags: ["preview"]
|
|
442
434
|
}
|