@codingame/monaco-vscode-search-service-override 11.0.0 → 11.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 +3 -3
- 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": "11.0.
|
|
3
|
+
"version": "11.0.2",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"vscode": "npm:@codingame/monaco-vscode-api@11.0.
|
|
33
|
-
"@codingame/monaco-vscode-chat-interactive-notebook-search-common": "11.0.
|
|
32
|
+
"vscode": "npm:@codingame/monaco-vscode-api@11.0.2",
|
|
33
|
+
"@codingame/monaco-vscode-chat-interactive-notebook-search-common": "11.0.2"
|
|
34
34
|
}
|
|
35
35
|
}
|
|
@@ -27,7 +27,7 @@ let PatternInputWidget = class PatternInputWidget extends Widget {
|
|
|
27
27
|
this.onCancel = this._onCancel.event;
|
|
28
28
|
options = {
|
|
29
29
|
...{
|
|
30
|
-
ariaLabel: ( localize(
|
|
30
|
+
ariaLabel: ( localize(11043, "input"))
|
|
31
31
|
},
|
|
32
32
|
...options,
|
|
33
33
|
};
|
|
@@ -154,7 +154,7 @@ let IncludePatternInputWidget = class IncludePatternInputWidget extends PatternI
|
|
|
154
154
|
renderSubcontrols(controlsDiv) {
|
|
155
155
|
this.useSearchInEditorsBox = this._register(( (new Toggle({
|
|
156
156
|
icon: Codicon.book,
|
|
157
|
-
title: ( localize(
|
|
157
|
+
title: ( localize(11044, "Search only in Open Editors")),
|
|
158
158
|
isChecked: false,
|
|
159
159
|
hoverDelegate: getDefaultHoverDelegate('element'),
|
|
160
160
|
...defaultToggleStyles
|
|
@@ -198,7 +198,7 @@ let ExcludePatternInputWidget = class ExcludePatternInputWidget extends PatternI
|
|
|
198
198
|
this.useExcludesAndIgnoreFilesBox = this._register(( (new Toggle({
|
|
199
199
|
icon: Codicon.exclude,
|
|
200
200
|
actionClassName: 'useExcludesAndIgnoreFiles',
|
|
201
|
-
title: ( localize(
|
|
201
|
+
title: ( localize(11045, "Use Exclude Settings and Ignore Files")),
|
|
202
202
|
isChecked: true,
|
|
203
203
|
hoverDelegate: getDefaultHoverDelegate('element'),
|
|
204
204
|
...defaultToggleStyles
|
package/vscode/src/vs/workbench/contrib/search/browser/quickTextSearch/textSearchQuickAccess.js
CHANGED
|
@@ -85,7 +85,7 @@ let TextSearchQuickAccess = class TextSearchQuickAccess extends PickerQuickAcces
|
|
|
85
85
|
picker.buttons = [{
|
|
86
86
|
location: QuickInputButtonLocation.Inline,
|
|
87
87
|
iconClass: ThemeIcon.asClassName(Codicon.goToSearch),
|
|
88
|
-
tooltip: ( localize(
|
|
88
|
+
tooltip: ( localize(8647, "See in Search Panel"))
|
|
89
89
|
}];
|
|
90
90
|
this.editorViewState.reset();
|
|
91
91
|
disposables.add(picker.onDidTriggerButton(async () => {
|
|
@@ -199,7 +199,7 @@ let TextSearchQuickAccess = class TextSearchQuickAccess extends PickerQuickAcces
|
|
|
199
199
|
type: 'separator',
|
|
200
200
|
});
|
|
201
201
|
picks.push({
|
|
202
|
-
label: ( localize(
|
|
202
|
+
label: ( localize(8648, "See More Files")),
|
|
203
203
|
iconClass: ThemeIcon.asClassName(searchDetailsIcon),
|
|
204
204
|
accept: async () => {
|
|
205
205
|
await this.moveToSearchViewlet(matches[limit]);
|
|
@@ -216,7 +216,7 @@ let TextSearchQuickAccess = class TextSearchQuickAccess extends PickerQuickAcces
|
|
|
216
216
|
description,
|
|
217
217
|
buttons: [{
|
|
218
218
|
iconClass: ThemeIcon.asClassName(searchOpenInFileIcon),
|
|
219
|
-
tooltip: ( localize(
|
|
219
|
+
tooltip: ( localize(8649, "Open File"))
|
|
220
220
|
}],
|
|
221
221
|
trigger: async () => {
|
|
222
222
|
await this.handleAccept(iFileInstanceMatch, {});
|
|
@@ -228,7 +228,7 @@ let TextSearchQuickAccess = class TextSearchQuickAccess extends PickerQuickAcces
|
|
|
228
228
|
const element = results[matchIndex];
|
|
229
229
|
if (matchIndex === MAX_RESULTS_PER_FILE) {
|
|
230
230
|
picks.push({
|
|
231
|
-
label: ( localize(
|
|
231
|
+
label: ( localize(8650, "More")),
|
|
232
232
|
iconClass: ThemeIcon.asClassName(searchDetailsIcon),
|
|
233
233
|
accept: async () => {
|
|
234
234
|
await this.moveToSearchViewlet(element);
|
|
@@ -249,7 +249,7 @@ let TextSearchQuickAccess = class TextSearchQuickAccess extends PickerQuickAcces
|
|
|
249
249
|
},
|
|
250
250
|
buttons: [{
|
|
251
251
|
iconClass: ThemeIcon.asClassName(searchActivityBarIcon),
|
|
252
|
-
tooltip: ( localize(
|
|
252
|
+
tooltip: ( localize(8651, "See in Search Panel")),
|
|
253
253
|
}],
|
|
254
254
|
ariaLabel: `Match at location ${element.range().startLineNumber}:${element.range().startColumn} - ${previewText}`,
|
|
255
255
|
accept: async (keyMods, event) => {
|
|
@@ -287,7 +287,7 @@ let TextSearchQuickAccess = class TextSearchQuickAccess extends PickerQuickAcces
|
|
|
287
287
|
if (contentPattern === '') {
|
|
288
288
|
this.searchModel.searchResult.clear();
|
|
289
289
|
return [{
|
|
290
|
-
label: ( localize(
|
|
290
|
+
label: ( localize(8652, "Enter a term to search for across your files."))
|
|
291
291
|
}];
|
|
292
292
|
}
|
|
293
293
|
const conditionalTokenCts = disposables.add(( (new CancellationTokenSource())));
|
|
@@ -312,7 +312,7 @@ let TextSearchQuickAccess = class TextSearchQuickAccess extends PickerQuickAcces
|
|
|
312
312
|
picks: syncResult,
|
|
313
313
|
additionalPicks: allMatches.asyncResults
|
|
314
314
|
.then(asyncResults => (asyncResults.length + syncResult.length === 0) ? [{
|
|
315
|
-
label: ( localize(
|
|
315
|
+
label: ( localize(8653, "No matching results"))
|
|
316
316
|
}] : this._getPicksFromMatches(asyncResults, MAX_FILES_SHOWN - matches.length))
|
|
317
317
|
.then(picks => {
|
|
318
318
|
if (picks.length > 0) {
|
|
@@ -87,7 +87,7 @@ ReplacePreviewModel = ( (__decorate([
|
|
|
87
87
|
], ReplacePreviewModel)));
|
|
88
88
|
let ReplaceService = class ReplaceService {
|
|
89
89
|
static { ReplaceService_1 = this; }
|
|
90
|
-
static { this.REPLACE_SAVE_SOURCE = SaveSourceRegistry.registerSource('searchReplace.source', ( localize(
|
|
90
|
+
static { this.REPLACE_SAVE_SOURCE = SaveSourceRegistry.registerSource('searchReplace.source', ( localize(3399, "Search and Replace"))); }
|
|
91
91
|
constructor(textFileService, editorService, textModelResolverService, bulkEditorService, labelService, notebookEditorModelResolverService) {
|
|
92
92
|
this.textFileService = textFileService;
|
|
93
93
|
this.editorService = editorService;
|
|
@@ -125,7 +125,7 @@ let ReplaceService = class ReplaceService {
|
|
|
125
125
|
const editor = await this.editorService.openEditor({
|
|
126
126
|
original: { resource: fileMatch.resource },
|
|
127
127
|
modified: { resource: toReplaceResource(fileMatch.resource) },
|
|
128
|
-
label: ( localize(
|
|
128
|
+
label: ( localize(3400, "{0} ↔ {1} (Replace Preview)", fileMatch.name(), fileMatch.name())),
|
|
129
129
|
description: this.labelService.getUriLabel(dirname(fileMatch.resource), { relative: true }),
|
|
130
130
|
options: {
|
|
131
131
|
preserveFocus,
|
|
@@ -39,7 +39,7 @@ registerContributions$1();
|
|
|
39
39
|
const SEARCH_MODE_CONFIG = 'search.mode';
|
|
40
40
|
const viewContainer = ( (Registry.as(Extensions.ViewContainersRegistry))).registerViewContainer({
|
|
41
41
|
id: VIEWLET_ID,
|
|
42
|
-
title: ( localize2(
|
|
42
|
+
title: ( localize2(3423, "Search")),
|
|
43
43
|
ctorDescriptor: ( (new SyncDescriptor(
|
|
44
44
|
ViewPaneContainer,
|
|
45
45
|
[VIEWLET_ID, { mergeViewWithContainerWhenSingleView: true }]
|
|
@@ -51,13 +51,13 @@ const viewContainer = ( (Registry.as(Extensions.ViewContainersRegistry))).regist
|
|
|
51
51
|
const viewDescriptor = {
|
|
52
52
|
id: VIEW_ID,
|
|
53
53
|
containerIcon: searchViewIcon,
|
|
54
|
-
name: ( localize2(
|
|
54
|
+
name: ( localize2(3423, "Search")),
|
|
55
55
|
ctorDescriptor: ( (new SyncDescriptor(SearchView))),
|
|
56
56
|
canToggleVisibility: false,
|
|
57
57
|
canMoveView: true,
|
|
58
58
|
openCommandActionDescriptor: {
|
|
59
59
|
id: viewContainer.id,
|
|
60
|
-
mnemonicTitle: ( localize(
|
|
60
|
+
mnemonicTitle: ( localize(3424, "&&Search")),
|
|
61
61
|
keybindings: {
|
|
62
62
|
primary: 2048 | 1024 | 36 ,
|
|
63
63
|
when: ( (ContextKeyExpr.regex('neverMatch', /doesNotMatch/)))
|
|
@@ -71,14 +71,14 @@ quickAccessRegistry.registerQuickAccessProvider({
|
|
|
71
71
|
ctor: AnythingQuickAccessProvider,
|
|
72
72
|
prefix: AnythingQuickAccessProvider.PREFIX,
|
|
73
73
|
placeholder: ( localize(
|
|
74
|
-
|
|
74
|
+
3425,
|
|
75
75
|
"Search files by name (append {0} to go to line or {1} to go to symbol)",
|
|
76
76
|
AbstractGotoLineQuickAccessProvider.PREFIX,
|
|
77
77
|
GotoSymbolQuickAccessProvider.PREFIX
|
|
78
78
|
)),
|
|
79
79
|
contextKey: defaultQuickAccessContextKeyValue,
|
|
80
80
|
helpEntries: [{
|
|
81
|
-
description: ( localize(
|
|
81
|
+
description: ( localize(3426, "Go to File")),
|
|
82
82
|
commandId: 'workbench.action.quickOpen',
|
|
83
83
|
commandCenterOrder: 10
|
|
84
84
|
}]
|
|
@@ -86,18 +86,18 @@ quickAccessRegistry.registerQuickAccessProvider({
|
|
|
86
86
|
quickAccessRegistry.registerQuickAccessProvider({
|
|
87
87
|
ctor: SymbolsQuickAccessProvider,
|
|
88
88
|
prefix: SymbolsQuickAccessProvider.PREFIX,
|
|
89
|
-
placeholder: ( localize(
|
|
89
|
+
placeholder: ( localize(3427, "Type the name of a symbol to open.")),
|
|
90
90
|
contextKey: 'inWorkspaceSymbolsPicker',
|
|
91
|
-
helpEntries: [{ description: ( localize(
|
|
91
|
+
helpEntries: [{ description: ( localize(3428, "Go to Symbol in Workspace")), commandId: "workbench.action.showAllSymbols" }]
|
|
92
92
|
});
|
|
93
93
|
quickAccessRegistry.registerQuickAccessProvider({
|
|
94
94
|
ctor: TextSearchQuickAccess,
|
|
95
95
|
prefix: TEXT_SEARCH_QUICK_ACCESS_PREFIX,
|
|
96
96
|
contextKey: 'inTextSearchPicker',
|
|
97
|
-
placeholder: ( localize(
|
|
97
|
+
placeholder: ( localize(3429, "Search for text in your workspace files.")),
|
|
98
98
|
helpEntries: [
|
|
99
99
|
{
|
|
100
|
-
description: ( localize(
|
|
100
|
+
description: ( localize(3430, "Search for Text")),
|
|
101
101
|
commandId: "workbench.action.quickTextSearch" ,
|
|
102
102
|
commandCenterOrder: 25,
|
|
103
103
|
}
|
|
@@ -107,13 +107,13 @@ const configurationRegistry = ( (Registry.as(Extensions$2.Configuration)));
|
|
|
107
107
|
configurationRegistry.registerConfiguration({
|
|
108
108
|
id: 'search',
|
|
109
109
|
order: 13,
|
|
110
|
-
title: ( localize(
|
|
110
|
+
title: ( localize(3431, "Search")),
|
|
111
111
|
type: 'object',
|
|
112
112
|
properties: {
|
|
113
113
|
[SEARCH_EXCLUDE_CONFIG]: {
|
|
114
114
|
type: 'object',
|
|
115
115
|
markdownDescription: ( localize(
|
|
116
|
-
|
|
116
|
+
3432,
|
|
117
117
|
"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."
|
|
118
118
|
)),
|
|
119
119
|
default: { '**/node_modules': true, '**/bower_components': true, '**/*.code-search': true },
|
|
@@ -122,7 +122,7 @@ configurationRegistry.registerConfiguration({
|
|
|
122
122
|
{
|
|
123
123
|
type: 'boolean',
|
|
124
124
|
description: ( localize(
|
|
125
|
-
|
|
125
|
+
3433,
|
|
126
126
|
"The glob pattern to match file paths against. Set to true or false to enable or disable the pattern."
|
|
127
127
|
)),
|
|
128
128
|
},
|
|
@@ -134,7 +134,7 @@ configurationRegistry.registerConfiguration({
|
|
|
134
134
|
pattern: '\\w*\\$\\(basename\\)\\w*',
|
|
135
135
|
default: '$(basename).ext',
|
|
136
136
|
markdownDescription: ( localize(
|
|
137
|
-
|
|
137
|
+
3434,
|
|
138
138
|
'Additional check on the siblings of a matching file. Use \\$(basename) as variable for the matching file name.'
|
|
139
139
|
))
|
|
140
140
|
}
|
|
@@ -149,26 +149,26 @@ configurationRegistry.registerConfiguration({
|
|
|
149
149
|
enum: ['view', 'reuseEditor', 'newEditor'],
|
|
150
150
|
default: 'view',
|
|
151
151
|
markdownDescription: ( localize(
|
|
152
|
-
|
|
152
|
+
3435,
|
|
153
153
|
"Controls where new `Search: Find in Files` and `Find in Folder` operations occur: either in the search view, or in a search editor."
|
|
154
154
|
)),
|
|
155
155
|
enumDescriptions: [
|
|
156
|
-
( localize(
|
|
156
|
+
( localize(3436, "Search in the search view, either in the panel or side bars.")),
|
|
157
157
|
( localize(
|
|
158
|
-
|
|
158
|
+
3437,
|
|
159
159
|
"Search in an existing search editor if present, otherwise in a new search editor."
|
|
160
160
|
)),
|
|
161
|
-
( localize(
|
|
161
|
+
( localize(3438, "Search in a new search editor.")),
|
|
162
162
|
]
|
|
163
163
|
},
|
|
164
164
|
'search.useRipgrep': {
|
|
165
165
|
type: 'boolean',
|
|
166
166
|
description: ( localize(
|
|
167
|
-
|
|
167
|
+
3439,
|
|
168
168
|
"This setting is deprecated and now falls back on \"search.usePCRE2\"."
|
|
169
169
|
)),
|
|
170
170
|
deprecationMessage: ( localize(
|
|
171
|
-
|
|
171
|
+
3440,
|
|
172
172
|
"Deprecated. Consider \"search.usePCRE2\" for advanced regex feature support."
|
|
173
173
|
)),
|
|
174
174
|
default: true
|
|
@@ -176,11 +176,11 @@ configurationRegistry.registerConfiguration({
|
|
|
176
176
|
'search.maintainFileSearchCache': {
|
|
177
177
|
type: 'boolean',
|
|
178
178
|
deprecationMessage: ( localize(
|
|
179
|
-
|
|
179
|
+
3441,
|
|
180
180
|
"The search cache is kept in the extension host which never shuts down, so this setting is no longer needed."
|
|
181
181
|
)),
|
|
182
182
|
description: ( localize(
|
|
183
|
-
|
|
183
|
+
3442,
|
|
184
184
|
"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."
|
|
185
185
|
)),
|
|
186
186
|
default: false
|
|
@@ -188,7 +188,7 @@ configurationRegistry.registerConfiguration({
|
|
|
188
188
|
'search.useIgnoreFiles': {
|
|
189
189
|
type: 'boolean',
|
|
190
190
|
markdownDescription: ( localize(
|
|
191
|
-
|
|
191
|
+
3443,
|
|
192
192
|
"Controls whether to use `.gitignore` and `.ignore` files when searching for files."
|
|
193
193
|
)),
|
|
194
194
|
default: true,
|
|
@@ -197,7 +197,7 @@ configurationRegistry.registerConfiguration({
|
|
|
197
197
|
'search.useGlobalIgnoreFiles': {
|
|
198
198
|
type: 'boolean',
|
|
199
199
|
markdownDescription: ( localize(
|
|
200
|
-
|
|
200
|
+
3444,
|
|
201
201
|
"Controls whether to use your global gitignore file (for example, from `$HOME/.config/git/ignore`) when searching for files. Requires {0} to be enabled.",
|
|
202
202
|
'`#search.useIgnoreFiles#`'
|
|
203
203
|
)),
|
|
@@ -207,7 +207,7 @@ configurationRegistry.registerConfiguration({
|
|
|
207
207
|
'search.useParentIgnoreFiles': {
|
|
208
208
|
type: 'boolean',
|
|
209
209
|
markdownDescription: ( localize(
|
|
210
|
-
|
|
210
|
+
3445,
|
|
211
211
|
"Controls whether to use `.gitignore` and `.ignore` files in parent directories when searching for files. Requires {0} to be enabled.",
|
|
212
212
|
'`#search.useIgnoreFiles#`'
|
|
213
213
|
)),
|
|
@@ -217,7 +217,7 @@ configurationRegistry.registerConfiguration({
|
|
|
217
217
|
'search.quickOpen.includeSymbols': {
|
|
218
218
|
type: 'boolean',
|
|
219
219
|
description: ( localize(
|
|
220
|
-
|
|
220
|
+
3446,
|
|
221
221
|
"Whether to include results from a global symbol search in the file results for Quick Open."
|
|
222
222
|
)),
|
|
223
223
|
default: false
|
|
@@ -225,7 +225,7 @@ configurationRegistry.registerConfiguration({
|
|
|
225
225
|
'search.ripgrep.maxThreads': {
|
|
226
226
|
type: 'number',
|
|
227
227
|
description: ( localize(
|
|
228
|
-
|
|
228
|
+
3447,
|
|
229
229
|
"Number of threads to use for searching. When set to 0, the engine automatically determines this value."
|
|
230
230
|
)),
|
|
231
231
|
default: 0
|
|
@@ -233,7 +233,7 @@ configurationRegistry.registerConfiguration({
|
|
|
233
233
|
'search.quickOpen.includeHistory': {
|
|
234
234
|
type: 'boolean',
|
|
235
235
|
description: ( localize(
|
|
236
|
-
|
|
236
|
+
3448,
|
|
237
237
|
"Whether to include results from recently opened files in the file results for Quick Open."
|
|
238
238
|
)),
|
|
239
239
|
default: true
|
|
@@ -244,28 +244,28 @@ configurationRegistry.registerConfiguration({
|
|
|
244
244
|
default: 'default',
|
|
245
245
|
enumDescriptions: [
|
|
246
246
|
( localize(
|
|
247
|
-
|
|
247
|
+
3449,
|
|
248
248
|
'History entries are sorted by relevance based on the filter value used. More relevant entries appear first.'
|
|
249
249
|
)),
|
|
250
250
|
( localize(
|
|
251
|
-
|
|
251
|
+
3450,
|
|
252
252
|
'History entries are sorted by recency. More recently opened entries appear first.'
|
|
253
253
|
))
|
|
254
254
|
],
|
|
255
255
|
description: ( localize(
|
|
256
|
-
|
|
256
|
+
3451,
|
|
257
257
|
"Controls sorting order of editor history in quick open when filtering."
|
|
258
258
|
))
|
|
259
259
|
},
|
|
260
260
|
'search.followSymlinks': {
|
|
261
261
|
type: 'boolean',
|
|
262
|
-
description: ( localize(
|
|
262
|
+
description: ( localize(3452, "Controls whether to follow symlinks while searching.")),
|
|
263
263
|
default: true
|
|
264
264
|
},
|
|
265
265
|
'search.smartCase': {
|
|
266
266
|
type: 'boolean',
|
|
267
267
|
description: ( localize(
|
|
268
|
-
|
|
268
|
+
3453,
|
|
269
269
|
"Search case-insensitively if the pattern is all lowercase, otherwise, search case-sensitively."
|
|
270
270
|
)),
|
|
271
271
|
default: false
|
|
@@ -274,7 +274,7 @@ configurationRegistry.registerConfiguration({
|
|
|
274
274
|
type: 'boolean',
|
|
275
275
|
default: false,
|
|
276
276
|
description: ( localize(
|
|
277
|
-
|
|
277
|
+
3454,
|
|
278
278
|
"Controls whether the search view should read or modify the shared find clipboard on macOS."
|
|
279
279
|
)),
|
|
280
280
|
included: isMacintosh
|
|
@@ -284,11 +284,11 @@ configurationRegistry.registerConfiguration({
|
|
|
284
284
|
enum: ['sidebar', 'panel'],
|
|
285
285
|
default: 'sidebar',
|
|
286
286
|
description: ( localize(
|
|
287
|
-
|
|
287
|
+
3455,
|
|
288
288
|
"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."
|
|
289
289
|
)),
|
|
290
290
|
deprecationMessage: ( localize(
|
|
291
|
-
|
|
291
|
+
3456,
|
|
292
292
|
"This setting is deprecated. You can drag the search icon to a new location instead."
|
|
293
293
|
))
|
|
294
294
|
},
|
|
@@ -296,7 +296,7 @@ configurationRegistry.registerConfiguration({
|
|
|
296
296
|
type: ['number', 'null'],
|
|
297
297
|
default: DEFAULT_MAX_SEARCH_RESULTS,
|
|
298
298
|
markdownDescription: ( localize(
|
|
299
|
-
|
|
299
|
+
3457,
|
|
300
300
|
"Controls the maximum number of search results, this can be set to `null` (empty) to return unlimited results."
|
|
301
301
|
))
|
|
302
302
|
},
|
|
@@ -305,37 +305,37 @@ configurationRegistry.registerConfiguration({
|
|
|
305
305
|
enum: ['auto', 'alwaysCollapse', 'alwaysExpand'],
|
|
306
306
|
enumDescriptions: [
|
|
307
307
|
( localize(
|
|
308
|
-
|
|
308
|
+
3458,
|
|
309
309
|
"Files with less than 10 results are expanded. Others are collapsed."
|
|
310
310
|
)),
|
|
311
311
|
'',
|
|
312
312
|
''
|
|
313
313
|
],
|
|
314
314
|
default: 'alwaysExpand',
|
|
315
|
-
description: ( localize(
|
|
315
|
+
description: ( localize(3459, "Controls whether the search results will be collapsed or expanded.")),
|
|
316
316
|
},
|
|
317
317
|
'search.useReplacePreview': {
|
|
318
318
|
type: 'boolean',
|
|
319
319
|
default: true,
|
|
320
320
|
description: ( localize(
|
|
321
|
-
|
|
321
|
+
3460,
|
|
322
322
|
"Controls whether to open Replace Preview when selecting or replacing a match."
|
|
323
323
|
)),
|
|
324
324
|
},
|
|
325
325
|
'search.showLineNumbers': {
|
|
326
326
|
type: 'boolean',
|
|
327
327
|
default: false,
|
|
328
|
-
description: ( localize(
|
|
328
|
+
description: ( localize(3461, "Controls whether to show line numbers for search results.")),
|
|
329
329
|
},
|
|
330
330
|
'search.usePCRE2': {
|
|
331
331
|
type: 'boolean',
|
|
332
332
|
default: false,
|
|
333
333
|
description: ( localize(
|
|
334
|
-
|
|
334
|
+
3462,
|
|
335
335
|
"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."
|
|
336
336
|
)),
|
|
337
337
|
deprecationMessage: ( localize(
|
|
338
|
-
|
|
338
|
+
3463,
|
|
339
339
|
"Deprecated. PCRE2 will be used automatically when using regex features that are only supported by PCRE2."
|
|
340
340
|
)),
|
|
341
341
|
},
|
|
@@ -344,27 +344,27 @@ configurationRegistry.registerConfiguration({
|
|
|
344
344
|
enum: ['auto', 'right'],
|
|
345
345
|
enumDescriptions: [
|
|
346
346
|
( localize(
|
|
347
|
-
|
|
347
|
+
3464,
|
|
348
348
|
"Position the actionbar to the right when the search view is narrow, and immediately after the content when the search view is wide."
|
|
349
349
|
)),
|
|
350
|
-
( localize(
|
|
350
|
+
( localize(3465, "Always position the actionbar to the right.")),
|
|
351
351
|
],
|
|
352
352
|
default: 'right',
|
|
353
353
|
description: ( localize(
|
|
354
|
-
|
|
354
|
+
3466,
|
|
355
355
|
"Controls the positioning of the actionbar on rows in the search view."
|
|
356
356
|
))
|
|
357
357
|
},
|
|
358
358
|
'search.searchOnType': {
|
|
359
359
|
type: 'boolean',
|
|
360
360
|
default: true,
|
|
361
|
-
description: ( localize(
|
|
361
|
+
description: ( localize(3467, "Search all files as you type."))
|
|
362
362
|
},
|
|
363
363
|
'search.seedWithNearestWord': {
|
|
364
364
|
type: 'boolean',
|
|
365
365
|
default: false,
|
|
366
366
|
description: ( localize(
|
|
367
|
-
|
|
367
|
+
3468,
|
|
368
368
|
"Enable seeding search from the word nearest the cursor when the active editor has no selection."
|
|
369
369
|
))
|
|
370
370
|
},
|
|
@@ -372,7 +372,7 @@ configurationRegistry.registerConfiguration({
|
|
|
372
372
|
type: 'boolean',
|
|
373
373
|
default: false,
|
|
374
374
|
markdownDescription: ( localize(
|
|
375
|
-
|
|
375
|
+
3469,
|
|
376
376
|
"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."
|
|
377
377
|
))
|
|
378
378
|
},
|
|
@@ -380,7 +380,7 @@ configurationRegistry.registerConfiguration({
|
|
|
380
380
|
type: 'number',
|
|
381
381
|
default: 300,
|
|
382
382
|
markdownDescription: ( localize(
|
|
383
|
-
|
|
383
|
+
3470,
|
|
384
384
|
"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.",
|
|
385
385
|
'`#search.searchOnType#`'
|
|
386
386
|
))
|
|
@@ -390,30 +390,30 @@ configurationRegistry.registerConfiguration({
|
|
|
390
390
|
enum: ['selectWord', 'goToLocation', 'openLocationToSide'],
|
|
391
391
|
default: 'goToLocation',
|
|
392
392
|
enumDescriptions: [
|
|
393
|
-
( localize(
|
|
394
|
-
( localize(
|
|
393
|
+
( localize(3471, "Double-clicking selects the word under the cursor.")),
|
|
394
|
+
( localize(3472, "Double-clicking opens the result in the active editor group.")),
|
|
395
395
|
( localize(
|
|
396
|
-
|
|
396
|
+
3473,
|
|
397
397
|
"Double-clicking opens the result in the editor group to the side, creating one if it does not yet exist."
|
|
398
398
|
)),
|
|
399
399
|
],
|
|
400
|
-
markdownDescription: ( localize(
|
|
400
|
+
markdownDescription: ( localize(3474, "Configure effect of double-clicking a result in a search editor."))
|
|
401
401
|
},
|
|
402
402
|
'search.searchEditor.singleClickBehaviour': {
|
|
403
403
|
type: 'string',
|
|
404
404
|
enum: ['default', 'peekDefinition',],
|
|
405
405
|
default: 'default',
|
|
406
406
|
enumDescriptions: [
|
|
407
|
-
( localize(
|
|
408
|
-
( localize(
|
|
407
|
+
( localize(3475, "Single-clicking does nothing.")),
|
|
408
|
+
( localize(3476, "Single-clicking opens a Peek Definition window.")),
|
|
409
409
|
],
|
|
410
|
-
markdownDescription: ( localize(
|
|
410
|
+
markdownDescription: ( localize(3477, "Configure effect of single-clicking a result in a search editor."))
|
|
411
411
|
},
|
|
412
412
|
'search.searchEditor.reusePriorSearchConfiguration': {
|
|
413
413
|
type: 'boolean',
|
|
414
414
|
default: false,
|
|
415
415
|
markdownDescription: ( localize(
|
|
416
|
-
|
|
416
|
+
3478,
|
|
417
417
|
"When enabled, new Search Editors will reuse the includes, excludes, and flags of the previously opened Search Editor."
|
|
418
418
|
))
|
|
419
419
|
},
|
|
@@ -421,7 +421,7 @@ configurationRegistry.registerConfiguration({
|
|
|
421
421
|
type: ['number', 'null'],
|
|
422
422
|
default: 1,
|
|
423
423
|
markdownDescription: ( localize(
|
|
424
|
-
|
|
424
|
+
3479,
|
|
425
425
|
"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."
|
|
426
426
|
))
|
|
427
427
|
},
|
|
@@ -429,7 +429,7 @@ configurationRegistry.registerConfiguration({
|
|
|
429
429
|
type: 'boolean',
|
|
430
430
|
default: false,
|
|
431
431
|
markdownDescription: ( localize(
|
|
432
|
-
|
|
432
|
+
3480,
|
|
433
433
|
"When a search is triggered, focus the Search Editor results instead of the Search Editor input."
|
|
434
434
|
))
|
|
435
435
|
},
|
|
@@ -439,31 +439,31 @@ configurationRegistry.registerConfiguration({
|
|
|
439
439
|
default: "default" ,
|
|
440
440
|
enumDescriptions: [
|
|
441
441
|
( localize(
|
|
442
|
-
|
|
442
|
+
3481,
|
|
443
443
|
"Results are sorted by folder and file names, in alphabetical order."
|
|
444
444
|
)),
|
|
445
445
|
( localize(
|
|
446
|
-
|
|
446
|
+
3482,
|
|
447
447
|
"Results are sorted by file names ignoring folder order, in alphabetical order."
|
|
448
448
|
)),
|
|
449
|
-
( localize(
|
|
449
|
+
( localize(3483, "Results are sorted by file extensions, in alphabetical order.")),
|
|
450
450
|
( localize(
|
|
451
|
-
|
|
451
|
+
3484,
|
|
452
452
|
"Results are sorted by file last modified date, in descending order."
|
|
453
453
|
)),
|
|
454
|
-
( localize(
|
|
455
|
-
( localize(
|
|
454
|
+
( localize(3485, "Results are sorted by count per file, in descending order.")),
|
|
455
|
+
( localize(3486, "Results are sorted by count per file, in ascending order."))
|
|
456
456
|
],
|
|
457
|
-
description: ( localize(
|
|
457
|
+
description: ( localize(3487, "Controls sorting order of search results."))
|
|
458
458
|
},
|
|
459
459
|
'search.decorations.colors': {
|
|
460
460
|
type: 'boolean',
|
|
461
|
-
description: ( localize(
|
|
461
|
+
description: ( localize(3488, "Controls whether search file decorations should use colors.")),
|
|
462
462
|
default: true
|
|
463
463
|
},
|
|
464
464
|
'search.decorations.badges': {
|
|
465
465
|
type: 'boolean',
|
|
466
|
-
description: ( localize(
|
|
466
|
+
description: ( localize(3489, "Controls whether search file decorations should use badges.")),
|
|
467
467
|
default: true
|
|
468
468
|
},
|
|
469
469
|
'search.defaultViewMode': {
|
|
@@ -471,15 +471,15 @@ configurationRegistry.registerConfiguration({
|
|
|
471
471
|
enum: ["tree" , "list" ],
|
|
472
472
|
default: "list" ,
|
|
473
473
|
enumDescriptions: [
|
|
474
|
-
( localize(
|
|
475
|
-
( localize(
|
|
474
|
+
( localize(3490, "Shows search results as a tree.")),
|
|
475
|
+
( localize(3491, "Shows search results as a list."))
|
|
476
476
|
],
|
|
477
|
-
description: ( localize(
|
|
477
|
+
description: ( localize(3492, "Controls the default search result view mode."))
|
|
478
478
|
},
|
|
479
479
|
'search.quickAccess.preserveInput': {
|
|
480
480
|
type: 'boolean',
|
|
481
481
|
description: ( localize(
|
|
482
|
-
|
|
482
|
+
3493,
|
|
483
483
|
"Controls whether the last typed input to Quick Search should be restored when opening it the next time."
|
|
484
484
|
)),
|
|
485
485
|
default: false
|
|
@@ -487,7 +487,7 @@ configurationRegistry.registerConfiguration({
|
|
|
487
487
|
'search.experimental.closedNotebookRichContentResults': {
|
|
488
488
|
type: 'boolean',
|
|
489
489
|
description: ( localize(
|
|
490
|
-
|
|
490
|
+
3494,
|
|
491
491
|
"Show notebook editor rich content results for closed notebooks. Please refresh your search results after changing this setting."
|
|
492
492
|
)),
|
|
493
493
|
default: false
|
|
@@ -13,7 +13,7 @@ registerAction2(class CopyMatchCommandAction extends Action2 {
|
|
|
13
13
|
constructor() {
|
|
14
14
|
super({
|
|
15
15
|
id: "search.action.copyMatch" ,
|
|
16
|
-
title: ( localize2(
|
|
16
|
+
title: ( localize2(8603, "Copy")),
|
|
17
17
|
category,
|
|
18
18
|
keybinding: {
|
|
19
19
|
weight: 200 ,
|
|
@@ -36,7 +36,7 @@ registerAction2(class CopyPathCommandAction extends Action2 {
|
|
|
36
36
|
constructor() {
|
|
37
37
|
super({
|
|
38
38
|
id: "search.action.copyPath" ,
|
|
39
|
-
title: ( localize2(
|
|
39
|
+
title: ( localize2(8604, "Copy Path")),
|
|
40
40
|
category,
|
|
41
41
|
keybinding: {
|
|
42
42
|
weight: 200 ,
|
|
@@ -62,7 +62,7 @@ registerAction2(class CopyAllCommandAction extends Action2 {
|
|
|
62
62
|
constructor() {
|
|
63
63
|
super({
|
|
64
64
|
id: "search.action.copyAll" ,
|
|
65
|
-
title: ( localize2(
|
|
65
|
+
title: ( localize2(8605, "Copy All")),
|
|
66
66
|
category,
|
|
67
67
|
menu: [{
|
|
68
68
|
id: MenuId.SearchContext,
|