@codingame/monaco-vscode-search-service-override 34.1.3 → 35.0.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.
- 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.common.contribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/search/browser/search.contribution.js +60 -60
- 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 +28 -28
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditor.js +9 -9
- package/vscode/src/vs/workbench/services/search/browser/searchService.js +2 -2
|
@@ -55,24 +55,24 @@ const SelectAllSearchEditorMatchesCommandId = "selectAllSearchEditorMatches";
|
|
|
55
55
|
type: "string",
|
|
56
56
|
enum: ["selectWord", "goToLocation", "openLocationToSide"],
|
|
57
57
|
default: "goToLocation",
|
|
58
|
-
enumDescriptions: [( localize(
|
|
59
|
-
|
|
58
|
+
enumDescriptions: [( localize(14148, "Double-clicking selects the word under the cursor.")), ( localize(14149, "Double-clicking opens the result in the active editor group.")), ( localize(
|
|
59
|
+
14150,
|
|
60
60
|
"Double-clicking opens the result in the editor group to the side, creating one if it does not yet exist."
|
|
61
61
|
))],
|
|
62
|
-
markdownDescription: ( localize(
|
|
62
|
+
markdownDescription: ( localize(14151, "Configure effect of double-clicking a result in a search editor."))
|
|
63
63
|
},
|
|
64
64
|
"search.searchEditor.singleClickBehaviour": {
|
|
65
65
|
type: "string",
|
|
66
66
|
enum: ["default", "peekDefinition"],
|
|
67
67
|
default: "default",
|
|
68
|
-
enumDescriptions: [( localize(
|
|
69
|
-
markdownDescription: ( localize(
|
|
68
|
+
enumDescriptions: [( localize(14152, "Single-clicking does nothing.")), ( localize(14153, "Single-clicking opens a Peek Definition window."))],
|
|
69
|
+
markdownDescription: ( localize(14154, "Configure effect of single-clicking a result in a search editor."))
|
|
70
70
|
},
|
|
71
71
|
"search.searchEditor.reusePriorSearchConfiguration": {
|
|
72
72
|
type: "boolean",
|
|
73
73
|
default: false,
|
|
74
74
|
markdownDescription: ( localize(
|
|
75
|
-
|
|
75
|
+
14155,
|
|
76
76
|
"When enabled, new Search Editors will reuse the includes, excludes, and flags of the previously opened Search Editor."
|
|
77
77
|
))
|
|
78
78
|
},
|
|
@@ -80,7 +80,7 @@ const SelectAllSearchEditorMatchesCommandId = "selectAllSearchEditorMatches";
|
|
|
80
80
|
type: ["number", "null"],
|
|
81
81
|
default: 1,
|
|
82
82
|
markdownDescription: ( localize(
|
|
83
|
-
|
|
83
|
+
14156,
|
|
84
84
|
"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."
|
|
85
85
|
))
|
|
86
86
|
},
|
|
@@ -88,13 +88,13 @@ const SelectAllSearchEditorMatchesCommandId = "selectAllSearchEditorMatches";
|
|
|
88
88
|
type: "boolean",
|
|
89
89
|
default: false,
|
|
90
90
|
markdownDescription: ( localize(
|
|
91
|
-
|
|
91
|
+
14157,
|
|
92
92
|
"When a search is triggered, focus the Search Editor results instead of the Search Editor input."
|
|
93
93
|
))
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
});
|
|
97
|
-
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(SearchEditor, SearchEditor.ID, ( localize(
|
|
97
|
+
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(SearchEditor, SearchEditor.ID, ( localize(14158, "Search Editor"))), [( new SyncDescriptor(SearchEditorInput))]);
|
|
98
98
|
let SearchEditorContribution = class SearchEditorContribution {
|
|
99
99
|
static {
|
|
100
100
|
this.ID = "workbench.contrib.searchEditor";
|
|
@@ -102,7 +102,7 @@ let SearchEditorContribution = class SearchEditorContribution {
|
|
|
102
102
|
constructor(editorResolverService, instantiationService) {
|
|
103
103
|
editorResolverService.registerEditor("*" + SEARCH_EDITOR_EXT, {
|
|
104
104
|
id: SearchEditorInput.ID,
|
|
105
|
-
label: ( localize(
|
|
105
|
+
label: ( localize(14159, "Search Editor")),
|
|
106
106
|
detail: DEFAULT_EDITOR_ASSOCIATION.providerDisplayName,
|
|
107
107
|
priority: RegisteredEditorPriority.default
|
|
108
108
|
}, {
|
|
@@ -209,7 +209,7 @@ CommandsRegistry.registerCommand(CleanSearchEditorStateCommandId, accessor => {
|
|
|
209
209
|
activeEditorPane.cleanState();
|
|
210
210
|
}
|
|
211
211
|
});
|
|
212
|
-
const category = ( localize2(
|
|
212
|
+
const category = ( localize2(14160, "Search Editor"));
|
|
213
213
|
const translateLegacyConfig = (legacyConfig = {}) => {
|
|
214
214
|
const config = {};
|
|
215
215
|
const overrides = {
|
|
@@ -275,7 +275,7 @@ registerAction2(class extends Action2 {
|
|
|
275
275
|
constructor() {
|
|
276
276
|
super({
|
|
277
277
|
id: "search.searchEditor.action.deleteFileResults",
|
|
278
|
-
title: ( localize2(
|
|
278
|
+
title: ( localize2(14161, "Delete File Results")),
|
|
279
279
|
keybinding: {
|
|
280
280
|
weight: KeybindingWeight.EditorContrib,
|
|
281
281
|
primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.Backspace
|
|
@@ -296,7 +296,7 @@ registerAction2(class extends Action2 {
|
|
|
296
296
|
constructor() {
|
|
297
297
|
super({
|
|
298
298
|
id: OpenNewEditorCommandId,
|
|
299
|
-
title: ( localize2(
|
|
299
|
+
title: ( localize2(14162, "New Search Editor")),
|
|
300
300
|
category,
|
|
301
301
|
f1: true,
|
|
302
302
|
metadata: openArgMetadata
|
|
@@ -313,7 +313,7 @@ registerAction2(class extends Action2 {
|
|
|
313
313
|
constructor() {
|
|
314
314
|
super({
|
|
315
315
|
id: OpenEditorCommandId,
|
|
316
|
-
title: ( localize2(
|
|
316
|
+
title: ( localize2(14163, "Open Search Editor")),
|
|
317
317
|
category,
|
|
318
318
|
f1: true,
|
|
319
319
|
metadata: openArgMetadata
|
|
@@ -330,7 +330,7 @@ registerAction2(class extends Action2 {
|
|
|
330
330
|
constructor() {
|
|
331
331
|
super({
|
|
332
332
|
id: OpenNewEditorToSideCommandId,
|
|
333
|
-
title: ( localize2(
|
|
333
|
+
title: ( localize2(14164, "Open New Search Editor to the Side")),
|
|
334
334
|
category,
|
|
335
335
|
f1: true,
|
|
336
336
|
metadata: openArgMetadata
|
|
@@ -344,7 +344,7 @@ registerAction2(class extends Action2 {
|
|
|
344
344
|
constructor() {
|
|
345
345
|
super({
|
|
346
346
|
id: OpenInEditorCommandId,
|
|
347
|
-
title: ( localize2(
|
|
347
|
+
title: ( localize2(14165, "Open Results in Editor")),
|
|
348
348
|
category,
|
|
349
349
|
f1: true,
|
|
350
350
|
keybinding: {
|
|
@@ -379,7 +379,7 @@ registerAction2(class extends Action2 {
|
|
|
379
379
|
constructor() {
|
|
380
380
|
super({
|
|
381
381
|
id: RerunSearchEditorSearchCommandId,
|
|
382
|
-
title: ( localize2(
|
|
382
|
+
title: ( localize2(14166, "Search Again")),
|
|
383
383
|
category,
|
|
384
384
|
keybinding: {
|
|
385
385
|
primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyR,
|
|
@@ -411,7 +411,7 @@ registerAction2(class extends Action2 {
|
|
|
411
411
|
constructor() {
|
|
412
412
|
super({
|
|
413
413
|
id: FocusQueryEditorWidgetCommandId,
|
|
414
|
-
title: ( localize2(
|
|
414
|
+
title: ( localize2(14167, "Focus Search Editor Input")),
|
|
415
415
|
category,
|
|
416
416
|
f1: true,
|
|
417
417
|
precondition: InSearchEditor,
|
|
@@ -433,7 +433,7 @@ registerAction2(class extends Action2 {
|
|
|
433
433
|
constructor() {
|
|
434
434
|
super({
|
|
435
435
|
id: FocusQueryEditorFilesToIncludeCommandId,
|
|
436
|
-
title: ( localize2(
|
|
436
|
+
title: ( localize2(14168, "Focus Search Editor Files to Include")),
|
|
437
437
|
category,
|
|
438
438
|
f1: true,
|
|
439
439
|
precondition: InSearchEditor
|
|
@@ -451,7 +451,7 @@ registerAction2(class extends Action2 {
|
|
|
451
451
|
constructor() {
|
|
452
452
|
super({
|
|
453
453
|
id: FocusQueryEditorFilesToExcludeCommandId,
|
|
454
|
-
title: ( localize2(
|
|
454
|
+
title: ( localize2(14169, "Focus Search Editor Files to Exclude")),
|
|
455
455
|
category,
|
|
456
456
|
f1: true,
|
|
457
457
|
precondition: InSearchEditor
|
|
@@ -469,7 +469,7 @@ registerAction2(class extends Action2 {
|
|
|
469
469
|
constructor() {
|
|
470
470
|
super({
|
|
471
471
|
id: ToggleSearchEditorCaseSensitiveCommandId,
|
|
472
|
-
title: ( localize2(
|
|
472
|
+
title: ( localize2(14170, "Toggle Match Case")),
|
|
473
473
|
category,
|
|
474
474
|
f1: true,
|
|
475
475
|
precondition: InSearchEditor,
|
|
@@ -487,7 +487,7 @@ registerAction2(class extends Action2 {
|
|
|
487
487
|
constructor() {
|
|
488
488
|
super({
|
|
489
489
|
id: ToggleSearchEditorWholeWordCommandId,
|
|
490
|
-
title: ( localize2(
|
|
490
|
+
title: ( localize2(14171, "Toggle Match Whole Word")),
|
|
491
491
|
category,
|
|
492
492
|
f1: true,
|
|
493
493
|
precondition: InSearchEditor,
|
|
@@ -505,7 +505,7 @@ registerAction2(class extends Action2 {
|
|
|
505
505
|
constructor() {
|
|
506
506
|
super({
|
|
507
507
|
id: ToggleSearchEditorRegexCommandId,
|
|
508
|
-
title: ( localize2(
|
|
508
|
+
title: ( localize2(14172, "Toggle Use Regular Expression")),
|
|
509
509
|
category,
|
|
510
510
|
f1: true,
|
|
511
511
|
precondition: InSearchEditor,
|
|
@@ -523,7 +523,7 @@ registerAction2(class extends Action2 {
|
|
|
523
523
|
constructor() {
|
|
524
524
|
super({
|
|
525
525
|
id: ToggleSearchEditorContextLinesCommandId,
|
|
526
|
-
title: ( localize2(
|
|
526
|
+
title: ( localize2(14173, "Toggle Context Lines")),
|
|
527
527
|
category,
|
|
528
528
|
f1: true,
|
|
529
529
|
precondition: InSearchEditor,
|
|
@@ -544,7 +544,7 @@ registerAction2(class extends Action2 {
|
|
|
544
544
|
constructor() {
|
|
545
545
|
super({
|
|
546
546
|
id: IncreaseSearchEditorContextLinesCommandId,
|
|
547
|
-
title: ( localize2(
|
|
547
|
+
title: ( localize2(14174, "Increase Context Lines")),
|
|
548
548
|
category,
|
|
549
549
|
f1: true,
|
|
550
550
|
precondition: InSearchEditor,
|
|
@@ -562,7 +562,7 @@ registerAction2(class extends Action2 {
|
|
|
562
562
|
constructor() {
|
|
563
563
|
super({
|
|
564
564
|
id: DecreaseSearchEditorContextLinesCommandId,
|
|
565
|
-
title: ( localize2(
|
|
565
|
+
title: ( localize2(14175, "Decrease Context Lines")),
|
|
566
566
|
category,
|
|
567
567
|
f1: true,
|
|
568
568
|
precondition: InSearchEditor,
|
|
@@ -580,7 +580,7 @@ registerAction2(class extends Action2 {
|
|
|
580
580
|
constructor() {
|
|
581
581
|
super({
|
|
582
582
|
id: SelectAllSearchEditorMatchesCommandId,
|
|
583
|
-
title: ( localize2(
|
|
583
|
+
title: ( localize2(14176, "Select All Matches")),
|
|
584
584
|
category,
|
|
585
585
|
f1: true,
|
|
586
586
|
precondition: InSearchEditor,
|
|
@@ -598,7 +598,7 @@ registerAction2(class OpenSearchEditorAction extends Action2 {
|
|
|
598
598
|
constructor() {
|
|
599
599
|
super({
|
|
600
600
|
id: "search.action.openNewEditorFromView",
|
|
601
|
-
title: ( localize(
|
|
601
|
+
title: ( localize(14177, "Open New Search Editor")),
|
|
602
602
|
category,
|
|
603
603
|
icon: searchNewEditorIcon,
|
|
604
604
|
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(14178, "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(14179, "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(14180, "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(14181, "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(14182, "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(14183, "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
|
+
14184,
|
|
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(14185, "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(14186, "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(17913, "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(17914, "Unable to search with Web Worker file searcher")),
|
|
142
142
|
type: TextSearchCompleteMessageType.Warning
|
|
143
143
|
}]
|
|
144
144
|
};
|