@codingame/monaco-vscode-search-service-override 37.0.0 → 37.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-search-service-override",
3
- "version": "37.0.0",
3
+ "version": "37.1.0",
4
4
  "private": false,
5
5
  "description": "VSCode public API plugged on the monaco editor - search service-override",
6
6
  "keywords": [],
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "type": "module",
17
17
  "dependencies": {
18
- "@codingame/monaco-vscode-api": "37.0.0"
18
+ "@codingame/monaco-vscode-api": "37.1.0"
19
19
  },
20
20
  "main": "index.js",
21
21
  "module": "index.js",
@@ -96,7 +96,7 @@ let TextSearchQuickAccess = class TextSearchQuickAccess extends PickerQuickAcces
96
96
  picker.buttons = [{
97
97
  location: QuickInputButtonLocation.Inline,
98
98
  iconClass: ThemeIcon.asClassName(Codicon.goToSearch),
99
- tooltip: ( localize(15622, "Open in Search View"))
99
+ tooltip: ( localize(15880, "Open in Search View"))
100
100
  }];
101
101
  this.editorViewState.reset();
102
102
  disposables.add(picker.onDidTriggerButton(async () => {
@@ -220,7 +220,7 @@ let TextSearchQuickAccess = class TextSearchQuickAccess extends PickerQuickAcces
220
220
  type: "separator"
221
221
  });
222
222
  picks.push({
223
- label: ( localize(15623, "See More Files")),
223
+ label: ( localize(15881, "See More Files")),
224
224
  iconClass: ThemeIcon.asClassName(searchDetailsIcon),
225
225
  accept: async () => {
226
226
  await this.moveToSearchViewlet(matches[limit]);
@@ -239,7 +239,7 @@ let TextSearchQuickAccess = class TextSearchQuickAccess extends PickerQuickAcces
239
239
  description,
240
240
  buttons: [{
241
241
  iconClass: ThemeIcon.asClassName(searchOpenInFileIcon),
242
- tooltip: ( localize(15624, "Open File"))
242
+ tooltip: ( localize(15882, "Open File"))
243
243
  }],
244
244
  trigger: async () => {
245
245
  await this.handleAccept(iFileInstanceMatch, {});
@@ -251,7 +251,7 @@ let TextSearchQuickAccess = class TextSearchQuickAccess extends PickerQuickAcces
251
251
  const element = results[matchIndex];
252
252
  if (matchIndex === MAX_RESULTS_PER_FILE) {
253
253
  picks.push({
254
- label: ( localize(15625, "More")),
254
+ label: ( localize(15883, "More")),
255
255
  iconClass: ThemeIcon.asClassName(searchDetailsIcon),
256
256
  accept: async () => {
257
257
  await this.moveToSearchViewlet(element);
@@ -272,7 +272,7 @@ let TextSearchQuickAccess = class TextSearchQuickAccess extends PickerQuickAcces
272
272
  },
273
273
  buttons: [{
274
274
  iconClass: ThemeIcon.asClassName(searchActivityBarIcon),
275
- tooltip: ( localize(15626, "Open in Search View"))
275
+ tooltip: ( localize(15884, "Open in Search View"))
276
276
  }],
277
277
  ariaLabel: `Match at location ${element.range().startLineNumber}:${element.range().startColumn} - ${previewText}`,
278
278
  accept: async (keyMods, event) => {
@@ -310,7 +310,7 @@ let TextSearchQuickAccess = class TextSearchQuickAccess extends PickerQuickAcces
310
310
  if (contentPattern === "") {
311
311
  this.searchModel.searchResult.clear();
312
312
  return [{
313
- label: ( localize(15627, "Enter a term to search for across your files."))
313
+ label: ( localize(15885, "Enter a term to search for across your files."))
314
314
  }];
315
315
  }
316
316
  const conditionalTokenCts = disposables.add(( new CancellationTokenSource()));
@@ -334,7 +334,7 @@ let TextSearchQuickAccess = class TextSearchQuickAccess extends PickerQuickAcces
334
334
  return {
335
335
  picks: syncResult,
336
336
  additionalPicks: allMatches.asyncResults.then(asyncResults => (asyncResults.length + syncResult.length === 0) ? [{
337
- label: ( localize(15628, "No matching results"))
337
+ label: ( localize(15886, "No matching results"))
338
338
  }] : this._getPicksFromMatches(asyncResults, MAX_FILES_SHOWN - matches.length)).then(picks => {
339
339
  if (picks.length > 0) {
340
340
  this.searchModel.searchResult.toggleHighlights(true);
@@ -112,7 +112,7 @@ let ReplaceService = class ReplaceService {
112
112
  ReplaceService_1 = this;
113
113
  }
114
114
  static {
115
- this.REPLACE_SAVE_SOURCE = SaveSourceRegistry.registerSource("searchReplace.source", ( localize(15629, "Search and Replace")));
115
+ this.REPLACE_SAVE_SOURCE = SaveSourceRegistry.registerSource("searchReplace.source", ( localize(15887, "Search and Replace")));
116
116
  }
117
117
  constructor(
118
118
  textFileService,
@@ -166,7 +166,7 @@ let ReplaceService = class ReplaceService {
166
166
  modified: {
167
167
  resource: toReplaceResource(fileMatch.resource)
168
168
  },
169
- label: ( localize(15630, "{0} ↔ {1} (Replace Preview)", fileMatch.name(), fileMatch.name())),
169
+ label: ( localize(15888, "{0} ↔ {1} (Replace Preview)", fileMatch.name(), fileMatch.name())),
170
170
  description: this.labelService.getUriLabel(dirname(fileMatch.resource), {
171
171
  relative: true
172
172
  }),
@@ -17,7 +17,7 @@ registerContributions();
17
17
  [SEARCH_EXCLUDE_CONFIG]: {
18
18
  type: "object",
19
19
  markdownDescription: ( localize(
20
- 15631,
20
+ 15889,
21
21
  "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."
22
22
  )),
23
23
  default: {
@@ -29,7 +29,7 @@ registerContributions();
29
29
  anyOf: [{
30
30
  type: "boolean",
31
31
  description: ( localize(
32
- 15632,
32
+ 15890,
33
33
  "The glob pattern to match file paths against. Set to true or false to enable or disable the pattern."
34
34
  ))
35
35
  }, {
@@ -40,7 +40,7 @@ registerContributions();
40
40
  pattern: "\\w*\\$\\(basename\\)\\w*",
41
41
  default: "$(basename).ext",
42
42
  markdownDescription: ( localize(
43
- 15633,
43
+ 15891,
44
44
  "Additional check on the siblings of a matching file. Use \\$(basename) as variable for the matching file name."
45
45
  ))
46
46
  }
@@ -52,7 +52,7 @@ registerContributions();
52
52
  "search.useIgnoreFiles": {
53
53
  type: "boolean",
54
54
  markdownDescription: ( localize(
55
- 15634,
55
+ 15892,
56
56
  "Controls whether to use `.gitignore` and `.ignore` files when searching for files."
57
57
  )),
58
58
  default: true,
@@ -61,7 +61,7 @@ registerContributions();
61
61
  "search.useGlobalIgnoreFiles": {
62
62
  type: "boolean",
63
63
  markdownDescription: ( localize(
64
- 15635,
64
+ 15893,
65
65
  "Controls whether to use your global gitignore file (for example, from `$HOME/.config/git/ignore`) when searching for files. Requires {0} to be enabled.",
66
66
  "`#search.useIgnoreFiles#`"
67
67
  )),
@@ -71,7 +71,7 @@ registerContributions();
71
71
  "search.useParentIgnoreFiles": {
72
72
  type: "boolean",
73
73
  markdownDescription: ( localize(
74
- 15636,
74
+ 15894,
75
75
  "Controls whether to use `.gitignore` and `.ignore` files in parent directories when searching for files. Requires {0} to be enabled.",
76
76
  "`#search.useIgnoreFiles#`"
77
77
  )),
@@ -81,20 +81,20 @@ registerContributions();
81
81
  "search.ripgrep.maxThreads": {
82
82
  type: "number",
83
83
  description: ( localize(
84
- 15637,
84
+ 15895,
85
85
  "Number of threads to use for searching. When set to 0, the engine automatically determines this value."
86
86
  )),
87
87
  default: 0
88
88
  },
89
89
  "search.followSymlinks": {
90
90
  type: "boolean",
91
- description: ( localize(15638, "Controls whether to follow symlinks while searching.")),
91
+ description: ( localize(15896, "Controls whether to follow symlinks while searching.")),
92
92
  default: true
93
93
  },
94
94
  "search.smartCase": {
95
95
  type: "boolean",
96
96
  description: ( localize(
97
- 15639,
97
+ 15897,
98
98
  "Search case-insensitively if the pattern is all lowercase, otherwise, search case-sensitively."
99
99
  )),
100
100
  default: false
@@ -103,7 +103,7 @@ registerContributions();
103
103
  type: ["number", "null"],
104
104
  default: DEFAULT_MAX_SEARCH_RESULTS,
105
105
  markdownDescription: ( localize(
106
- 15640,
106
+ 15898,
107
107
  "Controls the maximum number of search results, this can be set to `null` (empty) to return unlimited results."
108
108
  ))
109
109
  },
@@ -119,27 +119,27 @@ registerContributions();
119
119
  ],
120
120
  default: SearchSortOrder.Default,
121
121
  enumDescriptions: [( localize(
122
- 15641,
122
+ 15899,
123
123
  "Results are sorted by folder and file names, in alphabetical order."
124
124
  )), ( localize(
125
- 15642,
125
+ 15900,
126
126
  "Results are sorted by file names ignoring folder order, in alphabetical order."
127
- )), ( localize(15643, "Results are sorted by file extensions, in alphabetical order.")), ( localize(
128
- 15644,
127
+ )), ( localize(15901, "Results are sorted by file extensions, in alphabetical order.")), ( localize(
128
+ 15902,
129
129
  "Results are sorted by file last modified date, in descending order."
130
- )), ( localize(15645, "Results are sorted by count per file, in descending order.")), ( localize(15646, "Results are sorted by count per file, in ascending order."))],
131
- description: ( localize(15647, "Controls sorting order of search results."))
130
+ )), ( localize(15903, "Results are sorted by count per file, in descending order.")), ( localize(15904, "Results are sorted by count per file, in ascending order."))],
131
+ description: ( localize(15905, "Controls sorting order of search results."))
132
132
  },
133
133
  "search.searchOnType": {
134
134
  type: "boolean",
135
135
  default: true,
136
- description: ( localize(15648, "Search all files as you type."))
136
+ description: ( localize(15906, "Search all files as you type."))
137
137
  },
138
138
  "search.searchOnTypeDebouncePeriod": {
139
139
  type: "number",
140
140
  default: 300,
141
141
  markdownDescription: ( localize(
142
- 15649,
142
+ 15907,
143
143
  "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.",
144
144
  "`#search.searchOnType#`"
145
145
  ))
@@ -45,7 +45,7 @@ AccessibleViewRegistry.register(( new SearchAccessibilityHelp()));
45
45
  const SEARCH_MODE_CONFIG = "search.mode";
46
46
  const viewContainer = ( Registry.as(Extensions.ViewContainersRegistry)).registerViewContainer({
47
47
  id: VIEWLET_ID,
48
- title: ( localize2(15650, "Search")),
48
+ title: ( localize2(15908, "Search")),
49
49
  ctorDescriptor: ( new SyncDescriptor(ViewPaneContainer, [VIEWLET_ID, {
50
50
  mergeViewWithContainerWhenSingleView: true
51
51
  }])),
@@ -58,13 +58,13 @@ const viewContainer = ( Registry.as(Extensions.ViewContainersRegistry)).register
58
58
  const viewDescriptor = {
59
59
  id: VIEW_ID,
60
60
  containerIcon: searchViewIcon,
61
- name: ( localize2(15650, "Search")),
61
+ name: ( localize2(15908, "Search")),
62
62
  ctorDescriptor: ( new SyncDescriptor(SearchView)),
63
63
  canToggleVisibility: false,
64
64
  canMoveView: true,
65
65
  openCommandActionDescriptor: {
66
66
  id: viewContainer.id,
67
- mnemonicTitle: ( localize(15651, "&&Search")),
67
+ mnemonicTitle: ( localize(15909, "&&Search")),
68
68
  keybindings: {
69
69
  primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyF,
70
70
  when: ( ContextKeyExpr.regex("neverMatch", /doesNotMatch/))
@@ -78,9 +78,9 @@ quickAccessRegistry.registerQuickAccessProvider({
78
78
  ctor: TextSearchQuickAccess,
79
79
  prefix: TEXT_SEARCH_QUICK_ACCESS_PREFIX,
80
80
  contextKey: "inTextSearchPicker",
81
- placeholder: ( localize(15652, "Search for text in your workspace files.")),
81
+ placeholder: ( localize(15910, "Search for text in your workspace files.")),
82
82
  helpEntries: [{
83
- description: ( localize(15653, "Search for Text")),
83
+ description: ( localize(15911, "Search for Text")),
84
84
  commandId: SearchCommandIds.QuickTextSearchActionId,
85
85
  commandCenterOrder: 25
86
86
  }]
@@ -94,18 +94,18 @@ configurationRegistry.registerConfiguration({
94
94
  enum: ["view", "reuseEditor", "newEditor"],
95
95
  default: "view",
96
96
  markdownDescription: ( localize(
97
- 15654,
97
+ 15912,
98
98
  "Controls where new `Search: Find in Files` and `Find in Folder` operations occur: either in the Search view, or in a search editor."
99
99
  )),
100
- enumDescriptions: [( localize(15655, "Search in the Search view, either in the panel or side bars.")), ( localize(
101
- 15656,
100
+ enumDescriptions: [( localize(15913, "Search in the Search view, either in the panel or side bars.")), ( localize(
101
+ 15914,
102
102
  "Search in an existing search editor if present, otherwise in a new search editor."
103
- )), ( localize(15657, "Search in a new search editor."))]
103
+ )), ( localize(15915, "Search in a new search editor."))]
104
104
  },
105
105
  "search.quickOpen.includeSymbols": {
106
106
  type: "boolean",
107
107
  description: ( localize(
108
- 15658,
108
+ 15916,
109
109
  "Whether to include results from a global symbol search in the file results for Quick Open."
110
110
  )),
111
111
  default: false
@@ -113,7 +113,7 @@ configurationRegistry.registerConfiguration({
113
113
  "search.quickOpen.includeHistory": {
114
114
  type: "boolean",
115
115
  description: ( localize(
116
- 15659,
116
+ 15917,
117
117
  "Whether to include results from recently opened files in the file results for Quick Open."
118
118
  )),
119
119
  default: true,
@@ -126,14 +126,14 @@ configurationRegistry.registerConfiguration({
126
126
  enum: ["default", "recency"],
127
127
  default: "default",
128
128
  enumDescriptions: [( localize(
129
- 15660,
129
+ 15918,
130
130
  "History entries are sorted by relevance based on the filter value used. More relevant entries appear first."
131
131
  )), ( localize(
132
- 15661,
132
+ 15919,
133
133
  "History entries are sorted by recency. More recently opened entries appear first."
134
134
  ))],
135
135
  description: ( localize(
136
- 15662,
136
+ 15920,
137
137
  "Controls sorting order of editor history in quick open when filtering."
138
138
  ))
139
139
  },
@@ -141,7 +141,7 @@ configurationRegistry.registerConfiguration({
141
141
  type: "boolean",
142
142
  default: false,
143
143
  description: ( localize(
144
- 15663,
144
+ 15921,
145
145
  "Controls whether the Search view should read or modify the shared find clipboard on macOS."
146
146
  )),
147
147
  included: isMacintosh
@@ -150,12 +150,12 @@ configurationRegistry.registerConfiguration({
150
150
  type: "string",
151
151
  enum: ["auto", "alwaysCollapse", "alwaysExpand"],
152
152
  enumDescriptions: [( localize(
153
- 15664,
153
+ 15922,
154
154
  "Files with less than 10 results are expanded. Others are collapsed."
155
155
  )), "", ""],
156
156
  default: "alwaysExpand",
157
157
  description: ( localize(
158
- 15665,
158
+ 15923,
159
159
  "Controls whether the search results will be collapsed or expanded."
160
160
  ))
161
161
  },
@@ -163,25 +163,25 @@ configurationRegistry.registerConfiguration({
163
163
  type: "boolean",
164
164
  default: true,
165
165
  description: ( localize(
166
- 15666,
166
+ 15924,
167
167
  "Controls whether to open Replace Preview when selecting or replacing a match."
168
168
  ))
169
169
  },
170
170
  "search.showLineNumbers": {
171
171
  type: "boolean",
172
172
  default: false,
173
- description: ( localize(15667, "Controls whether to show line numbers for search results."))
173
+ description: ( localize(15925, "Controls whether to show line numbers for search results."))
174
174
  },
175
175
  "search.actionsPosition": {
176
176
  type: "string",
177
177
  enum: ["auto", "right"],
178
178
  enumDescriptions: [( localize(
179
- 15668,
179
+ 15926,
180
180
  "Position the actionbar to the right when the Search view is narrow, and immediately after the content when the Search view is wide."
181
- )), ( localize(15669, "Always position the actionbar to the right."))],
181
+ )), ( localize(15927, "Always position the actionbar to the right."))],
182
182
  default: "right",
183
183
  description: ( localize(
184
- 15670,
184
+ 15928,
185
185
  "Controls the positioning of the actionbar on rows in the Search view."
186
186
  ))
187
187
  },
@@ -189,7 +189,7 @@ configurationRegistry.registerConfiguration({
189
189
  type: "boolean",
190
190
  default: false,
191
191
  description: ( localize(
192
- 15671,
192
+ 15929,
193
193
  "Enable seeding search from the word nearest the cursor when the active editor has no selection."
194
194
  ))
195
195
  },
@@ -197,31 +197,31 @@ configurationRegistry.registerConfiguration({
197
197
  type: "boolean",
198
198
  default: false,
199
199
  markdownDescription: ( localize(
200
- 15672,
200
+ 15930,
201
201
  "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."
202
202
  ))
203
203
  },
204
204
  "search.decorations.colors": {
205
205
  type: "boolean",
206
- description: ( localize(15673, "Controls whether search file decorations should use colors.")),
206
+ description: ( localize(15931, "Controls whether search file decorations should use colors.")),
207
207
  default: true
208
208
  },
209
209
  "search.decorations.badges": {
210
210
  type: "boolean",
211
- description: ( localize(15674, "Controls whether search file decorations should use badges.")),
211
+ description: ( localize(15932, "Controls whether search file decorations should use badges.")),
212
212
  default: true
213
213
  },
214
214
  "search.defaultViewMode": {
215
215
  type: "string",
216
216
  enum: [ViewMode.Tree, ViewMode.List],
217
217
  default: ViewMode.List,
218
- enumDescriptions: [( localize(15675, "Shows search results as a tree.")), ( localize(15676, "Shows search results as a list."))],
219
- description: ( localize(15677, "Controls the default search result view mode."))
218
+ enumDescriptions: [( localize(15933, "Shows search results as a tree.")), ( localize(15934, "Shows search results as a list."))],
219
+ description: ( localize(15935, "Controls the default search result view mode."))
220
220
  },
221
221
  "search.quickAccess.preserveInput": {
222
222
  type: "boolean",
223
223
  description: ( localize(
224
- 15678,
224
+ 15936,
225
225
  "Controls whether the last typed input to Quick Search should be restored when opening it the next time."
226
226
  )),
227
227
  default: false
@@ -229,7 +229,7 @@ configurationRegistry.registerConfiguration({
229
229
  "search.experimental.closedNotebookRichContentResults": {
230
230
  type: "boolean",
231
231
  description: ( localize(
232
- 15679,
232
+ 15937,
233
233
  "Show notebook editor rich content results for closed notebooks. Please refresh your search results after changing this setting."
234
234
  )),
235
235
  default: false
@@ -238,7 +238,7 @@ configurationRegistry.registerConfiguration({
238
238
  type: "boolean",
239
239
  default: false,
240
240
  markdownDescription: ( localize(
241
- 15680,
241
+ 15938,
242
242
  "When enabled, the legacy `findFiles` extension API honors the user's `#search.useIgnoreFiles#` setting instead of always ignoring `.gitignore`. Extensions that explicitly pass `null` as the `exclude` argument still get unfiltered results. Telemetry is emitted regardless of this setting to help decide future defaults."
243
243
  )),
244
244
  tags: ["experimental"]
@@ -246,7 +246,7 @@ configurationRegistry.registerConfiguration({
246
246
  "search.searchView.semanticSearchBehavior": {
247
247
  type: "string",
248
248
  description: ( localize(
249
- 15681,
249
+ 15939,
250
250
  "Controls the behavior of the semantic search results displayed in the Search view."
251
251
  )),
252
252
  enum: [
@@ -255,15 +255,15 @@ configurationRegistry.registerConfiguration({
255
255
  SemanticSearchBehavior.Auto
256
256
  ],
257
257
  default: SemanticSearchBehavior.Manual,
258
- enumDescriptions: [( localize(15682, "Only request semantic search results manually.")), ( localize(
259
- 15683,
258
+ enumDescriptions: [( localize(15940, "Only request semantic search results manually.")), ( localize(
259
+ 15941,
260
260
  "Request semantic results automatically only when text search results are empty."
261
- )), ( localize(15684, "Request semantic results automatically with every search."))],
261
+ )), ( localize(15942, "Request semantic results automatically with every search."))],
262
262
  tags: ["preview"]
263
263
  },
264
264
  "search.searchView.keywordSuggestions": {
265
265
  type: "boolean",
266
- description: ( localize(15685, "Enable keyword suggestions in the Search view.")),
266
+ description: ( localize(15943, "Enable keyword suggestions in the Search view.")),
267
267
  default: false,
268
268
  tags: ["preview"]
269
269
  }