@codingame/monaco-vscode-search-service-override 9.0.0 → 9.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/vscode/src/vs/workbench/contrib/search/browser/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/searchActionsTopBar.js +8 -8
- package/vscode/src/vs/workbench/contrib/search/browser/searchFindInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/search/browser/searchIcons.js +20 -20
- package/vscode/src/vs/workbench/contrib/search/browser/searchMessage.js +2 -2
- package/vscode/src/vs/workbench/contrib/search/browser/searchResultsView.js +12 -12
- 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": "9.0.
|
|
3
|
+
"version": "9.0.3",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -29,6 +29,6 @@
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"vscode": "npm:@codingame/monaco-vscode-api@9.0.
|
|
32
|
+
"vscode": "npm:@codingame/monaco-vscode-api@9.0.3"
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -28,7 +28,7 @@ let PatternInputWidget = class PatternInputWidget extends Widget {
|
|
|
28
28
|
this.onCancel = this._onCancel.event;
|
|
29
29
|
options = {
|
|
30
30
|
...{
|
|
31
|
-
ariaLabel: ( localize(
|
|
31
|
+
ariaLabel: ( localize(10827, "input"))
|
|
32
32
|
},
|
|
33
33
|
...options,
|
|
34
34
|
};
|
|
@@ -155,7 +155,7 @@ let IncludePatternInputWidget = class IncludePatternInputWidget extends PatternI
|
|
|
155
155
|
renderSubcontrols(controlsDiv) {
|
|
156
156
|
this.useSearchInEditorsBox = this._register(( (new Toggle({
|
|
157
157
|
icon: Codicon.book,
|
|
158
|
-
title: ( localize(
|
|
158
|
+
title: ( localize(10828, "Search only in Open Editors")),
|
|
159
159
|
isChecked: false,
|
|
160
160
|
hoverDelegate: getDefaultHoverDelegate('element'),
|
|
161
161
|
...defaultToggleStyles
|
|
@@ -199,7 +199,7 @@ let ExcludePatternInputWidget = class ExcludePatternInputWidget extends PatternI
|
|
|
199
199
|
this.useExcludesAndIgnoreFilesBox = this._register(( (new Toggle({
|
|
200
200
|
icon: Codicon.exclude,
|
|
201
201
|
actionClassName: 'useExcludesAndIgnoreFiles',
|
|
202
|
-
title: ( localize(
|
|
202
|
+
title: ( localize(10829, "Use Exclude Settings and Ignore Files")),
|
|
203
203
|
isChecked: true,
|
|
204
204
|
hoverDelegate: getDefaultHoverDelegate('element'),
|
|
205
205
|
...defaultToggleStyles
|
package/vscode/src/vs/workbench/contrib/search/browser/quickTextSearch/textSearchQuickAccess.js
CHANGED
|
@@ -83,7 +83,7 @@ let TextSearchQuickAccess = class TextSearchQuickAccess extends PickerQuickAcces
|
|
|
83
83
|
picker.buttons = [{
|
|
84
84
|
location: QuickInputButtonLocation.Inline,
|
|
85
85
|
iconClass: ThemeIcon.asClassName(Codicon.goToSearch),
|
|
86
|
-
tooltip: ( localize(
|
|
86
|
+
tooltip: ( localize(8468, "See in Search Panel"))
|
|
87
87
|
}];
|
|
88
88
|
this.editorViewState.reset();
|
|
89
89
|
disposables.add(picker.onDidTriggerButton(() => {
|
|
@@ -197,7 +197,7 @@ let TextSearchQuickAccess = class TextSearchQuickAccess extends PickerQuickAcces
|
|
|
197
197
|
type: 'separator',
|
|
198
198
|
});
|
|
199
199
|
picks.push({
|
|
200
|
-
label: ( localize(
|
|
200
|
+
label: ( localize(8469, "See More Files")),
|
|
201
201
|
iconClass: ThemeIcon.asClassName(searchDetailsIcon),
|
|
202
202
|
accept: async () => {
|
|
203
203
|
this.moveToSearchViewlet(matches[limit]);
|
|
@@ -214,7 +214,7 @@ let TextSearchQuickAccess = class TextSearchQuickAccess extends PickerQuickAcces
|
|
|
214
214
|
description,
|
|
215
215
|
buttons: [{
|
|
216
216
|
iconClass: ThemeIcon.asClassName(searchOpenInFileIcon),
|
|
217
|
-
tooltip: ( localize(
|
|
217
|
+
tooltip: ( localize(8470, "Open File"))
|
|
218
218
|
}],
|
|
219
219
|
trigger: async () => {
|
|
220
220
|
await this.handleAccept(fileMatch, {});
|
|
@@ -226,7 +226,7 @@ let TextSearchQuickAccess = class TextSearchQuickAccess extends PickerQuickAcces
|
|
|
226
226
|
const element = results[matchIndex];
|
|
227
227
|
if (matchIndex === MAX_RESULTS_PER_FILE) {
|
|
228
228
|
picks.push({
|
|
229
|
-
label: ( localize(
|
|
229
|
+
label: ( localize(8471, "More")),
|
|
230
230
|
iconClass: ThemeIcon.asClassName(searchDetailsIcon),
|
|
231
231
|
accept: async () => {
|
|
232
232
|
this.moveToSearchViewlet(element);
|
|
@@ -247,7 +247,7 @@ let TextSearchQuickAccess = class TextSearchQuickAccess extends PickerQuickAcces
|
|
|
247
247
|
},
|
|
248
248
|
buttons: [{
|
|
249
249
|
iconClass: ThemeIcon.asClassName(searchActivityBarIcon),
|
|
250
|
-
tooltip: ( localize(
|
|
250
|
+
tooltip: ( localize(8472, "See in Search Panel")),
|
|
251
251
|
}],
|
|
252
252
|
ariaLabel: `Match at location ${element.range().startLineNumber}:${element.range().startColumn} - ${previewText}`,
|
|
253
253
|
accept: async (keyMods, event) => {
|
|
@@ -285,7 +285,7 @@ let TextSearchQuickAccess = class TextSearchQuickAccess extends PickerQuickAcces
|
|
|
285
285
|
if (contentPattern === '') {
|
|
286
286
|
this.searchModel.searchResult.clear();
|
|
287
287
|
return [{
|
|
288
|
-
label: ( localize(
|
|
288
|
+
label: ( localize(8473, "Enter a term to search for across your files."))
|
|
289
289
|
}];
|
|
290
290
|
}
|
|
291
291
|
const conditionalTokenCts = disposables.add(( (new CancellationTokenSource())));
|
|
@@ -310,7 +310,7 @@ let TextSearchQuickAccess = class TextSearchQuickAccess extends PickerQuickAcces
|
|
|
310
310
|
picks: syncResult,
|
|
311
311
|
additionalPicks: allMatches.asyncResults
|
|
312
312
|
.then(asyncResults => (asyncResults.length + syncResult.length === 0) ? [{
|
|
313
|
-
label: ( localize(
|
|
313
|
+
label: ( localize(8474, "No matching results"))
|
|
314
314
|
}] : this._getPicksFromMatches(asyncResults, MAX_FILES_SHOWN - matches.length))
|
|
315
315
|
.then(picks => {
|
|
316
316
|
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(3364, "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(3365, "{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,
|
|
@@ -42,7 +42,7 @@ registerContributions$1();
|
|
|
42
42
|
const SEARCH_MODE_CONFIG = 'search.mode';
|
|
43
43
|
const viewContainer = ( (Registry.as(Extensions.ViewContainersRegistry))).registerViewContainer({
|
|
44
44
|
id: VIEWLET_ID,
|
|
45
|
-
title: ( localize2(
|
|
45
|
+
title: ( localize2(3368, "Search")),
|
|
46
46
|
ctorDescriptor: ( (new SyncDescriptor(
|
|
47
47
|
ViewPaneContainer,
|
|
48
48
|
[VIEWLET_ID, { mergeViewWithContainerWhenSingleView: true }]
|
|
@@ -54,13 +54,13 @@ const viewContainer = ( (Registry.as(Extensions.ViewContainersRegistry))).regist
|
|
|
54
54
|
const viewDescriptor = {
|
|
55
55
|
id: VIEW_ID,
|
|
56
56
|
containerIcon: searchViewIcon,
|
|
57
|
-
name: ( localize2(
|
|
57
|
+
name: ( localize2(3368, "Search")),
|
|
58
58
|
ctorDescriptor: ( (new SyncDescriptor(SearchView))),
|
|
59
59
|
canToggleVisibility: false,
|
|
60
60
|
canMoveView: true,
|
|
61
61
|
openCommandActionDescriptor: {
|
|
62
62
|
id: viewContainer.id,
|
|
63
|
-
mnemonicTitle: ( localize(
|
|
63
|
+
mnemonicTitle: ( localize(3369, "&&Search")),
|
|
64
64
|
keybindings: {
|
|
65
65
|
primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyF,
|
|
66
66
|
when: ( (ContextKeyExpr.regex('neverMatch', /doesNotMatch/)))
|
|
@@ -74,14 +74,14 @@ quickAccessRegistry.registerQuickAccessProvider({
|
|
|
74
74
|
ctor: AnythingQuickAccessProvider,
|
|
75
75
|
prefix: AnythingQuickAccessProvider.PREFIX,
|
|
76
76
|
placeholder: ( localize(
|
|
77
|
-
|
|
77
|
+
3370,
|
|
78
78
|
"Search files by name (append {0} to go to line or {1} to go to symbol)",
|
|
79
79
|
AbstractGotoLineQuickAccessProvider.PREFIX,
|
|
80
80
|
GotoSymbolQuickAccessProvider.PREFIX
|
|
81
81
|
)),
|
|
82
82
|
contextKey: defaultQuickAccessContextKeyValue,
|
|
83
83
|
helpEntries: [{
|
|
84
|
-
description: ( localize(
|
|
84
|
+
description: ( localize(3371, "Go to File")),
|
|
85
85
|
commandId: 'workbench.action.quickOpen',
|
|
86
86
|
commandCenterOrder: 10
|
|
87
87
|
}]
|
|
@@ -89,18 +89,18 @@ quickAccessRegistry.registerQuickAccessProvider({
|
|
|
89
89
|
quickAccessRegistry.registerQuickAccessProvider({
|
|
90
90
|
ctor: SymbolsQuickAccessProvider,
|
|
91
91
|
prefix: SymbolsQuickAccessProvider.PREFIX,
|
|
92
|
-
placeholder: ( localize(
|
|
92
|
+
placeholder: ( localize(3372, "Type the name of a symbol to open.")),
|
|
93
93
|
contextKey: 'inWorkspaceSymbolsPicker',
|
|
94
|
-
helpEntries: [{ description: ( localize(
|
|
94
|
+
helpEntries: [{ description: ( localize(3373, "Go to Symbol in Workspace")), commandId: SearchCommandIds.ShowAllSymbolsActionId }]
|
|
95
95
|
});
|
|
96
96
|
quickAccessRegistry.registerQuickAccessProvider({
|
|
97
97
|
ctor: TextSearchQuickAccess,
|
|
98
98
|
prefix: TEXT_SEARCH_QUICK_ACCESS_PREFIX,
|
|
99
99
|
contextKey: 'inTextSearchPicker',
|
|
100
|
-
placeholder: ( localize(
|
|
100
|
+
placeholder: ( localize(3374, "Search for text in your workspace files.")),
|
|
101
101
|
helpEntries: [
|
|
102
102
|
{
|
|
103
|
-
description: ( localize(
|
|
103
|
+
description: ( localize(3375, "Search for Text")),
|
|
104
104
|
commandId: SearchCommandIds.QuickTextSearchActionId,
|
|
105
105
|
commandCenterOrder: 25,
|
|
106
106
|
}
|
|
@@ -110,13 +110,13 @@ const configurationRegistry = ( (Registry.as(Extensions$2.Configuration)));
|
|
|
110
110
|
configurationRegistry.registerConfiguration({
|
|
111
111
|
id: 'search',
|
|
112
112
|
order: 13,
|
|
113
|
-
title: ( localize(
|
|
113
|
+
title: ( localize(3376, "Search")),
|
|
114
114
|
type: 'object',
|
|
115
115
|
properties: {
|
|
116
116
|
[SEARCH_EXCLUDE_CONFIG]: {
|
|
117
117
|
type: 'object',
|
|
118
118
|
markdownDescription: ( localize(
|
|
119
|
-
|
|
119
|
+
3377,
|
|
120
120
|
"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."
|
|
121
121
|
)),
|
|
122
122
|
default: { '**/node_modules': true, '**/bower_components': true, '**/*.code-search': true },
|
|
@@ -125,7 +125,7 @@ configurationRegistry.registerConfiguration({
|
|
|
125
125
|
{
|
|
126
126
|
type: 'boolean',
|
|
127
127
|
description: ( localize(
|
|
128
|
-
|
|
128
|
+
3378,
|
|
129
129
|
"The glob pattern to match file paths against. Set to true or false to enable or disable the pattern."
|
|
130
130
|
)),
|
|
131
131
|
},
|
|
@@ -137,7 +137,7 @@ configurationRegistry.registerConfiguration({
|
|
|
137
137
|
pattern: '\\w*\\$\\(basename\\)\\w*',
|
|
138
138
|
default: '$(basename).ext',
|
|
139
139
|
markdownDescription: ( localize(
|
|
140
|
-
|
|
140
|
+
3379,
|
|
141
141
|
'Additional check on the siblings of a matching file. Use \\$(basename) as variable for the matching file name.'
|
|
142
142
|
))
|
|
143
143
|
}
|
|
@@ -152,26 +152,26 @@ configurationRegistry.registerConfiguration({
|
|
|
152
152
|
enum: ['view', 'reuseEditor', 'newEditor'],
|
|
153
153
|
default: 'view',
|
|
154
154
|
markdownDescription: ( localize(
|
|
155
|
-
|
|
155
|
+
3380,
|
|
156
156
|
"Controls where new `Search: Find in Files` and `Find in Folder` operations occur: either in the search view, or in a search editor."
|
|
157
157
|
)),
|
|
158
158
|
enumDescriptions: [
|
|
159
|
-
( localize(
|
|
159
|
+
( localize(3381, "Search in the search view, either in the panel or side bars.")),
|
|
160
160
|
( localize(
|
|
161
|
-
|
|
161
|
+
3382,
|
|
162
162
|
"Search in an existing search editor if present, otherwise in a new search editor."
|
|
163
163
|
)),
|
|
164
|
-
( localize(
|
|
164
|
+
( localize(3383, "Search in a new search editor.")),
|
|
165
165
|
]
|
|
166
166
|
},
|
|
167
167
|
'search.useRipgrep': {
|
|
168
168
|
type: 'boolean',
|
|
169
169
|
description: ( localize(
|
|
170
|
-
|
|
170
|
+
3384,
|
|
171
171
|
"This setting is deprecated and now falls back on \"search.usePCRE2\"."
|
|
172
172
|
)),
|
|
173
173
|
deprecationMessage: ( localize(
|
|
174
|
-
|
|
174
|
+
3385,
|
|
175
175
|
"Deprecated. Consider \"search.usePCRE2\" for advanced regex feature support."
|
|
176
176
|
)),
|
|
177
177
|
default: true
|
|
@@ -179,11 +179,11 @@ configurationRegistry.registerConfiguration({
|
|
|
179
179
|
'search.maintainFileSearchCache': {
|
|
180
180
|
type: 'boolean',
|
|
181
181
|
deprecationMessage: ( localize(
|
|
182
|
-
|
|
182
|
+
3386,
|
|
183
183
|
"The search cache is kept in the extension host which never shuts down, so this setting is no longer needed."
|
|
184
184
|
)),
|
|
185
185
|
description: ( localize(
|
|
186
|
-
|
|
186
|
+
3387,
|
|
187
187
|
"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."
|
|
188
188
|
)),
|
|
189
189
|
default: false
|
|
@@ -191,7 +191,7 @@ configurationRegistry.registerConfiguration({
|
|
|
191
191
|
'search.useIgnoreFiles': {
|
|
192
192
|
type: 'boolean',
|
|
193
193
|
markdownDescription: ( localize(
|
|
194
|
-
|
|
194
|
+
3388,
|
|
195
195
|
"Controls whether to use `.gitignore` and `.ignore` files when searching for files."
|
|
196
196
|
)),
|
|
197
197
|
default: true,
|
|
@@ -200,7 +200,7 @@ configurationRegistry.registerConfiguration({
|
|
|
200
200
|
'search.useGlobalIgnoreFiles': {
|
|
201
201
|
type: 'boolean',
|
|
202
202
|
markdownDescription: ( localize(
|
|
203
|
-
|
|
203
|
+
3389,
|
|
204
204
|
"Controls whether to use your global gitignore file (for example, from `$HOME/.config/git/ignore`) when searching for files. Requires {0} to be enabled.",
|
|
205
205
|
'`#search.useIgnoreFiles#`'
|
|
206
206
|
)),
|
|
@@ -210,7 +210,7 @@ configurationRegistry.registerConfiguration({
|
|
|
210
210
|
'search.useParentIgnoreFiles': {
|
|
211
211
|
type: 'boolean',
|
|
212
212
|
markdownDescription: ( localize(
|
|
213
|
-
|
|
213
|
+
3390,
|
|
214
214
|
"Controls whether to use `.gitignore` and `.ignore` files in parent directories when searching for files. Requires {0} to be enabled.",
|
|
215
215
|
'`#search.useIgnoreFiles#`'
|
|
216
216
|
)),
|
|
@@ -220,7 +220,7 @@ configurationRegistry.registerConfiguration({
|
|
|
220
220
|
'search.quickOpen.includeSymbols': {
|
|
221
221
|
type: 'boolean',
|
|
222
222
|
description: ( localize(
|
|
223
|
-
|
|
223
|
+
3391,
|
|
224
224
|
"Whether to include results from a global symbol search in the file results for Quick Open."
|
|
225
225
|
)),
|
|
226
226
|
default: false
|
|
@@ -228,7 +228,7 @@ configurationRegistry.registerConfiguration({
|
|
|
228
228
|
'search.ripgrep.maxThreads': {
|
|
229
229
|
type: 'number',
|
|
230
230
|
description: ( localize(
|
|
231
|
-
|
|
231
|
+
3392,
|
|
232
232
|
"Number of threads to use for searching. When set to 0, the engine automatically determines this value."
|
|
233
233
|
)),
|
|
234
234
|
default: 0
|
|
@@ -236,7 +236,7 @@ configurationRegistry.registerConfiguration({
|
|
|
236
236
|
'search.quickOpen.includeHistory': {
|
|
237
237
|
type: 'boolean',
|
|
238
238
|
description: ( localize(
|
|
239
|
-
|
|
239
|
+
3393,
|
|
240
240
|
"Whether to include results from recently opened files in the file results for Quick Open."
|
|
241
241
|
)),
|
|
242
242
|
default: true
|
|
@@ -247,28 +247,28 @@ configurationRegistry.registerConfiguration({
|
|
|
247
247
|
default: 'default',
|
|
248
248
|
enumDescriptions: [
|
|
249
249
|
( localize(
|
|
250
|
-
|
|
250
|
+
3394,
|
|
251
251
|
'History entries are sorted by relevance based on the filter value used. More relevant entries appear first.'
|
|
252
252
|
)),
|
|
253
253
|
( localize(
|
|
254
|
-
|
|
254
|
+
3395,
|
|
255
255
|
'History entries are sorted by recency. More recently opened entries appear first.'
|
|
256
256
|
))
|
|
257
257
|
],
|
|
258
258
|
description: ( localize(
|
|
259
|
-
|
|
259
|
+
3396,
|
|
260
260
|
"Controls sorting order of editor history in quick open when filtering."
|
|
261
261
|
))
|
|
262
262
|
},
|
|
263
263
|
'search.followSymlinks': {
|
|
264
264
|
type: 'boolean',
|
|
265
|
-
description: ( localize(
|
|
265
|
+
description: ( localize(3397, "Controls whether to follow symlinks while searching.")),
|
|
266
266
|
default: true
|
|
267
267
|
},
|
|
268
268
|
'search.smartCase': {
|
|
269
269
|
type: 'boolean',
|
|
270
270
|
description: ( localize(
|
|
271
|
-
|
|
271
|
+
3398,
|
|
272
272
|
"Search case-insensitively if the pattern is all lowercase, otherwise, search case-sensitively."
|
|
273
273
|
)),
|
|
274
274
|
default: false
|
|
@@ -277,7 +277,7 @@ configurationRegistry.registerConfiguration({
|
|
|
277
277
|
type: 'boolean',
|
|
278
278
|
default: false,
|
|
279
279
|
description: ( localize(
|
|
280
|
-
|
|
280
|
+
3399,
|
|
281
281
|
"Controls whether the search view should read or modify the shared find clipboard on macOS."
|
|
282
282
|
)),
|
|
283
283
|
included: isMacintosh
|
|
@@ -287,11 +287,11 @@ configurationRegistry.registerConfiguration({
|
|
|
287
287
|
enum: ['sidebar', 'panel'],
|
|
288
288
|
default: 'sidebar',
|
|
289
289
|
description: ( localize(
|
|
290
|
-
|
|
290
|
+
3400,
|
|
291
291
|
"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."
|
|
292
292
|
)),
|
|
293
293
|
deprecationMessage: ( localize(
|
|
294
|
-
|
|
294
|
+
3401,
|
|
295
295
|
"This setting is deprecated. You can drag the search icon to a new location instead."
|
|
296
296
|
))
|
|
297
297
|
},
|
|
@@ -299,7 +299,7 @@ configurationRegistry.registerConfiguration({
|
|
|
299
299
|
type: ['number', 'null'],
|
|
300
300
|
default: DEFAULT_MAX_SEARCH_RESULTS,
|
|
301
301
|
markdownDescription: ( localize(
|
|
302
|
-
|
|
302
|
+
3402,
|
|
303
303
|
"Controls the maximum number of search results, this can be set to `null` (empty) to return unlimited results."
|
|
304
304
|
))
|
|
305
305
|
},
|
|
@@ -308,37 +308,37 @@ configurationRegistry.registerConfiguration({
|
|
|
308
308
|
enum: ['auto', 'alwaysCollapse', 'alwaysExpand'],
|
|
309
309
|
enumDescriptions: [
|
|
310
310
|
( localize(
|
|
311
|
-
|
|
311
|
+
3403,
|
|
312
312
|
"Files with less than 10 results are expanded. Others are collapsed."
|
|
313
313
|
)),
|
|
314
314
|
'',
|
|
315
315
|
''
|
|
316
316
|
],
|
|
317
317
|
default: 'alwaysExpand',
|
|
318
|
-
description: ( localize(
|
|
318
|
+
description: ( localize(3404, "Controls whether the search results will be collapsed or expanded.")),
|
|
319
319
|
},
|
|
320
320
|
'search.useReplacePreview': {
|
|
321
321
|
type: 'boolean',
|
|
322
322
|
default: true,
|
|
323
323
|
description: ( localize(
|
|
324
|
-
|
|
324
|
+
3405,
|
|
325
325
|
"Controls whether to open Replace Preview when selecting or replacing a match."
|
|
326
326
|
)),
|
|
327
327
|
},
|
|
328
328
|
'search.showLineNumbers': {
|
|
329
329
|
type: 'boolean',
|
|
330
330
|
default: false,
|
|
331
|
-
description: ( localize(
|
|
331
|
+
description: ( localize(3406, "Controls whether to show line numbers for search results.")),
|
|
332
332
|
},
|
|
333
333
|
'search.usePCRE2': {
|
|
334
334
|
type: 'boolean',
|
|
335
335
|
default: false,
|
|
336
336
|
description: ( localize(
|
|
337
|
-
|
|
337
|
+
3407,
|
|
338
338
|
"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."
|
|
339
339
|
)),
|
|
340
340
|
deprecationMessage: ( localize(
|
|
341
|
-
|
|
341
|
+
3408,
|
|
342
342
|
"Deprecated. PCRE2 will be used automatically when using regex features that are only supported by PCRE2."
|
|
343
343
|
)),
|
|
344
344
|
},
|
|
@@ -347,27 +347,27 @@ configurationRegistry.registerConfiguration({
|
|
|
347
347
|
enum: ['auto', 'right'],
|
|
348
348
|
enumDescriptions: [
|
|
349
349
|
( localize(
|
|
350
|
-
|
|
350
|
+
3409,
|
|
351
351
|
"Position the actionbar to the right when the search view is narrow, and immediately after the content when the search view is wide."
|
|
352
352
|
)),
|
|
353
|
-
( localize(
|
|
353
|
+
( localize(3410, "Always position the actionbar to the right.")),
|
|
354
354
|
],
|
|
355
355
|
default: 'right',
|
|
356
356
|
description: ( localize(
|
|
357
|
-
|
|
357
|
+
3411,
|
|
358
358
|
"Controls the positioning of the actionbar on rows in the search view."
|
|
359
359
|
))
|
|
360
360
|
},
|
|
361
361
|
'search.searchOnType': {
|
|
362
362
|
type: 'boolean',
|
|
363
363
|
default: true,
|
|
364
|
-
description: ( localize(
|
|
364
|
+
description: ( localize(3412, "Search all files as you type."))
|
|
365
365
|
},
|
|
366
366
|
'search.seedWithNearestWord': {
|
|
367
367
|
type: 'boolean',
|
|
368
368
|
default: false,
|
|
369
369
|
description: ( localize(
|
|
370
|
-
|
|
370
|
+
3413,
|
|
371
371
|
"Enable seeding search from the word nearest the cursor when the active editor has no selection."
|
|
372
372
|
))
|
|
373
373
|
},
|
|
@@ -375,7 +375,7 @@ configurationRegistry.registerConfiguration({
|
|
|
375
375
|
type: 'boolean',
|
|
376
376
|
default: false,
|
|
377
377
|
markdownDescription: ( localize(
|
|
378
|
-
|
|
378
|
+
3414,
|
|
379
379
|
"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."
|
|
380
380
|
))
|
|
381
381
|
},
|
|
@@ -383,7 +383,7 @@ configurationRegistry.registerConfiguration({
|
|
|
383
383
|
type: 'number',
|
|
384
384
|
default: 300,
|
|
385
385
|
markdownDescription: ( localize(
|
|
386
|
-
|
|
386
|
+
3415,
|
|
387
387
|
"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.",
|
|
388
388
|
'`#search.searchOnType#`'
|
|
389
389
|
))
|
|
@@ -393,30 +393,30 @@ configurationRegistry.registerConfiguration({
|
|
|
393
393
|
enum: ['selectWord', 'goToLocation', 'openLocationToSide'],
|
|
394
394
|
default: 'goToLocation',
|
|
395
395
|
enumDescriptions: [
|
|
396
|
-
( localize(
|
|
397
|
-
( localize(
|
|
396
|
+
( localize(3416, "Double-clicking selects the word under the cursor.")),
|
|
397
|
+
( localize(3417, "Double-clicking opens the result in the active editor group.")),
|
|
398
398
|
( localize(
|
|
399
|
-
|
|
399
|
+
3418,
|
|
400
400
|
"Double-clicking opens the result in the editor group to the side, creating one if it does not yet exist."
|
|
401
401
|
)),
|
|
402
402
|
],
|
|
403
|
-
markdownDescription: ( localize(
|
|
403
|
+
markdownDescription: ( localize(3419, "Configure effect of double-clicking a result in a search editor."))
|
|
404
404
|
},
|
|
405
405
|
'search.searchEditor.singleClickBehaviour': {
|
|
406
406
|
type: 'string',
|
|
407
407
|
enum: ['default', 'peekDefinition',],
|
|
408
408
|
default: 'default',
|
|
409
409
|
enumDescriptions: [
|
|
410
|
-
( localize(
|
|
411
|
-
( localize(
|
|
410
|
+
( localize(3420, "Single-clicking does nothing.")),
|
|
411
|
+
( localize(3421, "Single-clicking opens a Peek Definition window.")),
|
|
412
412
|
],
|
|
413
|
-
markdownDescription: ( localize(
|
|
413
|
+
markdownDescription: ( localize(3422, "Configure effect of single-clicking a result in a search editor."))
|
|
414
414
|
},
|
|
415
415
|
'search.searchEditor.reusePriorSearchConfiguration': {
|
|
416
416
|
type: 'boolean',
|
|
417
417
|
default: false,
|
|
418
418
|
markdownDescription: ( localize(
|
|
419
|
-
|
|
419
|
+
3423,
|
|
420
420
|
"When enabled, new Search Editors will reuse the includes, excludes, and flags of the previously opened Search Editor."
|
|
421
421
|
))
|
|
422
422
|
},
|
|
@@ -424,7 +424,7 @@ configurationRegistry.registerConfiguration({
|
|
|
424
424
|
type: ['number', 'null'],
|
|
425
425
|
default: 1,
|
|
426
426
|
markdownDescription: ( localize(
|
|
427
|
-
|
|
427
|
+
3424,
|
|
428
428
|
"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."
|
|
429
429
|
))
|
|
430
430
|
},
|
|
@@ -432,7 +432,7 @@ configurationRegistry.registerConfiguration({
|
|
|
432
432
|
type: 'boolean',
|
|
433
433
|
default: false,
|
|
434
434
|
markdownDescription: ( localize(
|
|
435
|
-
|
|
435
|
+
3425,
|
|
436
436
|
"When a search is triggered, focus the Search Editor results instead of the Search Editor input."
|
|
437
437
|
))
|
|
438
438
|
},
|
|
@@ -442,31 +442,31 @@ configurationRegistry.registerConfiguration({
|
|
|
442
442
|
default: SearchSortOrder.Default,
|
|
443
443
|
enumDescriptions: [
|
|
444
444
|
( localize(
|
|
445
|
-
|
|
445
|
+
3426,
|
|
446
446
|
"Results are sorted by folder and file names, in alphabetical order."
|
|
447
447
|
)),
|
|
448
448
|
( localize(
|
|
449
|
-
|
|
449
|
+
3427,
|
|
450
450
|
"Results are sorted by file names ignoring folder order, in alphabetical order."
|
|
451
451
|
)),
|
|
452
|
-
( localize(
|
|
452
|
+
( localize(3428, "Results are sorted by file extensions, in alphabetical order.")),
|
|
453
453
|
( localize(
|
|
454
|
-
|
|
454
|
+
3429,
|
|
455
455
|
"Results are sorted by file last modified date, in descending order."
|
|
456
456
|
)),
|
|
457
|
-
( localize(
|
|
458
|
-
( localize(
|
|
457
|
+
( localize(3430, "Results are sorted by count per file, in descending order.")),
|
|
458
|
+
( localize(3431, "Results are sorted by count per file, in ascending order."))
|
|
459
459
|
],
|
|
460
|
-
description: ( localize(
|
|
460
|
+
description: ( localize(3432, "Controls sorting order of search results."))
|
|
461
461
|
},
|
|
462
462
|
'search.decorations.colors': {
|
|
463
463
|
type: 'boolean',
|
|
464
|
-
description: ( localize(
|
|
464
|
+
description: ( localize(3433, "Controls whether search file decorations should use colors.")),
|
|
465
465
|
default: true
|
|
466
466
|
},
|
|
467
467
|
'search.decorations.badges': {
|
|
468
468
|
type: 'boolean',
|
|
469
|
-
description: ( localize(
|
|
469
|
+
description: ( localize(3434, "Controls whether search file decorations should use badges.")),
|
|
470
470
|
default: true
|
|
471
471
|
},
|
|
472
472
|
'search.defaultViewMode': {
|
|
@@ -474,15 +474,15 @@ configurationRegistry.registerConfiguration({
|
|
|
474
474
|
enum: [ViewMode.Tree, ViewMode.List],
|
|
475
475
|
default: ViewMode.List,
|
|
476
476
|
enumDescriptions: [
|
|
477
|
-
( localize(
|
|
478
|
-
( localize(
|
|
477
|
+
( localize(3435, "Shows search results as a tree.")),
|
|
478
|
+
( localize(3436, "Shows search results as a list."))
|
|
479
479
|
],
|
|
480
|
-
description: ( localize(
|
|
480
|
+
description: ( localize(3437, "Controls the default search result view mode."))
|
|
481
481
|
},
|
|
482
482
|
'search.quickAccess.preserveInput': {
|
|
483
483
|
type: 'boolean',
|
|
484
484
|
description: ( localize(
|
|
485
|
-
|
|
485
|
+
3438,
|
|
486
486
|
"Controls whether the last typed input to Quick Search should be restored when opening it the next time."
|
|
487
487
|
)),
|
|
488
488
|
default: false
|
|
@@ -490,7 +490,7 @@ configurationRegistry.registerConfiguration({
|
|
|
490
490
|
'search.experimental.closedNotebookRichContentResults': {
|
|
491
491
|
type: 'boolean',
|
|
492
492
|
description: ( localize(
|
|
493
|
-
|
|
493
|
+
3439,
|
|
494
494
|
"Show notebook editor rich content results for closed notebooks. Please refresh your search results after changing this setting."
|
|
495
495
|
)),
|
|
496
496
|
default: false
|
|
@@ -14,7 +14,7 @@ registerAction2(class CopyMatchCommandAction extends Action2 {
|
|
|
14
14
|
constructor() {
|
|
15
15
|
super({
|
|
16
16
|
id: SearchCommandIds.CopyMatchCommandId,
|
|
17
|
-
title: ( localize2(
|
|
17
|
+
title: ( localize2(8424, "Copy")),
|
|
18
18
|
category,
|
|
19
19
|
keybinding: {
|
|
20
20
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -37,7 +37,7 @@ registerAction2(class CopyPathCommandAction extends Action2 {
|
|
|
37
37
|
constructor() {
|
|
38
38
|
super({
|
|
39
39
|
id: SearchCommandIds.CopyPathCommandId,
|
|
40
|
-
title: ( localize2(
|
|
40
|
+
title: ( localize2(8425, "Copy Path")),
|
|
41
41
|
category,
|
|
42
42
|
keybinding: {
|
|
43
43
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -63,7 +63,7 @@ registerAction2(class CopyAllCommandAction extends Action2 {
|
|
|
63
63
|
constructor() {
|
|
64
64
|
super({
|
|
65
65
|
id: SearchCommandIds.CopyAllCommandId,
|
|
66
|
-
title: ( localize2(
|
|
66
|
+
title: ( localize2(8426, "Copy All")),
|
|
67
67
|
category,
|
|
68
68
|
menu: [{
|
|
69
69
|
id: MenuId.SearchContext,
|