@codingame/monaco-vscode-search-service-override 32.0.2 → 33.0.9

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.
@@ -27,6 +27,7 @@ import { openNewSearchEditor, createEditorFromSearchResult, toggleSearchEditorCa
27
27
  import { SearchEditorInput, SEARCH_EDITOR_EXT, getOrMakeSearchEditorInput } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/searchEditor/browser/searchEditorInput';
28
28
  import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
29
29
  import { VIEW_ID } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/search/common/search';
30
+ import { searchConfigurationNode } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/search/common/search';
30
31
  import { RegisteredEditorPriority } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorResolverService';
31
32
  import { IEditorResolverService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorResolverService.service';
32
33
  import { IWorkingCopyEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/workingCopy/common/workingCopyEditorService.service';
@@ -48,33 +49,30 @@ const RerunSearchEditorSearchCommandId = "rerunSearchEditorSearch";
48
49
  const CleanSearchEditorStateCommandId = "cleanSearchEditorState";
49
50
  const SelectAllSearchEditorMatchesCommandId = "selectAllSearchEditorMatches";
50
51
  ( Registry.as(Extensions.Configuration)).registerConfiguration({
51
- id: "search",
52
- order: 13,
53
- title: ( localize(13184, "Search")),
54
- type: "object",
52
+ ...searchConfigurationNode,
55
53
  properties: {
56
54
  "search.searchEditor.doubleClickBehaviour": {
57
55
  type: "string",
58
56
  enum: ["selectWord", "goToLocation", "openLocationToSide"],
59
57
  default: "goToLocation",
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,
58
+ enumDescriptions: [( localize(13315, "Double-clicking selects the word under the cursor.")), ( localize(13316, "Double-clicking opens the result in the active editor group.")), ( localize(
59
+ 13317,
62
60
  "Double-clicking opens the result in the editor group to the side, creating one if it does not yet exist."
63
61
  ))],
64
- markdownDescription: ( localize(13188, "Configure effect of double-clicking a result in a search editor."))
62
+ markdownDescription: ( localize(13318, "Configure effect of double-clicking a result in a search editor."))
65
63
  },
66
64
  "search.searchEditor.singleClickBehaviour": {
67
65
  type: "string",
68
66
  enum: ["default", "peekDefinition"],
69
67
  default: "default",
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."))
68
+ enumDescriptions: [( localize(13319, "Single-clicking does nothing.")), ( localize(13320, "Single-clicking opens a Peek Definition window."))],
69
+ markdownDescription: ( localize(13321, "Configure effect of single-clicking a result in a search editor."))
72
70
  },
73
71
  "search.searchEditor.reusePriorSearchConfiguration": {
74
72
  type: "boolean",
75
73
  default: false,
76
74
  markdownDescription: ( localize(
77
- 13192,
75
+ 13322,
78
76
  "When enabled, new Search Editors will reuse the includes, excludes, and flags of the previously opened Search Editor."
79
77
  ))
80
78
  },
@@ -82,7 +80,7 @@ const SelectAllSearchEditorMatchesCommandId = "selectAllSearchEditorMatches";
82
80
  type: ["number", "null"],
83
81
  default: 1,
84
82
  markdownDescription: ( localize(
85
- 13193,
83
+ 13323,
86
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."
87
85
  ))
88
86
  },
@@ -90,13 +88,13 @@ const SelectAllSearchEditorMatchesCommandId = "selectAllSearchEditorMatches";
90
88
  type: "boolean",
91
89
  default: false,
92
90
  markdownDescription: ( localize(
93
- 13194,
91
+ 13324,
94
92
  "When a search is triggered, focus the Search Editor results instead of the Search Editor input."
95
93
  ))
96
94
  }
97
95
  }
98
96
  });
99
- ( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(SearchEditor, SearchEditor.ID, ( localize(13195, "Search Editor"))), [( new SyncDescriptor(SearchEditorInput))]);
97
+ ( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(SearchEditor, SearchEditor.ID, ( localize(13325, "Search Editor"))), [( new SyncDescriptor(SearchEditorInput))]);
100
98
  let SearchEditorContribution = class SearchEditorContribution {
101
99
  static {
102
100
  this.ID = "workbench.contrib.searchEditor";
@@ -104,7 +102,7 @@ let SearchEditorContribution = class SearchEditorContribution {
104
102
  constructor(editorResolverService, instantiationService) {
105
103
  editorResolverService.registerEditor("*" + SEARCH_EDITOR_EXT, {
106
104
  id: SearchEditorInput.ID,
107
- label: ( localize(13196, "Search Editor")),
105
+ label: ( localize(13326, "Search Editor")),
108
106
  detail: DEFAULT_EDITOR_ASSOCIATION.providerDisplayName,
109
107
  priority: RegisteredEditorPriority.default
110
108
  }, {
@@ -211,7 +209,7 @@ CommandsRegistry.registerCommand(CleanSearchEditorStateCommandId, accessor => {
211
209
  activeEditorPane.cleanState();
212
210
  }
213
211
  });
214
- const category = ( localize2(13197, "Search Editor"));
212
+ const category = ( localize2(13327, "Search Editor"));
215
213
  const translateLegacyConfig = (legacyConfig = {}) => {
216
214
  const config = {};
217
215
  const overrides = {
@@ -277,7 +275,7 @@ registerAction2(class extends Action2 {
277
275
  constructor() {
278
276
  super({
279
277
  id: "search.searchEditor.action.deleteFileResults",
280
- title: ( localize2(13198, "Delete File Results")),
278
+ title: ( localize2(13328, "Delete File Results")),
281
279
  keybinding: {
282
280
  weight: KeybindingWeight.EditorContrib,
283
281
  primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.Backspace
@@ -298,7 +296,7 @@ registerAction2(class extends Action2 {
298
296
  constructor() {
299
297
  super({
300
298
  id: OpenNewEditorCommandId,
301
- title: ( localize2(13199, "New Search Editor")),
299
+ title: ( localize2(13329, "New Search Editor")),
302
300
  category,
303
301
  f1: true,
304
302
  metadata: openArgMetadata
@@ -315,7 +313,7 @@ registerAction2(class extends Action2 {
315
313
  constructor() {
316
314
  super({
317
315
  id: OpenEditorCommandId,
318
- title: ( localize2(13200, "Open Search Editor")),
316
+ title: ( localize2(13330, "Open Search Editor")),
319
317
  category,
320
318
  f1: true,
321
319
  metadata: openArgMetadata
@@ -332,7 +330,7 @@ registerAction2(class extends Action2 {
332
330
  constructor() {
333
331
  super({
334
332
  id: OpenNewEditorToSideCommandId,
335
- title: ( localize2(13201, "Open New Search Editor to the Side")),
333
+ title: ( localize2(13331, "Open New Search Editor to the Side")),
336
334
  category,
337
335
  f1: true,
338
336
  metadata: openArgMetadata
@@ -346,7 +344,7 @@ registerAction2(class extends Action2 {
346
344
  constructor() {
347
345
  super({
348
346
  id: OpenInEditorCommandId,
349
- title: ( localize2(13202, "Open Results in Editor")),
347
+ title: ( localize2(13332, "Open Results in Editor")),
350
348
  category,
351
349
  f1: true,
352
350
  keybinding: {
@@ -381,7 +379,7 @@ registerAction2(class extends Action2 {
381
379
  constructor() {
382
380
  super({
383
381
  id: RerunSearchEditorSearchCommandId,
384
- title: ( localize2(13203, "Search Again")),
382
+ title: ( localize2(13333, "Search Again")),
385
383
  category,
386
384
  keybinding: {
387
385
  primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyR,
@@ -413,7 +411,7 @@ registerAction2(class extends Action2 {
413
411
  constructor() {
414
412
  super({
415
413
  id: FocusQueryEditorWidgetCommandId,
416
- title: ( localize2(13204, "Focus Search Editor Input")),
414
+ title: ( localize2(13334, "Focus Search Editor Input")),
417
415
  category,
418
416
  f1: true,
419
417
  precondition: InSearchEditor,
@@ -435,7 +433,7 @@ registerAction2(class extends Action2 {
435
433
  constructor() {
436
434
  super({
437
435
  id: FocusQueryEditorFilesToIncludeCommandId,
438
- title: ( localize2(13205, "Focus Search Editor Files to Include")),
436
+ title: ( localize2(13335, "Focus Search Editor Files to Include")),
439
437
  category,
440
438
  f1: true,
441
439
  precondition: InSearchEditor
@@ -453,7 +451,7 @@ registerAction2(class extends Action2 {
453
451
  constructor() {
454
452
  super({
455
453
  id: FocusQueryEditorFilesToExcludeCommandId,
456
- title: ( localize2(13206, "Focus Search Editor Files to Exclude")),
454
+ title: ( localize2(13336, "Focus Search Editor Files to Exclude")),
457
455
  category,
458
456
  f1: true,
459
457
  precondition: InSearchEditor
@@ -471,7 +469,7 @@ registerAction2(class extends Action2 {
471
469
  constructor() {
472
470
  super({
473
471
  id: ToggleSearchEditorCaseSensitiveCommandId,
474
- title: ( localize2(13207, "Toggle Match Case")),
472
+ title: ( localize2(13337, "Toggle Match Case")),
475
473
  category,
476
474
  f1: true,
477
475
  precondition: InSearchEditor,
@@ -489,7 +487,7 @@ registerAction2(class extends Action2 {
489
487
  constructor() {
490
488
  super({
491
489
  id: ToggleSearchEditorWholeWordCommandId,
492
- title: ( localize2(13208, "Toggle Match Whole Word")),
490
+ title: ( localize2(13338, "Toggle Match Whole Word")),
493
491
  category,
494
492
  f1: true,
495
493
  precondition: InSearchEditor,
@@ -507,7 +505,7 @@ registerAction2(class extends Action2 {
507
505
  constructor() {
508
506
  super({
509
507
  id: ToggleSearchEditorRegexCommandId,
510
- title: ( localize2(13209, "Toggle Use Regular Expression")),
508
+ title: ( localize2(13339, "Toggle Use Regular Expression")),
511
509
  category,
512
510
  f1: true,
513
511
  precondition: InSearchEditor,
@@ -525,7 +523,7 @@ registerAction2(class extends Action2 {
525
523
  constructor() {
526
524
  super({
527
525
  id: ToggleSearchEditorContextLinesCommandId,
528
- title: ( localize2(13210, "Toggle Context Lines")),
526
+ title: ( localize2(13340, "Toggle Context Lines")),
529
527
  category,
530
528
  f1: true,
531
529
  precondition: InSearchEditor,
@@ -546,7 +544,7 @@ registerAction2(class extends Action2 {
546
544
  constructor() {
547
545
  super({
548
546
  id: IncreaseSearchEditorContextLinesCommandId,
549
- title: ( localize2(13211, "Increase Context Lines")),
547
+ title: ( localize2(13341, "Increase Context Lines")),
550
548
  category,
551
549
  f1: true,
552
550
  precondition: InSearchEditor,
@@ -564,7 +562,7 @@ registerAction2(class extends Action2 {
564
562
  constructor() {
565
563
  super({
566
564
  id: DecreaseSearchEditorContextLinesCommandId,
567
- title: ( localize2(13212, "Decrease Context Lines")),
565
+ title: ( localize2(13342, "Decrease Context Lines")),
568
566
  category,
569
567
  f1: true,
570
568
  precondition: InSearchEditor,
@@ -582,7 +580,7 @@ registerAction2(class extends Action2 {
582
580
  constructor() {
583
581
  super({
584
582
  id: SelectAllSearchEditorMatchesCommandId,
585
- title: ( localize2(13213, "Select All Matches")),
583
+ title: ( localize2(13343, "Select All Matches")),
586
584
  category,
587
585
  f1: true,
588
586
  precondition: InSearchEditor,
@@ -600,7 +598,7 @@ registerAction2(class OpenSearchEditorAction extends Action2 {
600
598
  constructor() {
601
599
  super({
602
600
  id: "search.action.openNewEditorFromView",
603
- title: ( localize(13214, "Open New Search Editor")),
601
+ title: ( localize(13344, "Open New Search Editor")),
604
602
  category,
605
603
  icon: searchNewEditorIcon,
606
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(13215, "Toggle Search Details"));
189
+ const toggleQueryDetailsLabel = ( localize(13345, "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(13216, "files to include"));
232
+ const filesToIncludeTitle = ( localize(13346, "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(13217, "Search Include Patterns")),
236
+ ariaLabel: ( localize(13347, "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(13218, "files to exclude"));
248
+ const excludesTitle = ( localize(13348, "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(13219, "Search Exclude Patterns")),
252
+ ariaLabel: ( localize(13349, "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(13220, "Run Search"))));
281
+ const runAgainLink = append(this.messageBox, $("a.pointer.prominent.message", {}, ( localize(13350, "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
- 13221,
500
+ 13351,
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(13222, "Search"));
844
+ return this.getInput()?.getName() ?? ( localize(13352, "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(13223, "Search editor text input box border.")));
848
+ const searchEditorTextInputBorder = registerColor("searchEditor.textInputBorder", inputBorder, ( localize(13353, "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(16901, "Unable to search with Web Worker text searcher")),
96
+ text: ( localize(17033, "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(16902, "Unable to search with Web Worker file searcher")),
141
+ text: ( localize(17034, "Unable to search with Web Worker file searcher")),
142
142
  type: TextSearchCompleteMessageType.Warning
143
143
  }]
144
144
  };