@codingame/monaco-vscode-search-service-override 32.0.0 → 32.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 +2 -2
- 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 +62 -62
- package/vscode/src/vs/workbench/contrib/search/browser/searchAccessibilityHelp.js +55 -55
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsCopy.js +4 -4
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsFind.js +12 -12
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsNav.js +17 -17
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsRemoveReplace.js +4 -4
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsSymbol.js +3 -3
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsTextQuickAccess.js +1 -1
- package/vscode/src/vs/workbench/contrib/search/browser/searchQuickAccess.contribution.js +4 -4
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditor.contribution.js +29 -29
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditor.js +9 -9
- package/vscode/src/vs/workbench/services/search/browser/searchService.js +2 -2
|
@@ -50,31 +50,31 @@ const SelectAllSearchEditorMatchesCommandId = "selectAllSearchEditorMatches";
|
|
|
50
50
|
( Registry.as(Extensions.Configuration)).registerConfiguration({
|
|
51
51
|
id: "search",
|
|
52
52
|
order: 13,
|
|
53
|
-
title: ( localize(
|
|
53
|
+
title: ( localize(13184, "Search")),
|
|
54
54
|
type: "object",
|
|
55
55
|
properties: {
|
|
56
56
|
"search.searchEditor.doubleClickBehaviour": {
|
|
57
57
|
type: "string",
|
|
58
58
|
enum: ["selectWord", "goToLocation", "openLocationToSide"],
|
|
59
59
|
default: "goToLocation",
|
|
60
|
-
enumDescriptions: [( localize(
|
|
61
|
-
|
|
60
|
+
enumDescriptions: [( localize(13185, "Double-clicking selects the word under the cursor.")), ( localize(13186, "Double-clicking opens the result in the active editor group.")), ( localize(
|
|
61
|
+
13187,
|
|
62
62
|
"Double-clicking opens the result in the editor group to the side, creating one if it does not yet exist."
|
|
63
63
|
))],
|
|
64
|
-
markdownDescription: ( localize(
|
|
64
|
+
markdownDescription: ( localize(13188, "Configure effect of double-clicking a result in a search editor."))
|
|
65
65
|
},
|
|
66
66
|
"search.searchEditor.singleClickBehaviour": {
|
|
67
67
|
type: "string",
|
|
68
68
|
enum: ["default", "peekDefinition"],
|
|
69
69
|
default: "default",
|
|
70
|
-
enumDescriptions: [( localize(
|
|
71
|
-
markdownDescription: ( localize(
|
|
70
|
+
enumDescriptions: [( localize(13189, "Single-clicking does nothing.")), ( localize(13190, "Single-clicking opens a Peek Definition window."))],
|
|
71
|
+
markdownDescription: ( localize(13191, "Configure effect of single-clicking a result in a search editor."))
|
|
72
72
|
},
|
|
73
73
|
"search.searchEditor.reusePriorSearchConfiguration": {
|
|
74
74
|
type: "boolean",
|
|
75
75
|
default: false,
|
|
76
76
|
markdownDescription: ( localize(
|
|
77
|
-
|
|
77
|
+
13192,
|
|
78
78
|
"When enabled, new Search Editors will reuse the includes, excludes, and flags of the previously opened Search Editor."
|
|
79
79
|
))
|
|
80
80
|
},
|
|
@@ -82,7 +82,7 @@ const SelectAllSearchEditorMatchesCommandId = "selectAllSearchEditorMatches";
|
|
|
82
82
|
type: ["number", "null"],
|
|
83
83
|
default: 1,
|
|
84
84
|
markdownDescription: ( localize(
|
|
85
|
-
|
|
85
|
+
13193,
|
|
86
86
|
"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."
|
|
87
87
|
))
|
|
88
88
|
},
|
|
@@ -90,13 +90,13 @@ const SelectAllSearchEditorMatchesCommandId = "selectAllSearchEditorMatches";
|
|
|
90
90
|
type: "boolean",
|
|
91
91
|
default: false,
|
|
92
92
|
markdownDescription: ( localize(
|
|
93
|
-
|
|
93
|
+
13194,
|
|
94
94
|
"When a search is triggered, focus the Search Editor results instead of the Search Editor input."
|
|
95
95
|
))
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
});
|
|
99
|
-
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(SearchEditor, SearchEditor.ID, ( localize(
|
|
99
|
+
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(SearchEditor, SearchEditor.ID, ( localize(13195, "Search Editor"))), [( new SyncDescriptor(SearchEditorInput))]);
|
|
100
100
|
let SearchEditorContribution = class SearchEditorContribution {
|
|
101
101
|
static {
|
|
102
102
|
this.ID = "workbench.contrib.searchEditor";
|
|
@@ -104,7 +104,7 @@ let SearchEditorContribution = class SearchEditorContribution {
|
|
|
104
104
|
constructor(editorResolverService, instantiationService) {
|
|
105
105
|
editorResolverService.registerEditor("*" + SEARCH_EDITOR_EXT, {
|
|
106
106
|
id: SearchEditorInput.ID,
|
|
107
|
-
label: ( localize(
|
|
107
|
+
label: ( localize(13196, "Search Editor")),
|
|
108
108
|
detail: DEFAULT_EDITOR_ASSOCIATION.providerDisplayName,
|
|
109
109
|
priority: RegisteredEditorPriority.default
|
|
110
110
|
}, {
|
|
@@ -211,7 +211,7 @@ CommandsRegistry.registerCommand(CleanSearchEditorStateCommandId, accessor => {
|
|
|
211
211
|
activeEditorPane.cleanState();
|
|
212
212
|
}
|
|
213
213
|
});
|
|
214
|
-
const category = ( localize2(
|
|
214
|
+
const category = ( localize2(13197, "Search Editor"));
|
|
215
215
|
const translateLegacyConfig = (legacyConfig = {}) => {
|
|
216
216
|
const config = {};
|
|
217
217
|
const overrides = {
|
|
@@ -277,7 +277,7 @@ registerAction2(class extends Action2 {
|
|
|
277
277
|
constructor() {
|
|
278
278
|
super({
|
|
279
279
|
id: "search.searchEditor.action.deleteFileResults",
|
|
280
|
-
title: ( localize2(
|
|
280
|
+
title: ( localize2(13198, "Delete File Results")),
|
|
281
281
|
keybinding: {
|
|
282
282
|
weight: KeybindingWeight.EditorContrib,
|
|
283
283
|
primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.Backspace
|
|
@@ -298,7 +298,7 @@ registerAction2(class extends Action2 {
|
|
|
298
298
|
constructor() {
|
|
299
299
|
super({
|
|
300
300
|
id: OpenNewEditorCommandId,
|
|
301
|
-
title: ( localize2(
|
|
301
|
+
title: ( localize2(13199, "New Search Editor")),
|
|
302
302
|
category,
|
|
303
303
|
f1: true,
|
|
304
304
|
metadata: openArgMetadata
|
|
@@ -315,7 +315,7 @@ registerAction2(class extends Action2 {
|
|
|
315
315
|
constructor() {
|
|
316
316
|
super({
|
|
317
317
|
id: OpenEditorCommandId,
|
|
318
|
-
title: ( localize2(
|
|
318
|
+
title: ( localize2(13200, "Open Search Editor")),
|
|
319
319
|
category,
|
|
320
320
|
f1: true,
|
|
321
321
|
metadata: openArgMetadata
|
|
@@ -332,7 +332,7 @@ registerAction2(class extends Action2 {
|
|
|
332
332
|
constructor() {
|
|
333
333
|
super({
|
|
334
334
|
id: OpenNewEditorToSideCommandId,
|
|
335
|
-
title: ( localize2(
|
|
335
|
+
title: ( localize2(13201, "Open New Search Editor to the Side")),
|
|
336
336
|
category,
|
|
337
337
|
f1: true,
|
|
338
338
|
metadata: openArgMetadata
|
|
@@ -346,7 +346,7 @@ registerAction2(class extends Action2 {
|
|
|
346
346
|
constructor() {
|
|
347
347
|
super({
|
|
348
348
|
id: OpenInEditorCommandId,
|
|
349
|
-
title: ( localize2(
|
|
349
|
+
title: ( localize2(13202, "Open Results in Editor")),
|
|
350
350
|
category,
|
|
351
351
|
f1: true,
|
|
352
352
|
keybinding: {
|
|
@@ -381,7 +381,7 @@ registerAction2(class extends Action2 {
|
|
|
381
381
|
constructor() {
|
|
382
382
|
super({
|
|
383
383
|
id: RerunSearchEditorSearchCommandId,
|
|
384
|
-
title: ( localize2(
|
|
384
|
+
title: ( localize2(13203, "Search Again")),
|
|
385
385
|
category,
|
|
386
386
|
keybinding: {
|
|
387
387
|
primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyR,
|
|
@@ -413,7 +413,7 @@ registerAction2(class extends Action2 {
|
|
|
413
413
|
constructor() {
|
|
414
414
|
super({
|
|
415
415
|
id: FocusQueryEditorWidgetCommandId,
|
|
416
|
-
title: ( localize2(
|
|
416
|
+
title: ( localize2(13204, "Focus Search Editor Input")),
|
|
417
417
|
category,
|
|
418
418
|
f1: true,
|
|
419
419
|
precondition: InSearchEditor,
|
|
@@ -435,7 +435,7 @@ registerAction2(class extends Action2 {
|
|
|
435
435
|
constructor() {
|
|
436
436
|
super({
|
|
437
437
|
id: FocusQueryEditorFilesToIncludeCommandId,
|
|
438
|
-
title: ( localize2(
|
|
438
|
+
title: ( localize2(13205, "Focus Search Editor Files to Include")),
|
|
439
439
|
category,
|
|
440
440
|
f1: true,
|
|
441
441
|
precondition: InSearchEditor
|
|
@@ -453,7 +453,7 @@ registerAction2(class extends Action2 {
|
|
|
453
453
|
constructor() {
|
|
454
454
|
super({
|
|
455
455
|
id: FocusQueryEditorFilesToExcludeCommandId,
|
|
456
|
-
title: ( localize2(
|
|
456
|
+
title: ( localize2(13206, "Focus Search Editor Files to Exclude")),
|
|
457
457
|
category,
|
|
458
458
|
f1: true,
|
|
459
459
|
precondition: InSearchEditor
|
|
@@ -471,7 +471,7 @@ registerAction2(class extends Action2 {
|
|
|
471
471
|
constructor() {
|
|
472
472
|
super({
|
|
473
473
|
id: ToggleSearchEditorCaseSensitiveCommandId,
|
|
474
|
-
title: ( localize2(
|
|
474
|
+
title: ( localize2(13207, "Toggle Match Case")),
|
|
475
475
|
category,
|
|
476
476
|
f1: true,
|
|
477
477
|
precondition: InSearchEditor,
|
|
@@ -489,7 +489,7 @@ registerAction2(class extends Action2 {
|
|
|
489
489
|
constructor() {
|
|
490
490
|
super({
|
|
491
491
|
id: ToggleSearchEditorWholeWordCommandId,
|
|
492
|
-
title: ( localize2(
|
|
492
|
+
title: ( localize2(13208, "Toggle Match Whole Word")),
|
|
493
493
|
category,
|
|
494
494
|
f1: true,
|
|
495
495
|
precondition: InSearchEditor,
|
|
@@ -507,7 +507,7 @@ registerAction2(class extends Action2 {
|
|
|
507
507
|
constructor() {
|
|
508
508
|
super({
|
|
509
509
|
id: ToggleSearchEditorRegexCommandId,
|
|
510
|
-
title: ( localize2(
|
|
510
|
+
title: ( localize2(13209, "Toggle Use Regular Expression")),
|
|
511
511
|
category,
|
|
512
512
|
f1: true,
|
|
513
513
|
precondition: InSearchEditor,
|
|
@@ -525,7 +525,7 @@ registerAction2(class extends Action2 {
|
|
|
525
525
|
constructor() {
|
|
526
526
|
super({
|
|
527
527
|
id: ToggleSearchEditorContextLinesCommandId,
|
|
528
|
-
title: ( localize2(
|
|
528
|
+
title: ( localize2(13210, "Toggle Context Lines")),
|
|
529
529
|
category,
|
|
530
530
|
f1: true,
|
|
531
531
|
precondition: InSearchEditor,
|
|
@@ -546,7 +546,7 @@ registerAction2(class extends Action2 {
|
|
|
546
546
|
constructor() {
|
|
547
547
|
super({
|
|
548
548
|
id: IncreaseSearchEditorContextLinesCommandId,
|
|
549
|
-
title: ( localize2(
|
|
549
|
+
title: ( localize2(13211, "Increase Context Lines")),
|
|
550
550
|
category,
|
|
551
551
|
f1: true,
|
|
552
552
|
precondition: InSearchEditor,
|
|
@@ -564,7 +564,7 @@ registerAction2(class extends Action2 {
|
|
|
564
564
|
constructor() {
|
|
565
565
|
super({
|
|
566
566
|
id: DecreaseSearchEditorContextLinesCommandId,
|
|
567
|
-
title: ( localize2(
|
|
567
|
+
title: ( localize2(13212, "Decrease Context Lines")),
|
|
568
568
|
category,
|
|
569
569
|
f1: true,
|
|
570
570
|
precondition: InSearchEditor,
|
|
@@ -582,7 +582,7 @@ registerAction2(class extends Action2 {
|
|
|
582
582
|
constructor() {
|
|
583
583
|
super({
|
|
584
584
|
id: SelectAllSearchEditorMatchesCommandId,
|
|
585
|
-
title: ( localize2(
|
|
585
|
+
title: ( localize2(13213, "Select All Matches")),
|
|
586
586
|
category,
|
|
587
587
|
f1: true,
|
|
588
588
|
precondition: InSearchEditor,
|
|
@@ -600,7 +600,7 @@ registerAction2(class OpenSearchEditorAction extends Action2 {
|
|
|
600
600
|
constructor() {
|
|
601
601
|
super({
|
|
602
602
|
id: "search.action.openNewEditorFromView",
|
|
603
|
-
title: ( localize(
|
|
603
|
+
title: ( localize(13214, "Open New Search Editor")),
|
|
604
604
|
category,
|
|
605
605
|
icon: searchNewEditorIcon,
|
|
606
606
|
menu: [{
|
|
@@ -186,7 +186,7 @@ let SearchEditor = class SearchEditor extends AbstractTextCodeEditor {
|
|
|
186
186
|
resetCursor: false
|
|
187
187
|
})));
|
|
188
188
|
this.includesExcludesContainer = append(container, $(".includes-excludes"));
|
|
189
|
-
const toggleQueryDetailsLabel = ( localize(
|
|
189
|
+
const toggleQueryDetailsLabel = ( localize(13215, "Toggle Search Details"));
|
|
190
190
|
this.toggleQueryDetailsButton = append(
|
|
191
191
|
this.includesExcludesContainer,
|
|
192
192
|
$(".expand" + ThemeIcon.asCSSSelector(searchDetailsIcon), {
|
|
@@ -229,11 +229,11 @@ let SearchEditor = class SearchEditor extends AbstractTextCodeEditor {
|
|
|
229
229
|
})
|
|
230
230
|
);
|
|
231
231
|
const folderIncludesList = append(this.includesExcludesContainer, $(".file-types.includes"));
|
|
232
|
-
const filesToIncludeTitle = ( localize(
|
|
232
|
+
const filesToIncludeTitle = ( localize(13216, "files to include"));
|
|
233
233
|
append(folderIncludesList, $("h4", undefined, filesToIncludeTitle));
|
|
234
234
|
this.inputPatternIncludes = this._register(
|
|
235
235
|
scopedInstantiationService.createInstance(IncludePatternInputWidget, folderIncludesList, this.contextViewService, {
|
|
236
|
-
ariaLabel: ( localize(
|
|
236
|
+
ariaLabel: ( localize(13217, "Search Include Patterns")),
|
|
237
237
|
inputBoxStyles: searchEditorInputboxStyles
|
|
238
238
|
})
|
|
239
239
|
);
|
|
@@ -245,11 +245,11 @@ let SearchEditor = class SearchEditor extends AbstractTextCodeEditor {
|
|
|
245
245
|
this.inputPatternIncludes.onChangeSearchInEditorsBox(() => this.triggerSearch())
|
|
246
246
|
);
|
|
247
247
|
const excludesList = append(this.includesExcludesContainer, $(".file-types.excludes"));
|
|
248
|
-
const excludesTitle = ( localize(
|
|
248
|
+
const excludesTitle = ( localize(13218, "files to exclude"));
|
|
249
249
|
append(excludesList, $("h4", undefined, excludesTitle));
|
|
250
250
|
this.inputPatternExcludes = this._register(
|
|
251
251
|
scopedInstantiationService.createInstance(ExcludePatternInputWidget, excludesList, this.contextViewService, {
|
|
252
|
-
ariaLabel: ( localize(
|
|
252
|
+
ariaLabel: ( localize(13219, "Search Exclude Patterns")),
|
|
253
253
|
inputBoxStyles: searchEditorInputboxStyles
|
|
254
254
|
})
|
|
255
255
|
);
|
|
@@ -278,7 +278,7 @@ let SearchEditor = class SearchEditor extends AbstractTextCodeEditor {
|
|
|
278
278
|
clearNode(this.messageBox);
|
|
279
279
|
this.messageDisposables.clear();
|
|
280
280
|
if (show) {
|
|
281
|
-
const runAgainLink = append(this.messageBox, $("a.pointer.prominent.message", {}, ( localize(
|
|
281
|
+
const runAgainLink = append(this.messageBox, $("a.pointer.prominent.message", {}, ( localize(13220, "Run Search"))));
|
|
282
282
|
this.messageDisposables.add(addDisposableListener(runAgainLink, EventType.CLICK, async () => {
|
|
283
283
|
await this.triggerSearch();
|
|
284
284
|
this.searchResultEditor.focus();
|
|
@@ -497,7 +497,7 @@ let SearchEditor = class SearchEditor extends AbstractTextCodeEditor {
|
|
|
497
497
|
}
|
|
498
498
|
}
|
|
499
499
|
alert(( localize(
|
|
500
|
-
|
|
500
|
+
13221,
|
|
501
501
|
"Matched {0} at {1} in file {2}",
|
|
502
502
|
matchText,
|
|
503
503
|
matchLineText,
|
|
@@ -841,11 +841,11 @@ let SearchEditor = class SearchEditor extends AbstractTextCodeEditor {
|
|
|
841
841
|
}
|
|
842
842
|
}
|
|
843
843
|
getAriaLabel() {
|
|
844
|
-
return this.getInput()?.getName() ?? ( localize(
|
|
844
|
+
return this.getInput()?.getName() ?? ( localize(13222, "Search"));
|
|
845
845
|
}
|
|
846
846
|
};
|
|
847
847
|
SearchEditor = SearchEditor_1 = ( __decorate([( __param(1, ITelemetryService)), ( __param(2, IThemeService)), ( __param(3, IStorageService)), ( __param(4, IModelService)), ( __param(5, IWorkspaceContextService)), ( __param(6, ILabelService)), ( __param(7, IInstantiationService)), ( __param(8, IContextViewService)), ( __param(9, ICommandService)), ( __param(10, IOpenerService)), ( __param(11, INotificationService)), ( __param(12, IEditorProgressService)), ( __param(13, ITextResourceConfigurationService)), ( __param(14, IEditorGroupsService)), ( __param(15, IEditorService)), ( __param(16, IConfigurationService)), ( __param(17, IFileService)), ( __param(18, ILogService)), ( __param(19, IHoverService))], SearchEditor));
|
|
848
|
-
const searchEditorTextInputBorder = registerColor("searchEditor.textInputBorder", inputBorder, ( localize(
|
|
848
|
+
const searchEditorTextInputBorder = registerColor("searchEditor.textInputBorder", inputBorder, ( localize(13223, "Search editor text input box border.")));
|
|
849
849
|
function findNextRange(matchRanges, currentPosition) {
|
|
850
850
|
for (const matchRange of matchRanges) {
|
|
851
851
|
if (Position.isBefore(currentPosition, matchRange.getStartPosition())) {
|
|
@@ -93,7 +93,7 @@ let LocalFileSearchWorkerClient = class LocalFileSearchWorkerClient extends Disp
|
|
|
93
93
|
return {
|
|
94
94
|
results: [],
|
|
95
95
|
messages: [{
|
|
96
|
-
text: ( localize(
|
|
96
|
+
text: ( localize(16901, "Unable to search with Web Worker text searcher")),
|
|
97
97
|
type: TextSearchCompleteMessageType.Warning
|
|
98
98
|
}]
|
|
99
99
|
};
|
|
@@ -138,7 +138,7 @@ let LocalFileSearchWorkerClient = class LocalFileSearchWorkerClient extends Disp
|
|
|
138
138
|
return {
|
|
139
139
|
results: [],
|
|
140
140
|
messages: [{
|
|
141
|
-
text: ( localize(
|
|
141
|
+
text: ( localize(16902, "Unable to search with Web Worker file searcher")),
|
|
142
142
|
type: TextSearchCompleteMessageType.Warning
|
|
143
143
|
}]
|
|
144
144
|
};
|