@codingame/monaco-vscode-search-service-override 15.0.0 → 15.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +19 -19
- package/vscode/src/vs/workbench/contrib/search/browser/patternInputWidget.js +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.contribution.js +73 -73
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsCopy.js +3 -3
- 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/searchFindInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/search/browser/searchMessage.js +2 -2
- package/vscode/src/vs/workbench/contrib/search/browser/searchResultsView.js +14 -14
- package/vscode/src/vs/workbench/contrib/search/browser/searchView.js +53 -53
- package/vscode/src/vs/workbench/contrib/search/browser/searchWidget.js +8 -8
- 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/contrib/searchEditor/browser/searchEditorInput.js +4 -4
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorSerialization.js +5 -5
- 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": "15.0.
|
|
3
|
+
"version": "15.0.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - search service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,24 +15,24 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-12c5f9eb-72d3-57ca-babd-5bef7aa9de3b-common": "15.0.
|
|
19
|
-
"@codingame/monaco-vscode-1ae7d696-d960-5ac6-97a3-9fe7c8c3a793-common": "15.0.
|
|
20
|
-
"@codingame/monaco-vscode-42931eb9-e564-530c-bafc-fa23ab43a070-common": "15.0.
|
|
21
|
-
"@codingame/monaco-vscode-45a408c6-90ed-5d8b-801d-f3f69c7a97f2-common": "15.0.
|
|
22
|
-
"@codingame/monaco-vscode-4ead9d5f-54da-5c5a-b093-32be4a84d711-common": "15.0.
|
|
23
|
-
"@codingame/monaco-vscode-523730aa-81e6-55d7-9916-87ad537fe087-common": "15.0.
|
|
24
|
-
"@codingame/monaco-vscode-65619f8f-0eab-5d8b-855a-43b6353fe527-common": "15.0.
|
|
25
|
-
"@codingame/monaco-vscode-695440c8-a687-5594-b476-bbc7b36bafe9-common": "15.0.
|
|
26
|
-
"@codingame/monaco-vscode-6f9bc782-77e0-5716-93bd-b05210c768c5-common": "15.0.
|
|
27
|
-
"@codingame/monaco-vscode-7559b0be-bfa5-5fe6-b731-1973fe9fffa1-common": "15.0.
|
|
28
|
-
"@codingame/monaco-vscode-81f603ca-d6ea-5402-90dd-3014dffc63b4-common": "15.0.
|
|
29
|
-
"@codingame/monaco-vscode-86d65fc6-30f9-5dca-9501-e249de688591-common": "15.0.
|
|
30
|
-
"@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common": "15.0.
|
|
31
|
-
"@codingame/monaco-vscode-9b5a5e82-d649-5455-b4bf-ef90d6afd294-common": "15.0.
|
|
32
|
-
"@codingame/monaco-vscode-a4c2011e-8775-52bd-abf0-4a3c07a9696b-common": "15.0.
|
|
33
|
-
"@codingame/monaco-vscode-api": "15.0.
|
|
34
|
-
"@codingame/monaco-vscode-d56fc266-2991-5e70-8f69-134ad70e1700-common": "15.0.
|
|
35
|
-
"@codingame/monaco-vscode-ea14e352-8f1c-5569-b79a-8a96a53e8abe-common": "15.0.
|
|
18
|
+
"@codingame/monaco-vscode-12c5f9eb-72d3-57ca-babd-5bef7aa9de3b-common": "15.0.2",
|
|
19
|
+
"@codingame/monaco-vscode-1ae7d696-d960-5ac6-97a3-9fe7c8c3a793-common": "15.0.2",
|
|
20
|
+
"@codingame/monaco-vscode-42931eb9-e564-530c-bafc-fa23ab43a070-common": "15.0.2",
|
|
21
|
+
"@codingame/monaco-vscode-45a408c6-90ed-5d8b-801d-f3f69c7a97f2-common": "15.0.2",
|
|
22
|
+
"@codingame/monaco-vscode-4ead9d5f-54da-5c5a-b093-32be4a84d711-common": "15.0.2",
|
|
23
|
+
"@codingame/monaco-vscode-523730aa-81e6-55d7-9916-87ad537fe087-common": "15.0.2",
|
|
24
|
+
"@codingame/monaco-vscode-65619f8f-0eab-5d8b-855a-43b6353fe527-common": "15.0.2",
|
|
25
|
+
"@codingame/monaco-vscode-695440c8-a687-5594-b476-bbc7b36bafe9-common": "15.0.2",
|
|
26
|
+
"@codingame/monaco-vscode-6f9bc782-77e0-5716-93bd-b05210c768c5-common": "15.0.2",
|
|
27
|
+
"@codingame/monaco-vscode-7559b0be-bfa5-5fe6-b731-1973fe9fffa1-common": "15.0.2",
|
|
28
|
+
"@codingame/monaco-vscode-81f603ca-d6ea-5402-90dd-3014dffc63b4-common": "15.0.2",
|
|
29
|
+
"@codingame/monaco-vscode-86d65fc6-30f9-5dca-9501-e249de688591-common": "15.0.2",
|
|
30
|
+
"@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common": "15.0.2",
|
|
31
|
+
"@codingame/monaco-vscode-9b5a5e82-d649-5455-b4bf-ef90d6afd294-common": "15.0.2",
|
|
32
|
+
"@codingame/monaco-vscode-a4c2011e-8775-52bd-abf0-4a3c07a9696b-common": "15.0.2",
|
|
33
|
+
"@codingame/monaco-vscode-api": "15.0.2",
|
|
34
|
+
"@codingame/monaco-vscode-d56fc266-2991-5e70-8f69-134ad70e1700-common": "15.0.2",
|
|
35
|
+
"@codingame/monaco-vscode-ea14e352-8f1c-5569-b79a-8a96a53e8abe-common": "15.0.2"
|
|
36
36
|
},
|
|
37
37
|
"main": "index.js",
|
|
38
38
|
"module": "index.js",
|
|
@@ -29,7 +29,7 @@ let PatternInputWidget = class PatternInputWidget extends Widget {
|
|
|
29
29
|
this.onCancel = this._onCancel.event;
|
|
30
30
|
options = {
|
|
31
31
|
...{
|
|
32
|
-
ariaLabel: ( localize(
|
|
32
|
+
ariaLabel: ( localize(8891, "input"))
|
|
33
33
|
},
|
|
34
34
|
...options,
|
|
35
35
|
};
|
|
@@ -157,7 +157,7 @@ let IncludePatternInputWidget = class IncludePatternInputWidget extends PatternI
|
|
|
157
157
|
renderSubcontrols(controlsDiv) {
|
|
158
158
|
this.useSearchInEditorsBox = this._register(( new Toggle({
|
|
159
159
|
icon: Codicon.book,
|
|
160
|
-
title: ( localize(
|
|
160
|
+
title: ( localize(8892, "Search only in Open Editors")),
|
|
161
161
|
isChecked: false,
|
|
162
162
|
hoverDelegate: getDefaultHoverDelegate('element'),
|
|
163
163
|
...defaultToggleStyles
|
|
@@ -201,7 +201,7 @@ let ExcludePatternInputWidget = class ExcludePatternInputWidget extends PatternI
|
|
|
201
201
|
this.useExcludesAndIgnoreFilesBox = this._register(( new Toggle({
|
|
202
202
|
icon: Codicon.exclude,
|
|
203
203
|
actionClassName: 'useExcludesAndIgnoreFiles',
|
|
204
|
-
title: ( localize(
|
|
204
|
+
title: ( localize(8893, "Use Exclude Settings and Ignore Files")),
|
|
205
205
|
isChecked: true,
|
|
206
206
|
hoverDelegate: getDefaultHoverDelegate('element'),
|
|
207
207
|
...defaultToggleStyles
|
package/vscode/src/vs/workbench/contrib/search/browser/quickTextSearch/textSearchQuickAccess.js
CHANGED
|
@@ -86,7 +86,7 @@ let TextSearchQuickAccess = class TextSearchQuickAccess extends PickerQuickAcces
|
|
|
86
86
|
picker.buttons = [{
|
|
87
87
|
location: QuickInputButtonLocation.Inline,
|
|
88
88
|
iconClass: ThemeIcon.asClassName(Codicon.goToSearch),
|
|
89
|
-
tooltip: ( localize(
|
|
89
|
+
tooltip: ( localize(8894, "Open in Search View"))
|
|
90
90
|
}];
|
|
91
91
|
this.editorViewState.reset();
|
|
92
92
|
disposables.add(picker.onDidTriggerButton(async () => {
|
|
@@ -200,7 +200,7 @@ let TextSearchQuickAccess = class TextSearchQuickAccess extends PickerQuickAcces
|
|
|
200
200
|
type: 'separator',
|
|
201
201
|
});
|
|
202
202
|
picks.push({
|
|
203
|
-
label: ( localize(
|
|
203
|
+
label: ( localize(8895, "See More Files")),
|
|
204
204
|
iconClass: ThemeIcon.asClassName(searchDetailsIcon),
|
|
205
205
|
accept: async () => {
|
|
206
206
|
await this.moveToSearchViewlet(matches[limit]);
|
|
@@ -217,7 +217,7 @@ let TextSearchQuickAccess = class TextSearchQuickAccess extends PickerQuickAcces
|
|
|
217
217
|
description,
|
|
218
218
|
buttons: [{
|
|
219
219
|
iconClass: ThemeIcon.asClassName(searchOpenInFileIcon),
|
|
220
|
-
tooltip: ( localize(
|
|
220
|
+
tooltip: ( localize(8896, "Open File"))
|
|
221
221
|
}],
|
|
222
222
|
trigger: async () => {
|
|
223
223
|
await this.handleAccept(iFileInstanceMatch, {});
|
|
@@ -229,7 +229,7 @@ let TextSearchQuickAccess = class TextSearchQuickAccess extends PickerQuickAcces
|
|
|
229
229
|
const element = results[matchIndex];
|
|
230
230
|
if (matchIndex === MAX_RESULTS_PER_FILE) {
|
|
231
231
|
picks.push({
|
|
232
|
-
label: ( localize(
|
|
232
|
+
label: ( localize(8897, "More")),
|
|
233
233
|
iconClass: ThemeIcon.asClassName(searchDetailsIcon),
|
|
234
234
|
accept: async () => {
|
|
235
235
|
await this.moveToSearchViewlet(element);
|
|
@@ -250,7 +250,7 @@ let TextSearchQuickAccess = class TextSearchQuickAccess extends PickerQuickAcces
|
|
|
250
250
|
},
|
|
251
251
|
buttons: [{
|
|
252
252
|
iconClass: ThemeIcon.asClassName(searchActivityBarIcon),
|
|
253
|
-
tooltip: ( localize(
|
|
253
|
+
tooltip: ( localize(8898, "Open in Search View")),
|
|
254
254
|
}],
|
|
255
255
|
ariaLabel: `Match at location ${element.range().startLineNumber}:${element.range().startColumn} - ${previewText}`,
|
|
256
256
|
accept: async (keyMods, event) => {
|
|
@@ -288,7 +288,7 @@ let TextSearchQuickAccess = class TextSearchQuickAccess extends PickerQuickAcces
|
|
|
288
288
|
if (contentPattern === '') {
|
|
289
289
|
this.searchModel.searchResult.clear();
|
|
290
290
|
return [{
|
|
291
|
-
label: ( localize(
|
|
291
|
+
label: ( localize(8899, "Enter a term to search for across your files."))
|
|
292
292
|
}];
|
|
293
293
|
}
|
|
294
294
|
const conditionalTokenCts = disposables.add(( new CancellationTokenSource()));
|
|
@@ -313,7 +313,7 @@ let TextSearchQuickAccess = class TextSearchQuickAccess extends PickerQuickAcces
|
|
|
313
313
|
picks: syncResult,
|
|
314
314
|
additionalPicks: allMatches.asyncResults
|
|
315
315
|
.then(asyncResults => (asyncResults.length + syncResult.length === 0) ? [{
|
|
316
|
-
label: ( localize(
|
|
316
|
+
label: ( localize(8900, "No matching results"))
|
|
317
317
|
}] : this._getPicksFromMatches(asyncResults, MAX_FILES_SHOWN - matches.length))
|
|
318
318
|
.then(picks => {
|
|
319
319
|
if (picks.length > 0) {
|
|
@@ -90,7 +90,7 @@ ReplacePreviewModel = ( __decorate([
|
|
|
90
90
|
], ReplacePreviewModel));
|
|
91
91
|
let ReplaceService = class ReplaceService {
|
|
92
92
|
static { ReplaceService_1 = this; }
|
|
93
|
-
static { this.REPLACE_SAVE_SOURCE = SaveSourceRegistry.registerSource('searchReplace.source', ( localize(
|
|
93
|
+
static { this.REPLACE_SAVE_SOURCE = SaveSourceRegistry.registerSource('searchReplace.source', ( localize(8901, "Search and Replace"))); }
|
|
94
94
|
constructor(textFileService, editorService, textModelResolverService, bulkEditorService, labelService, notebookEditorModelResolverService) {
|
|
95
95
|
this.textFileService = textFileService;
|
|
96
96
|
this.editorService = editorService;
|
|
@@ -128,7 +128,7 @@ let ReplaceService = class ReplaceService {
|
|
|
128
128
|
const editor = await this.editorService.openEditor({
|
|
129
129
|
original: { resource: fileMatch.resource },
|
|
130
130
|
modified: { resource: toReplaceResource(fileMatch.resource) },
|
|
131
|
-
label: ( localize(
|
|
131
|
+
label: ( localize(8902, "{0} ↔ {1} (Replace Preview)", fileMatch.name(), fileMatch.name())),
|
|
132
132
|
description: this.labelService.getUriLabel(dirname(fileMatch.resource), { relative: true }),
|
|
133
133
|
options: {
|
|
134
134
|
preserveFocus,
|
|
@@ -43,7 +43,7 @@ registerContributions$1();
|
|
|
43
43
|
const SEARCH_MODE_CONFIG = 'search.mode';
|
|
44
44
|
const viewContainer = ( Registry.as(Extensions.ViewContainersRegistry)).registerViewContainer({
|
|
45
45
|
id: VIEWLET_ID,
|
|
46
|
-
title: ( localize2(
|
|
46
|
+
title: ( localize2(8903, "Search")),
|
|
47
47
|
ctorDescriptor: ( new SyncDescriptor(
|
|
48
48
|
ViewPaneContainer,
|
|
49
49
|
[VIEWLET_ID, { mergeViewWithContainerWhenSingleView: true }]
|
|
@@ -55,13 +55,13 @@ const viewContainer = ( Registry.as(Extensions.ViewContainersRegistry)).register
|
|
|
55
55
|
const viewDescriptor = {
|
|
56
56
|
id: VIEW_ID,
|
|
57
57
|
containerIcon: searchViewIcon,
|
|
58
|
-
name: ( localize2(
|
|
58
|
+
name: ( localize2(8903, "Search")),
|
|
59
59
|
ctorDescriptor: ( new SyncDescriptor(SearchView)),
|
|
60
60
|
canToggleVisibility: false,
|
|
61
61
|
canMoveView: true,
|
|
62
62
|
openCommandActionDescriptor: {
|
|
63
63
|
id: viewContainer.id,
|
|
64
|
-
mnemonicTitle: ( localize(
|
|
64
|
+
mnemonicTitle: ( localize(8904, "&&Search")),
|
|
65
65
|
keybindings: {
|
|
66
66
|
primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyF,
|
|
67
67
|
when: ( ContextKeyExpr.regex('neverMatch', /doesNotMatch/))
|
|
@@ -75,14 +75,14 @@ quickAccessRegistry.registerQuickAccessProvider({
|
|
|
75
75
|
ctor: AnythingQuickAccessProvider,
|
|
76
76
|
prefix: AnythingQuickAccessProvider.PREFIX,
|
|
77
77
|
placeholder: ( localize(
|
|
78
|
-
|
|
78
|
+
8905,
|
|
79
79
|
"Search files by name (append {0} to go to line or {1} to go to symbol)",
|
|
80
80
|
AbstractGotoLineQuickAccessProvider.PREFIX,
|
|
81
81
|
GotoSymbolQuickAccessProvider.PREFIX
|
|
82
82
|
)),
|
|
83
83
|
contextKey: defaultQuickAccessContextKeyValue,
|
|
84
84
|
helpEntries: [{
|
|
85
|
-
description: ( localize(
|
|
85
|
+
description: ( localize(8906, "Go to File")),
|
|
86
86
|
commandId: 'workbench.action.quickOpen',
|
|
87
87
|
commandCenterOrder: 10
|
|
88
88
|
}]
|
|
@@ -90,18 +90,18 @@ quickAccessRegistry.registerQuickAccessProvider({
|
|
|
90
90
|
quickAccessRegistry.registerQuickAccessProvider({
|
|
91
91
|
ctor: SymbolsQuickAccessProvider,
|
|
92
92
|
prefix: SymbolsQuickAccessProvider.PREFIX,
|
|
93
|
-
placeholder: ( localize(
|
|
93
|
+
placeholder: ( localize(8907, "Type the name of a symbol to open.")),
|
|
94
94
|
contextKey: 'inWorkspaceSymbolsPicker',
|
|
95
|
-
helpEntries: [{ description: ( localize(
|
|
95
|
+
helpEntries: [{ description: ( localize(8908, "Go to Symbol in Workspace")), commandId: SearchCommandIds.ShowAllSymbolsActionId }]
|
|
96
96
|
});
|
|
97
97
|
quickAccessRegistry.registerQuickAccessProvider({
|
|
98
98
|
ctor: TextSearchQuickAccess,
|
|
99
99
|
prefix: TEXT_SEARCH_QUICK_ACCESS_PREFIX,
|
|
100
100
|
contextKey: 'inTextSearchPicker',
|
|
101
|
-
placeholder: ( localize(
|
|
101
|
+
placeholder: ( localize(8909, "Search for text in your workspace files.")),
|
|
102
102
|
helpEntries: [
|
|
103
103
|
{
|
|
104
|
-
description: ( localize(
|
|
104
|
+
description: ( localize(8910, "Search for Text")),
|
|
105
105
|
commandId: SearchCommandIds.QuickTextSearchActionId,
|
|
106
106
|
commandCenterOrder: 25,
|
|
107
107
|
}
|
|
@@ -111,13 +111,13 @@ const configurationRegistry = ( Registry.as(Extensions$2.Configuration));
|
|
|
111
111
|
configurationRegistry.registerConfiguration({
|
|
112
112
|
id: 'search',
|
|
113
113
|
order: 13,
|
|
114
|
-
title: ( localize(
|
|
114
|
+
title: ( localize(8911, "Search")),
|
|
115
115
|
type: 'object',
|
|
116
116
|
properties: {
|
|
117
117
|
[SEARCH_EXCLUDE_CONFIG]: {
|
|
118
118
|
type: 'object',
|
|
119
119
|
markdownDescription: ( localize(
|
|
120
|
-
|
|
120
|
+
8912,
|
|
121
121
|
"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."
|
|
122
122
|
)),
|
|
123
123
|
default: { '**/node_modules': true, '**/bower_components': true, '**/*.code-search': true },
|
|
@@ -126,7 +126,7 @@ configurationRegistry.registerConfiguration({
|
|
|
126
126
|
{
|
|
127
127
|
type: 'boolean',
|
|
128
128
|
description: ( localize(
|
|
129
|
-
|
|
129
|
+
8913,
|
|
130
130
|
"The glob pattern to match file paths against. Set to true or false to enable or disable the pattern."
|
|
131
131
|
)),
|
|
132
132
|
},
|
|
@@ -138,7 +138,7 @@ configurationRegistry.registerConfiguration({
|
|
|
138
138
|
pattern: '\\w*\\$\\(basename\\)\\w*',
|
|
139
139
|
default: '$(basename).ext',
|
|
140
140
|
markdownDescription: ( localize(
|
|
141
|
-
|
|
141
|
+
8914,
|
|
142
142
|
'Additional check on the siblings of a matching file. Use \\$(basename) as variable for the matching file name.'
|
|
143
143
|
))
|
|
144
144
|
}
|
|
@@ -153,26 +153,26 @@ configurationRegistry.registerConfiguration({
|
|
|
153
153
|
enum: ['view', 'reuseEditor', 'newEditor'],
|
|
154
154
|
default: 'view',
|
|
155
155
|
markdownDescription: ( localize(
|
|
156
|
-
|
|
156
|
+
8915,
|
|
157
157
|
"Controls where new `Search: Find in Files` and `Find in Folder` operations occur: either in the search view, or in a search editor."
|
|
158
158
|
)),
|
|
159
159
|
enumDescriptions: [
|
|
160
|
-
( localize(
|
|
160
|
+
( localize(8916, "Search in the search view, either in the panel or side bars.")),
|
|
161
161
|
( localize(
|
|
162
|
-
|
|
162
|
+
8917,
|
|
163
163
|
"Search in an existing search editor if present, otherwise in a new search editor."
|
|
164
164
|
)),
|
|
165
|
-
( localize(
|
|
165
|
+
( localize(8918, "Search in a new search editor.")),
|
|
166
166
|
]
|
|
167
167
|
},
|
|
168
168
|
'search.useRipgrep': {
|
|
169
169
|
type: 'boolean',
|
|
170
170
|
description: ( localize(
|
|
171
|
-
|
|
171
|
+
8919,
|
|
172
172
|
"This setting is deprecated and now falls back on \"search.usePCRE2\"."
|
|
173
173
|
)),
|
|
174
174
|
deprecationMessage: ( localize(
|
|
175
|
-
|
|
175
|
+
8920,
|
|
176
176
|
"Deprecated. Consider \"search.usePCRE2\" for advanced regex feature support."
|
|
177
177
|
)),
|
|
178
178
|
default: true
|
|
@@ -180,11 +180,11 @@ configurationRegistry.registerConfiguration({
|
|
|
180
180
|
'search.maintainFileSearchCache': {
|
|
181
181
|
type: 'boolean',
|
|
182
182
|
deprecationMessage: ( localize(
|
|
183
|
-
|
|
183
|
+
8921,
|
|
184
184
|
"The search cache is kept in the extension host which never shuts down, so this setting is no longer needed."
|
|
185
185
|
)),
|
|
186
186
|
description: ( localize(
|
|
187
|
-
|
|
187
|
+
8922,
|
|
188
188
|
"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."
|
|
189
189
|
)),
|
|
190
190
|
default: false
|
|
@@ -192,7 +192,7 @@ configurationRegistry.registerConfiguration({
|
|
|
192
192
|
'search.useIgnoreFiles': {
|
|
193
193
|
type: 'boolean',
|
|
194
194
|
markdownDescription: ( localize(
|
|
195
|
-
|
|
195
|
+
8923,
|
|
196
196
|
"Controls whether to use `.gitignore` and `.ignore` files when searching for files."
|
|
197
197
|
)),
|
|
198
198
|
default: true,
|
|
@@ -201,7 +201,7 @@ configurationRegistry.registerConfiguration({
|
|
|
201
201
|
'search.useGlobalIgnoreFiles': {
|
|
202
202
|
type: 'boolean',
|
|
203
203
|
markdownDescription: ( localize(
|
|
204
|
-
|
|
204
|
+
8924,
|
|
205
205
|
"Controls whether to use your global gitignore file (for example, from `$HOME/.config/git/ignore`) when searching for files. Requires {0} to be enabled.",
|
|
206
206
|
'`#search.useIgnoreFiles#`'
|
|
207
207
|
)),
|
|
@@ -211,7 +211,7 @@ configurationRegistry.registerConfiguration({
|
|
|
211
211
|
'search.useParentIgnoreFiles': {
|
|
212
212
|
type: 'boolean',
|
|
213
213
|
markdownDescription: ( localize(
|
|
214
|
-
|
|
214
|
+
8925,
|
|
215
215
|
"Controls whether to use `.gitignore` and `.ignore` files in parent directories when searching for files. Requires {0} to be enabled.",
|
|
216
216
|
'`#search.useIgnoreFiles#`'
|
|
217
217
|
)),
|
|
@@ -221,7 +221,7 @@ configurationRegistry.registerConfiguration({
|
|
|
221
221
|
'search.quickOpen.includeSymbols': {
|
|
222
222
|
type: 'boolean',
|
|
223
223
|
description: ( localize(
|
|
224
|
-
|
|
224
|
+
8926,
|
|
225
225
|
"Whether to include results from a global symbol search in the file results for Quick Open."
|
|
226
226
|
)),
|
|
227
227
|
default: false
|
|
@@ -229,7 +229,7 @@ configurationRegistry.registerConfiguration({
|
|
|
229
229
|
'search.ripgrep.maxThreads': {
|
|
230
230
|
type: 'number',
|
|
231
231
|
description: ( localize(
|
|
232
|
-
|
|
232
|
+
8927,
|
|
233
233
|
"Number of threads to use for searching. When set to 0, the engine automatically determines this value."
|
|
234
234
|
)),
|
|
235
235
|
default: 0
|
|
@@ -237,7 +237,7 @@ configurationRegistry.registerConfiguration({
|
|
|
237
237
|
'search.quickOpen.includeHistory': {
|
|
238
238
|
type: 'boolean',
|
|
239
239
|
description: ( localize(
|
|
240
|
-
|
|
240
|
+
8928,
|
|
241
241
|
"Whether to include results from recently opened files in the file results for Quick Open."
|
|
242
242
|
)),
|
|
243
243
|
default: true
|
|
@@ -248,28 +248,28 @@ configurationRegistry.registerConfiguration({
|
|
|
248
248
|
default: 'default',
|
|
249
249
|
enumDescriptions: [
|
|
250
250
|
( localize(
|
|
251
|
-
|
|
251
|
+
8929,
|
|
252
252
|
'History entries are sorted by relevance based on the filter value used. More relevant entries appear first.'
|
|
253
253
|
)),
|
|
254
254
|
( localize(
|
|
255
|
-
|
|
255
|
+
8930,
|
|
256
256
|
'History entries are sorted by recency. More recently opened entries appear first.'
|
|
257
257
|
))
|
|
258
258
|
],
|
|
259
259
|
description: ( localize(
|
|
260
|
-
|
|
260
|
+
8931,
|
|
261
261
|
"Controls sorting order of editor history in quick open when filtering."
|
|
262
262
|
))
|
|
263
263
|
},
|
|
264
264
|
'search.followSymlinks': {
|
|
265
265
|
type: 'boolean',
|
|
266
|
-
description: ( localize(
|
|
266
|
+
description: ( localize(8932, "Controls whether to follow symlinks while searching.")),
|
|
267
267
|
default: true
|
|
268
268
|
},
|
|
269
269
|
'search.smartCase': {
|
|
270
270
|
type: 'boolean',
|
|
271
271
|
description: ( localize(
|
|
272
|
-
|
|
272
|
+
8933,
|
|
273
273
|
"Search case-insensitively if the pattern is all lowercase, otherwise, search case-sensitively."
|
|
274
274
|
)),
|
|
275
275
|
default: false
|
|
@@ -278,7 +278,7 @@ configurationRegistry.registerConfiguration({
|
|
|
278
278
|
type: 'boolean',
|
|
279
279
|
default: false,
|
|
280
280
|
description: ( localize(
|
|
281
|
-
|
|
281
|
+
8934,
|
|
282
282
|
"Controls whether the search view should read or modify the shared find clipboard on macOS."
|
|
283
283
|
)),
|
|
284
284
|
included: isMacintosh
|
|
@@ -288,11 +288,11 @@ configurationRegistry.registerConfiguration({
|
|
|
288
288
|
enum: ['sidebar', 'panel'],
|
|
289
289
|
default: 'sidebar',
|
|
290
290
|
description: ( localize(
|
|
291
|
-
|
|
291
|
+
8935,
|
|
292
292
|
"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."
|
|
293
293
|
)),
|
|
294
294
|
deprecationMessage: ( localize(
|
|
295
|
-
|
|
295
|
+
8936,
|
|
296
296
|
"This setting is deprecated. You can drag the search icon to a new location instead."
|
|
297
297
|
))
|
|
298
298
|
},
|
|
@@ -300,7 +300,7 @@ configurationRegistry.registerConfiguration({
|
|
|
300
300
|
type: ['number', 'null'],
|
|
301
301
|
default: DEFAULT_MAX_SEARCH_RESULTS,
|
|
302
302
|
markdownDescription: ( localize(
|
|
303
|
-
|
|
303
|
+
8937,
|
|
304
304
|
"Controls the maximum number of search results, this can be set to `null` (empty) to return unlimited results."
|
|
305
305
|
))
|
|
306
306
|
},
|
|
@@ -309,37 +309,37 @@ configurationRegistry.registerConfiguration({
|
|
|
309
309
|
enum: ['auto', 'alwaysCollapse', 'alwaysExpand'],
|
|
310
310
|
enumDescriptions: [
|
|
311
311
|
( localize(
|
|
312
|
-
|
|
312
|
+
8938,
|
|
313
313
|
"Files with less than 10 results are expanded. Others are collapsed."
|
|
314
314
|
)),
|
|
315
315
|
'',
|
|
316
316
|
''
|
|
317
317
|
],
|
|
318
318
|
default: 'alwaysExpand',
|
|
319
|
-
description: ( localize(
|
|
319
|
+
description: ( localize(8939, "Controls whether the search results will be collapsed or expanded.")),
|
|
320
320
|
},
|
|
321
321
|
'search.useReplacePreview': {
|
|
322
322
|
type: 'boolean',
|
|
323
323
|
default: true,
|
|
324
324
|
description: ( localize(
|
|
325
|
-
|
|
325
|
+
8940,
|
|
326
326
|
"Controls whether to open Replace Preview when selecting or replacing a match."
|
|
327
327
|
)),
|
|
328
328
|
},
|
|
329
329
|
'search.showLineNumbers': {
|
|
330
330
|
type: 'boolean',
|
|
331
331
|
default: false,
|
|
332
|
-
description: ( localize(
|
|
332
|
+
description: ( localize(8941, "Controls whether to show line numbers for search results.")),
|
|
333
333
|
},
|
|
334
334
|
'search.usePCRE2': {
|
|
335
335
|
type: 'boolean',
|
|
336
336
|
default: false,
|
|
337
337
|
description: ( localize(
|
|
338
|
-
|
|
338
|
+
8942,
|
|
339
339
|
"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."
|
|
340
340
|
)),
|
|
341
341
|
deprecationMessage: ( localize(
|
|
342
|
-
|
|
342
|
+
8943,
|
|
343
343
|
"Deprecated. PCRE2 will be used automatically when using regex features that are only supported by PCRE2."
|
|
344
344
|
)),
|
|
345
345
|
},
|
|
@@ -348,27 +348,27 @@ configurationRegistry.registerConfiguration({
|
|
|
348
348
|
enum: ['auto', 'right'],
|
|
349
349
|
enumDescriptions: [
|
|
350
350
|
( localize(
|
|
351
|
-
|
|
351
|
+
8944,
|
|
352
352
|
"Position the actionbar to the right when the search view is narrow, and immediately after the content when the search view is wide."
|
|
353
353
|
)),
|
|
354
|
-
( localize(
|
|
354
|
+
( localize(8945, "Always position the actionbar to the right.")),
|
|
355
355
|
],
|
|
356
356
|
default: 'right',
|
|
357
357
|
description: ( localize(
|
|
358
|
-
|
|
358
|
+
8946,
|
|
359
359
|
"Controls the positioning of the actionbar on rows in the search view."
|
|
360
360
|
))
|
|
361
361
|
},
|
|
362
362
|
'search.searchOnType': {
|
|
363
363
|
type: 'boolean',
|
|
364
364
|
default: true,
|
|
365
|
-
description: ( localize(
|
|
365
|
+
description: ( localize(8947, "Search all files as you type."))
|
|
366
366
|
},
|
|
367
367
|
'search.seedWithNearestWord': {
|
|
368
368
|
type: 'boolean',
|
|
369
369
|
default: false,
|
|
370
370
|
description: ( localize(
|
|
371
|
-
|
|
371
|
+
8948,
|
|
372
372
|
"Enable seeding search from the word nearest the cursor when the active editor has no selection."
|
|
373
373
|
))
|
|
374
374
|
},
|
|
@@ -376,7 +376,7 @@ configurationRegistry.registerConfiguration({
|
|
|
376
376
|
type: 'boolean',
|
|
377
377
|
default: false,
|
|
378
378
|
markdownDescription: ( localize(
|
|
379
|
-
|
|
379
|
+
8949,
|
|
380
380
|
"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."
|
|
381
381
|
))
|
|
382
382
|
},
|
|
@@ -384,7 +384,7 @@ configurationRegistry.registerConfiguration({
|
|
|
384
384
|
type: 'number',
|
|
385
385
|
default: 300,
|
|
386
386
|
markdownDescription: ( localize(
|
|
387
|
-
|
|
387
|
+
8950,
|
|
388
388
|
"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.",
|
|
389
389
|
'`#search.searchOnType#`'
|
|
390
390
|
))
|
|
@@ -394,30 +394,30 @@ configurationRegistry.registerConfiguration({
|
|
|
394
394
|
enum: ['selectWord', 'goToLocation', 'openLocationToSide'],
|
|
395
395
|
default: 'goToLocation',
|
|
396
396
|
enumDescriptions: [
|
|
397
|
-
( localize(
|
|
398
|
-
( localize(
|
|
397
|
+
( localize(8951, "Double-clicking selects the word under the cursor.")),
|
|
398
|
+
( localize(8952, "Double-clicking opens the result in the active editor group.")),
|
|
399
399
|
( localize(
|
|
400
|
-
|
|
400
|
+
8953,
|
|
401
401
|
"Double-clicking opens the result in the editor group to the side, creating one if it does not yet exist."
|
|
402
402
|
)),
|
|
403
403
|
],
|
|
404
|
-
markdownDescription: ( localize(
|
|
404
|
+
markdownDescription: ( localize(8954, "Configure effect of double-clicking a result in a search editor."))
|
|
405
405
|
},
|
|
406
406
|
'search.searchEditor.singleClickBehaviour': {
|
|
407
407
|
type: 'string',
|
|
408
408
|
enum: ['default', 'peekDefinition',],
|
|
409
409
|
default: 'default',
|
|
410
410
|
enumDescriptions: [
|
|
411
|
-
( localize(
|
|
412
|
-
( localize(
|
|
411
|
+
( localize(8955, "Single-clicking does nothing.")),
|
|
412
|
+
( localize(8956, "Single-clicking opens a Peek Definition window.")),
|
|
413
413
|
],
|
|
414
|
-
markdownDescription: ( localize(
|
|
414
|
+
markdownDescription: ( localize(8957, "Configure effect of single-clicking a result in a search editor."))
|
|
415
415
|
},
|
|
416
416
|
'search.searchEditor.reusePriorSearchConfiguration': {
|
|
417
417
|
type: 'boolean',
|
|
418
418
|
default: false,
|
|
419
419
|
markdownDescription: ( localize(
|
|
420
|
-
|
|
420
|
+
8958,
|
|
421
421
|
"When enabled, new Search Editors will reuse the includes, excludes, and flags of the previously opened Search Editor."
|
|
422
422
|
))
|
|
423
423
|
},
|
|
@@ -425,7 +425,7 @@ configurationRegistry.registerConfiguration({
|
|
|
425
425
|
type: ['number', 'null'],
|
|
426
426
|
default: 1,
|
|
427
427
|
markdownDescription: ( localize(
|
|
428
|
-
|
|
428
|
+
8959,
|
|
429
429
|
"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."
|
|
430
430
|
))
|
|
431
431
|
},
|
|
@@ -433,7 +433,7 @@ configurationRegistry.registerConfiguration({
|
|
|
433
433
|
type: 'boolean',
|
|
434
434
|
default: false,
|
|
435
435
|
markdownDescription: ( localize(
|
|
436
|
-
|
|
436
|
+
8960,
|
|
437
437
|
"When a search is triggered, focus the Search Editor results instead of the Search Editor input."
|
|
438
438
|
))
|
|
439
439
|
},
|
|
@@ -443,31 +443,31 @@ configurationRegistry.registerConfiguration({
|
|
|
443
443
|
default: SearchSortOrder.Default,
|
|
444
444
|
enumDescriptions: [
|
|
445
445
|
( localize(
|
|
446
|
-
|
|
446
|
+
8961,
|
|
447
447
|
"Results are sorted by folder and file names, in alphabetical order."
|
|
448
448
|
)),
|
|
449
449
|
( localize(
|
|
450
|
-
|
|
450
|
+
8962,
|
|
451
451
|
"Results are sorted by file names ignoring folder order, in alphabetical order."
|
|
452
452
|
)),
|
|
453
|
-
( localize(
|
|
453
|
+
( localize(8963, "Results are sorted by file extensions, in alphabetical order.")),
|
|
454
454
|
( localize(
|
|
455
|
-
|
|
455
|
+
8964,
|
|
456
456
|
"Results are sorted by file last modified date, in descending order."
|
|
457
457
|
)),
|
|
458
|
-
( localize(
|
|
459
|
-
( localize(
|
|
458
|
+
( localize(8965, "Results are sorted by count per file, in descending order.")),
|
|
459
|
+
( localize(8966, "Results are sorted by count per file, in ascending order."))
|
|
460
460
|
],
|
|
461
|
-
description: ( localize(
|
|
461
|
+
description: ( localize(8967, "Controls sorting order of search results."))
|
|
462
462
|
},
|
|
463
463
|
'search.decorations.colors': {
|
|
464
464
|
type: 'boolean',
|
|
465
|
-
description: ( localize(
|
|
465
|
+
description: ( localize(8968, "Controls whether search file decorations should use colors.")),
|
|
466
466
|
default: true
|
|
467
467
|
},
|
|
468
468
|
'search.decorations.badges': {
|
|
469
469
|
type: 'boolean',
|
|
470
|
-
description: ( localize(
|
|
470
|
+
description: ( localize(8969, "Controls whether search file decorations should use badges.")),
|
|
471
471
|
default: true
|
|
472
472
|
},
|
|
473
473
|
'search.defaultViewMode': {
|
|
@@ -475,15 +475,15 @@ configurationRegistry.registerConfiguration({
|
|
|
475
475
|
enum: [ViewMode.Tree, ViewMode.List],
|
|
476
476
|
default: ViewMode.List,
|
|
477
477
|
enumDescriptions: [
|
|
478
|
-
( localize(
|
|
479
|
-
( localize(
|
|
478
|
+
( localize(8970, "Shows search results as a tree.")),
|
|
479
|
+
( localize(8971, "Shows search results as a list."))
|
|
480
480
|
],
|
|
481
|
-
description: ( localize(
|
|
481
|
+
description: ( localize(8972, "Controls the default search result view mode."))
|
|
482
482
|
},
|
|
483
483
|
'search.quickAccess.preserveInput': {
|
|
484
484
|
type: 'boolean',
|
|
485
485
|
description: ( localize(
|
|
486
|
-
|
|
486
|
+
8973,
|
|
487
487
|
"Controls whether the last typed input to Quick Search should be restored when opening it the next time."
|
|
488
488
|
)),
|
|
489
489
|
default: false
|
|
@@ -491,7 +491,7 @@ configurationRegistry.registerConfiguration({
|
|
|
491
491
|
'search.experimental.closedNotebookRichContentResults': {
|
|
492
492
|
type: 'boolean',
|
|
493
493
|
description: ( localize(
|
|
494
|
-
|
|
494
|
+
8974,
|
|
495
495
|
"Show notebook editor rich content results for closed notebooks. Please refresh your search results after changing this setting."
|
|
496
496
|
)),
|
|
497
497
|
default: false
|