@codingame/monaco-vscode-search-service-override 3.2.3 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/package.json +2 -2
  2. package/search.js +4 -4
  3. package/external/rollup-plugin-styles/dist/runtime/inject-css.js +0 -3
  4. package/external/tslib/tslib.es6.js +0 -11
  5. package/override/vs/platform/dialogs/common/dialogs.js +0 -8
  6. package/vscode/src/vs/workbench/contrib/search/browser/anythingQuickAccess.js +0 -776
  7. package/vscode/src/vs/workbench/contrib/search/browser/media/anythingQuickAccess.css.js +0 -6
  8. package/vscode/src/vs/workbench/contrib/search/browser/media/searchview.css.js +0 -6
  9. package/vscode/src/vs/workbench/contrib/search/browser/patternInputWidget.js +0 -231
  10. package/vscode/src/vs/workbench/contrib/search/browser/quickTextSearch/textSearchQuickAccess.js +0 -342
  11. package/vscode/src/vs/workbench/contrib/search/browser/replaceContributions.js +0 -8
  12. package/vscode/src/vs/workbench/contrib/search/browser/replaceService.js +0 -232
  13. package/vscode/src/vs/workbench/contrib/search/browser/search.contribution.js +0 -621
  14. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsCopy.js +0 -209
  15. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsNav.js +0 -511
  16. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsRemoveReplace.js +0 -374
  17. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsSymbol.js +0 -43
  18. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsTextQuickAccess.js +0 -44
  19. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsTopBar.js +0 -323
  20. package/vscode/src/vs/workbench/contrib/search/browser/searchFindInput.js +0 -47
  21. package/vscode/src/vs/workbench/contrib/search/browser/searchIcons.js +0 -96
  22. package/vscode/src/vs/workbench/contrib/search/browser/searchMessage.js +0 -66
  23. package/vscode/src/vs/workbench/contrib/search/browser/searchResultsView.js +0 -434
  24. package/vscode/src/vs/workbench/contrib/search/browser/searchView.js +0 -2096
  25. package/vscode/src/vs/workbench/contrib/search/browser/searchWidget.js +0 -667
  26. package/vscode/src/vs/workbench/contrib/search/browser/symbolsQuickAccess.js +0 -234
  27. package/vscode/src/vs/workbench/contrib/search/common/cacheState.js +0 -87
  28. package/vscode/src/vs/workbench/contrib/searchEditor/browser/media/searchEditor.css.js +0 -6
  29. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditor.contribution.js +0 -586
  30. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditor.js +0 -736
  31. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorActions.js +0 -189
  32. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorInput.js +0 -320
  33. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorModel.js +0 -138
  34. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorSerialization.js +0 -293
  35. package/vscode/src/vs/workbench/services/search/common/searchService.js +0 -372
@@ -1,621 +0,0 @@
1
- import { isMacintosh } from 'vscode/vscode/vs/base/common/platform';
2
- import { AbstractGotoLineQuickAccessProvider } from 'vscode/vscode/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess';
3
- import { localize2WithPath, localizeWithPath } from 'vscode/vscode/vs/nls';
4
- import { Extensions as Extensions$2 } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
5
- import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
6
- import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
7
- import { Extensions as Extensions$1 } from 'vscode/vscode/vs/platform/quickinput/common/quickAccess';
8
- import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
9
- import { ViewPaneContainer } from 'vscode/vscode/vs/workbench/browser/parts/views/viewPaneContainer';
10
- import { defaultQuickAccessContextKeyValue } from 'vscode/vscode/vs/workbench/browser/quickaccess';
11
- import { Extensions } from 'vscode/vscode/vs/workbench/common/views';
12
- import { GotoSymbolQuickAccessProvider } from 'vscode/vscode/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess';
13
- import { AnythingQuickAccessProvider } from './anythingQuickAccess.js';
14
- import { registerContributions } from './replaceContributions.js';
15
- import { searchViewIcon } from './searchIcons.js';
16
- import { SearchView } from './searchView.js';
17
- import { registerContributions as registerContributions$1 } from './searchWidget.js';
18
- import { SymbolsQuickAccessProvider } from './symbolsQuickAccess.js';
19
- import { VIEWLET_ID, VIEW_ID, SEARCH_EXCLUDE_CONFIG } from 'vscode/vscode/vs/workbench/services/search/common/search';
20
- import { CommandsRegistry } from 'vscode/vscode/vs/platform/commands/common/commands';
21
- import { assertType } from 'vscode/vscode/vs/base/common/types';
22
- import { getWorkspaceSymbols } from 'vscode/vscode/vs/workbench/contrib/search/common/search';
23
- import './searchActionsCopy.js';
24
- import 'vscode/vscode/vs/workbench/contrib/search/browser/searchActionsFind';
25
- import './searchActionsNav.js';
26
- import './searchActionsRemoveReplace.js';
27
- import './searchActionsSymbol.js';
28
- import './searchActionsTopBar.js';
29
- import './searchActionsTextQuickAccess.js';
30
- import { TextSearchQuickAccess, TEXT_SEARCH_QUICK_ACCESS_PREFIX } from './quickTextSearch/textSearchQuickAccess.js';
31
-
32
- registerContributions();
33
- registerContributions$1();
34
- const SEARCH_MODE_CONFIG = 'search.mode';
35
- const viewContainer = ( Registry.as(Extensions.ViewContainersRegistry)).registerViewContainer({
36
- id: VIEWLET_ID,
37
- title: ( localize2WithPath(
38
- 'vs/workbench/contrib/search/browser/search.contribution',
39
- 'search',
40
- "Search"
41
- )),
42
- ctorDescriptor: ( new SyncDescriptor(
43
- ViewPaneContainer,
44
- [VIEWLET_ID, { mergeViewWithContainerWhenSingleView: true }]
45
- )),
46
- hideIfEmpty: true,
47
- icon: searchViewIcon,
48
- order: 1,
49
- }, 0 , { doNotRegisterOpenCommand: true });
50
- const viewDescriptor = {
51
- id: VIEW_ID,
52
- containerIcon: searchViewIcon,
53
- name: ( localize2WithPath(
54
- 'vs/workbench/contrib/search/browser/search.contribution',
55
- 'search',
56
- "Search"
57
- )),
58
- ctorDescriptor: ( new SyncDescriptor(SearchView)),
59
- canToggleVisibility: false,
60
- canMoveView: true,
61
- openCommandActionDescriptor: {
62
- id: viewContainer.id,
63
- mnemonicTitle: ( localizeWithPath(
64
- 'vs/workbench/contrib/search/browser/search.contribution',
65
- { key: 'miViewSearch', comment: ['&& denotes a mnemonic'] },
66
- "&&Search"
67
- )),
68
- keybindings: {
69
- primary: 2048 | 1024 | 36 ,
70
- when: ( ContextKeyExpr.regex('neverMatch', /doesNotMatch/))
71
- },
72
- order: 1
73
- }
74
- };
75
- ( Registry.as(Extensions.ViewsRegistry)).registerViews([viewDescriptor], viewContainer);
76
- const quickAccessRegistry = ( Registry.as(Extensions$1.Quickaccess));
77
- quickAccessRegistry.registerQuickAccessProvider({
78
- ctor: AnythingQuickAccessProvider,
79
- prefix: AnythingQuickAccessProvider.PREFIX,
80
- placeholder: ( localizeWithPath(
81
- 'vs/workbench/contrib/search/browser/search.contribution',
82
- 'anythingQuickAccessPlaceholder',
83
- "Search files by name (append {0} to go to line or {1} to go to symbol)",
84
- AbstractGotoLineQuickAccessProvider.PREFIX,
85
- GotoSymbolQuickAccessProvider.PREFIX
86
- )),
87
- contextKey: defaultQuickAccessContextKeyValue,
88
- helpEntries: [{
89
- description: ( localizeWithPath(
90
- 'vs/workbench/contrib/search/browser/search.contribution',
91
- 'anythingQuickAccess',
92
- "Go to File"
93
- )),
94
- commandId: 'workbench.action.quickOpen',
95
- commandCenterOrder: 10
96
- }]
97
- });
98
- quickAccessRegistry.registerQuickAccessProvider({
99
- ctor: SymbolsQuickAccessProvider,
100
- prefix: SymbolsQuickAccessProvider.PREFIX,
101
- placeholder: ( localizeWithPath(
102
- 'vs/workbench/contrib/search/browser/search.contribution',
103
- 'symbolsQuickAccessPlaceholder',
104
- "Type the name of a symbol to open."
105
- )),
106
- contextKey: 'inWorkspaceSymbolsPicker',
107
- helpEntries: [{ description: ( localizeWithPath(
108
- 'vs/workbench/contrib/search/browser/search.contribution',
109
- 'symbolsQuickAccess',
110
- "Go to Symbol in Workspace"
111
- )), commandId: "workbench.action.showAllSymbols" }]
112
- });
113
- quickAccessRegistry.registerQuickAccessProvider({
114
- ctor: TextSearchQuickAccess,
115
- prefix: TEXT_SEARCH_QUICK_ACCESS_PREFIX,
116
- contextKey: 'inTextSearchPicker',
117
- placeholder: ( localizeWithPath(
118
- 'vs/workbench/contrib/search/browser/search.contribution',
119
- 'textSearchPickerPlaceholder',
120
- "Search for text in your workspace files (experimental)."
121
- )),
122
- helpEntries: [
123
- {
124
- description: ( localizeWithPath(
125
- 'vs/workbench/contrib/search/browser/search.contribution',
126
- 'textSearchPickerHelp',
127
- "Search for Text (Experimental)"
128
- )),
129
- commandId: "workbench.action.experimental.quickTextSearch" ,
130
- commandCenterOrder: 65,
131
- }
132
- ]
133
- });
134
- const configurationRegistry = ( Registry.as(Extensions$2.Configuration));
135
- configurationRegistry.registerConfiguration({
136
- id: 'search',
137
- order: 13,
138
- title: ( localizeWithPath(
139
- 'vs/workbench/contrib/search/browser/search.contribution',
140
- 'searchConfigurationTitle',
141
- "Search"
142
- )),
143
- type: 'object',
144
- properties: {
145
- [SEARCH_EXCLUDE_CONFIG]: {
146
- type: 'object',
147
- markdownDescription: ( localizeWithPath(
148
- 'vs/workbench/contrib/search/browser/search.contribution',
149
- 'exclude',
150
- "Configure [glob patterns](https://code.visualstudio.com/docs/editor/codebasics#_advanced-search-options) for excluding files and folders in fulltext searches and quick open. Inherits all glob patterns from the `#files.exclude#` setting."
151
- )),
152
- default: { '**/node_modules': true, '**/bower_components': true, '**/*.code-search': true },
153
- additionalProperties: {
154
- anyOf: [
155
- {
156
- type: 'boolean',
157
- description: ( localizeWithPath(
158
- 'vs/workbench/contrib/search/browser/search.contribution',
159
- 'exclude.boolean',
160
- "The glob pattern to match file paths against. Set to true or false to enable or disable the pattern."
161
- )),
162
- },
163
- {
164
- type: 'object',
165
- properties: {
166
- when: {
167
- type: 'string',
168
- pattern: '\\w*\\$\\(basename\\)\\w*',
169
- default: '$(basename).ext',
170
- markdownDescription: ( localizeWithPath(
171
- 'vs/workbench/contrib/search/browser/search.contribution',
172
- { key: 'exclude.when', comment: ['\\$(basename) should not be translated'] },
173
- 'Additional check on the siblings of a matching file. Use \\$(basename) as variable for the matching file name.'
174
- ))
175
- }
176
- }
177
- }
178
- ]
179
- },
180
- scope: 4
181
- },
182
- [SEARCH_MODE_CONFIG]: {
183
- type: 'string',
184
- enum: ['view', 'reuseEditor', 'newEditor'],
185
- default: 'view',
186
- markdownDescription: ( localizeWithPath(
187
- 'vs/workbench/contrib/search/browser/search.contribution',
188
- 'search.mode',
189
- "Controls where new `Search: Find in Files` and `Find in Folder` operations occur: either in the search view, or in a search editor."
190
- )),
191
- enumDescriptions: [
192
- ( localizeWithPath(
193
- 'vs/workbench/contrib/search/browser/search.contribution',
194
- 'search.mode.view',
195
- "Search in the search view, either in the panel or side bars."
196
- )),
197
- ( localizeWithPath(
198
- 'vs/workbench/contrib/search/browser/search.contribution',
199
- 'search.mode.reuseEditor',
200
- "Search in an existing search editor if present, otherwise in a new search editor."
201
- )),
202
- ( localizeWithPath(
203
- 'vs/workbench/contrib/search/browser/search.contribution',
204
- 'search.mode.newEditor',
205
- "Search in a new search editor."
206
- )),
207
- ]
208
- },
209
- 'search.useRipgrep': {
210
- type: 'boolean',
211
- description: ( localizeWithPath(
212
- 'vs/workbench/contrib/search/browser/search.contribution',
213
- 'useRipgrep',
214
- "This setting is deprecated and now falls back on \"search.usePCRE2\"."
215
- )),
216
- deprecationMessage: ( localizeWithPath(
217
- 'vs/workbench/contrib/search/browser/search.contribution',
218
- 'useRipgrepDeprecated',
219
- "Deprecated. Consider \"search.usePCRE2\" for advanced regex feature support."
220
- )),
221
- default: true
222
- },
223
- 'search.maintainFileSearchCache': {
224
- type: 'boolean',
225
- deprecationMessage: ( localizeWithPath(
226
- 'vs/workbench/contrib/search/browser/search.contribution',
227
- 'maintainFileSearchCacheDeprecated',
228
- "The search cache is kept in the extension host which never shuts down, so this setting is no longer needed."
229
- )),
230
- description: ( localizeWithPath(
231
- 'vs/workbench/contrib/search/browser/search.contribution',
232
- 'search.maintainFileSearchCache',
233
- "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."
234
- )),
235
- default: false
236
- },
237
- 'search.useIgnoreFiles': {
238
- type: 'boolean',
239
- markdownDescription: ( localizeWithPath(
240
- 'vs/workbench/contrib/search/browser/search.contribution',
241
- 'useIgnoreFiles',
242
- "Controls whether to use `.gitignore` and `.ignore` files when searching for files."
243
- )),
244
- default: true,
245
- scope: 4
246
- },
247
- 'search.useGlobalIgnoreFiles': {
248
- type: 'boolean',
249
- markdownDescription: ( localizeWithPath(
250
- 'vs/workbench/contrib/search/browser/search.contribution',
251
- 'useGlobalIgnoreFiles',
252
- "Controls whether to use your global gitignore file (for example, from `$HOME/.config/git/ignore`) when searching for files. Requires `#search.useIgnoreFiles#` to be enabled."
253
- )),
254
- default: false,
255
- scope: 4
256
- },
257
- 'search.useParentIgnoreFiles': {
258
- type: 'boolean',
259
- markdownDescription: ( localizeWithPath(
260
- 'vs/workbench/contrib/search/browser/search.contribution',
261
- 'useParentIgnoreFiles',
262
- "Controls whether to use `.gitignore` and `.ignore` files in parent directories when searching for files. Requires `#search.useIgnoreFiles#` to be enabled."
263
- )),
264
- default: false,
265
- scope: 4
266
- },
267
- 'search.quickOpen.includeSymbols': {
268
- type: 'boolean',
269
- description: ( localizeWithPath(
270
- 'vs/workbench/contrib/search/browser/search.contribution',
271
- 'search.quickOpen.includeSymbols',
272
- "Whether to include results from a global symbol search in the file results for Quick Open."
273
- )),
274
- default: false
275
- },
276
- 'search.quickOpen.includeHistory': {
277
- type: 'boolean',
278
- description: ( localizeWithPath(
279
- 'vs/workbench/contrib/search/browser/search.contribution',
280
- 'search.quickOpen.includeHistory',
281
- "Whether to include results from recently opened files in the file results for Quick Open."
282
- )),
283
- default: true
284
- },
285
- 'search.quickOpen.history.filterSortOrder': {
286
- 'type': 'string',
287
- 'enum': ['default', 'recency'],
288
- 'default': 'default',
289
- 'enumDescriptions': [
290
- ( localizeWithPath(
291
- 'vs/workbench/contrib/search/browser/search.contribution',
292
- 'filterSortOrder.default',
293
- 'History entries are sorted by relevance based on the filter value used. More relevant entries appear first.'
294
- )),
295
- ( localizeWithPath(
296
- 'vs/workbench/contrib/search/browser/search.contribution',
297
- 'filterSortOrder.recency',
298
- 'History entries are sorted by recency. More recently opened entries appear first.'
299
- ))
300
- ],
301
- 'description': ( localizeWithPath(
302
- 'vs/workbench/contrib/search/browser/search.contribution',
303
- 'filterSortOrder',
304
- "Controls sorting order of editor history in quick open when filtering."
305
- ))
306
- },
307
- 'search.followSymlinks': {
308
- type: 'boolean',
309
- description: ( localizeWithPath(
310
- 'vs/workbench/contrib/search/browser/search.contribution',
311
- 'search.followSymlinks',
312
- "Controls whether to follow symlinks while searching."
313
- )),
314
- default: true
315
- },
316
- 'search.smartCase': {
317
- type: 'boolean',
318
- description: ( localizeWithPath(
319
- 'vs/workbench/contrib/search/browser/search.contribution',
320
- 'search.smartCase',
321
- "Search case-insensitively if the pattern is all lowercase, otherwise, search case-sensitively."
322
- )),
323
- default: false
324
- },
325
- 'search.globalFindClipboard': {
326
- type: 'boolean',
327
- default: false,
328
- description: ( localizeWithPath(
329
- 'vs/workbench/contrib/search/browser/search.contribution',
330
- 'search.globalFindClipboard',
331
- "Controls whether the search view should read or modify the shared find clipboard on macOS."
332
- )),
333
- included: isMacintosh
334
- },
335
- 'search.location': {
336
- type: 'string',
337
- enum: ['sidebar', 'panel'],
338
- default: 'sidebar',
339
- description: ( localizeWithPath(
340
- 'vs/workbench/contrib/search/browser/search.contribution',
341
- 'search.location',
342
- "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."
343
- )),
344
- deprecationMessage: ( localizeWithPath(
345
- 'vs/workbench/contrib/search/browser/search.contribution',
346
- 'search.location.deprecationMessage',
347
- "This setting is deprecated. You can drag the search icon to a new location instead."
348
- ))
349
- },
350
- 'search.maxResults': {
351
- type: ['number', 'null'],
352
- default: 20000,
353
- markdownDescription: ( localizeWithPath(
354
- 'vs/workbench/contrib/search/browser/search.contribution',
355
- 'search.maxResults',
356
- "Controls the maximum number of search results, this can be set to `null` (empty) to return unlimited results."
357
- ))
358
- },
359
- 'search.collapseResults': {
360
- type: 'string',
361
- enum: ['auto', 'alwaysCollapse', 'alwaysExpand'],
362
- enumDescriptions: [
363
- ( localizeWithPath(
364
- 'vs/workbench/contrib/search/browser/search.contribution',
365
- 'search.collapseResults.auto',
366
- "Files with less than 10 results are expanded. Others are collapsed."
367
- )),
368
- '',
369
- ''
370
- ],
371
- default: 'alwaysExpand',
372
- description: ( localizeWithPath(
373
- 'vs/workbench/contrib/search/browser/search.contribution',
374
- 'search.collapseAllResults',
375
- "Controls whether the search results will be collapsed or expanded."
376
- )),
377
- },
378
- 'search.useReplacePreview': {
379
- type: 'boolean',
380
- default: true,
381
- description: ( localizeWithPath(
382
- 'vs/workbench/contrib/search/browser/search.contribution',
383
- 'search.useReplacePreview',
384
- "Controls whether to open Replace Preview when selecting or replacing a match."
385
- )),
386
- },
387
- 'search.showLineNumbers': {
388
- type: 'boolean',
389
- default: false,
390
- description: ( localizeWithPath(
391
- 'vs/workbench/contrib/search/browser/search.contribution',
392
- 'search.showLineNumbers',
393
- "Controls whether to show line numbers for search results."
394
- )),
395
- },
396
- 'search.usePCRE2': {
397
- type: 'boolean',
398
- default: false,
399
- description: ( localizeWithPath(
400
- 'vs/workbench/contrib/search/browser/search.contribution',
401
- 'search.usePCRE2',
402
- "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."
403
- )),
404
- deprecationMessage: ( localizeWithPath(
405
- 'vs/workbench/contrib/search/browser/search.contribution',
406
- 'usePCRE2Deprecated',
407
- "Deprecated. PCRE2 will be used automatically when using regex features that are only supported by PCRE2."
408
- )),
409
- },
410
- 'search.actionsPosition': {
411
- type: 'string',
412
- enum: ['auto', 'right'],
413
- enumDescriptions: [
414
- ( localizeWithPath(
415
- 'vs/workbench/contrib/search/browser/search.contribution',
416
- 'search.actionsPositionAuto',
417
- "Position the actionbar to the right when the search view is narrow, and immediately after the content when the search view is wide."
418
- )),
419
- ( localizeWithPath(
420
- 'vs/workbench/contrib/search/browser/search.contribution',
421
- 'search.actionsPositionRight',
422
- "Always position the actionbar to the right."
423
- )),
424
- ],
425
- default: 'right',
426
- description: ( localizeWithPath(
427
- 'vs/workbench/contrib/search/browser/search.contribution',
428
- 'search.actionsPosition',
429
- "Controls the positioning of the actionbar on rows in the search view."
430
- ))
431
- },
432
- 'search.searchOnType': {
433
- type: 'boolean',
434
- default: true,
435
- description: ( localizeWithPath(
436
- 'vs/workbench/contrib/search/browser/search.contribution',
437
- 'search.searchOnType',
438
- "Search all files as you type."
439
- ))
440
- },
441
- 'search.seedWithNearestWord': {
442
- type: 'boolean',
443
- default: false,
444
- description: ( localizeWithPath(
445
- 'vs/workbench/contrib/search/browser/search.contribution',
446
- 'search.seedWithNearestWord',
447
- "Enable seeding search from the word nearest the cursor when the active editor has no selection."
448
- ))
449
- },
450
- 'search.seedOnFocus': {
451
- type: 'boolean',
452
- default: false,
453
- markdownDescription: ( localizeWithPath(
454
- 'vs/workbench/contrib/search/browser/search.contribution',
455
- 'search.seedOnFocus',
456
- "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."
457
- ))
458
- },
459
- 'search.searchOnTypeDebouncePeriod': {
460
- type: 'number',
461
- default: 300,
462
- markdownDescription: ( localizeWithPath(
463
- 'vs/workbench/contrib/search/browser/search.contribution',
464
- 'search.searchOnTypeDebouncePeriod',
465
- "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.",
466
- '`#search.searchOnType#`'
467
- ))
468
- },
469
- 'search.searchEditor.doubleClickBehaviour': {
470
- type: 'string',
471
- enum: ['selectWord', 'goToLocation', 'openLocationToSide'],
472
- default: 'goToLocation',
473
- enumDescriptions: [
474
- ( localizeWithPath(
475
- 'vs/workbench/contrib/search/browser/search.contribution',
476
- 'search.searchEditor.doubleClickBehaviour.selectWord',
477
- "Double-clicking selects the word under the cursor."
478
- )),
479
- ( localizeWithPath(
480
- 'vs/workbench/contrib/search/browser/search.contribution',
481
- 'search.searchEditor.doubleClickBehaviour.goToLocation',
482
- "Double-clicking opens the result in the active editor group."
483
- )),
484
- ( localizeWithPath(
485
- 'vs/workbench/contrib/search/browser/search.contribution',
486
- 'search.searchEditor.doubleClickBehaviour.openLocationToSide',
487
- "Double-clicking opens the result in the editor group to the side, creating one if it does not yet exist."
488
- )),
489
- ],
490
- markdownDescription: ( localizeWithPath(
491
- 'vs/workbench/contrib/search/browser/search.contribution',
492
- 'search.searchEditor.doubleClickBehaviour',
493
- "Configure effect of double-clicking a result in a search editor."
494
- ))
495
- },
496
- 'search.searchEditor.reusePriorSearchConfiguration': {
497
- type: 'boolean',
498
- default: false,
499
- markdownDescription: ( localizeWithPath(
500
- 'vs/workbench/contrib/search/browser/search.contribution',
501
- { key: 'search.searchEditor.reusePriorSearchConfiguration', comment: ['"Search Editor" is a type of editor that can display search results. "includes, excludes, and flags" refers to the "files to include" and "files to exclude" input boxes, and the flags that control whether a query is case-sensitive or a regex.'] },
502
- "When enabled, new Search Editors will reuse the includes, excludes, and flags of the previously opened Search Editor."
503
- ))
504
- },
505
- 'search.searchEditor.defaultNumberOfContextLines': {
506
- type: ['number', 'null'],
507
- default: 1,
508
- markdownDescription: ( localizeWithPath(
509
- 'vs/workbench/contrib/search/browser/search.contribution',
510
- 'search.searchEditor.defaultNumberOfContextLines',
511
- "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."
512
- ))
513
- },
514
- 'search.sortOrder': {
515
- 'type': 'string',
516
- 'enum': ["default" , "fileNames" , "type" , "modified" , "countDescending" , "countAscending" ],
517
- 'default': "default" ,
518
- 'enumDescriptions': [
519
- ( localizeWithPath(
520
- 'vs/workbench/contrib/search/browser/search.contribution',
521
- 'searchSortOrder.default',
522
- "Results are sorted by folder and file names, in alphabetical order."
523
- )),
524
- ( localizeWithPath(
525
- 'vs/workbench/contrib/search/browser/search.contribution',
526
- 'searchSortOrder.filesOnly',
527
- "Results are sorted by file names ignoring folder order, in alphabetical order."
528
- )),
529
- ( localizeWithPath(
530
- 'vs/workbench/contrib/search/browser/search.contribution',
531
- 'searchSortOrder.type',
532
- "Results are sorted by file extensions, in alphabetical order."
533
- )),
534
- ( localizeWithPath(
535
- 'vs/workbench/contrib/search/browser/search.contribution',
536
- 'searchSortOrder.modified',
537
- "Results are sorted by file last modified date, in descending order."
538
- )),
539
- ( localizeWithPath(
540
- 'vs/workbench/contrib/search/browser/search.contribution',
541
- 'searchSortOrder.countDescending',
542
- "Results are sorted by count per file, in descending order."
543
- )),
544
- ( localizeWithPath(
545
- 'vs/workbench/contrib/search/browser/search.contribution',
546
- 'searchSortOrder.countAscending',
547
- "Results are sorted by count per file, in ascending order."
548
- ))
549
- ],
550
- 'description': ( localizeWithPath(
551
- 'vs/workbench/contrib/search/browser/search.contribution',
552
- 'search.sortOrder',
553
- "Controls sorting order of search results."
554
- ))
555
- },
556
- 'search.decorations.colors': {
557
- type: 'boolean',
558
- description: ( localizeWithPath(
559
- 'vs/workbench/contrib/search/browser/search.contribution',
560
- 'search.decorations.colors',
561
- "Controls whether search file decorations should use colors."
562
- )),
563
- default: true
564
- },
565
- 'search.decorations.badges': {
566
- type: 'boolean',
567
- description: ( localizeWithPath(
568
- 'vs/workbench/contrib/search/browser/search.contribution',
569
- 'search.decorations.badges',
570
- "Controls whether search file decorations should use badges."
571
- )),
572
- default: true
573
- },
574
- 'search.defaultViewMode': {
575
- 'type': 'string',
576
- 'enum': ["tree" , "list" ],
577
- 'default': "list" ,
578
- 'enumDescriptions': [
579
- ( localizeWithPath(
580
- 'vs/workbench/contrib/search/browser/search.contribution',
581
- 'scm.defaultViewMode.tree',
582
- "Shows search results as a tree."
583
- )),
584
- ( localizeWithPath(
585
- 'vs/workbench/contrib/search/browser/search.contribution',
586
- 'scm.defaultViewMode.list',
587
- "Shows search results as a list."
588
- ))
589
- ],
590
- 'description': ( localizeWithPath(
591
- 'vs/workbench/contrib/search/browser/search.contribution',
592
- 'search.defaultViewMode',
593
- "Controls the default search result view mode."
594
- ))
595
- },
596
- 'search.experimental.closedNotebookRichContentResults': {
597
- type: 'boolean',
598
- description: ( localizeWithPath(
599
- 'vs/workbench/contrib/search/browser/search.contribution',
600
- 'search.experimental.closedNotebookResults',
601
- "Show notebook editor rich content results for closed notebooks. Please refresh your search results after changing this setting."
602
- )),
603
- default: false
604
- },
605
- 'search.experimental.quickAccess.preserveInput': {
606
- 'type': 'boolean',
607
- 'description': ( localizeWithPath(
608
- 'vs/workbench/contrib/search/browser/search.contribution',
609
- 'search.experimental.quickAccess.preserveInput',
610
- "Controls whether the last typed input to Quick Search should be restored when opening it the next time."
611
- )),
612
- 'default': false
613
- },
614
- }
615
- });
616
- CommandsRegistry.registerCommand('_executeWorkspaceSymbolProvider', async function (accessor, ...args) {
617
- const [query] = args;
618
- assertType(typeof query === 'string');
619
- const result = await getWorkspaceSymbols(query);
620
- return ( result.map(item => item.symbol));
621
- });