@codingame/monaco-vscode-search-service-override 9.0.0 → 9.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.
Files changed (22) hide show
  1. package/package.json +2 -2
  2. package/vscode/src/vs/workbench/contrib/search/browser/patternInputWidget.js +3 -3
  3. package/vscode/src/vs/workbench/contrib/search/browser/quickTextSearch/textSearchQuickAccess.js +7 -7
  4. package/vscode/src/vs/workbench/contrib/search/browser/replaceService.js +2 -2
  5. package/vscode/src/vs/workbench/contrib/search/browser/search.contribution.js +73 -73
  6. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsCopy.js +3 -3
  7. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsNav.js +17 -17
  8. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsRemoveReplace.js +4 -4
  9. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsSymbol.js +3 -3
  10. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsTextQuickAccess.js +1 -1
  11. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsTopBar.js +8 -8
  12. package/vscode/src/vs/workbench/contrib/search/browser/searchFindInput.js +2 -2
  13. package/vscode/src/vs/workbench/contrib/search/browser/searchIcons.js +20 -20
  14. package/vscode/src/vs/workbench/contrib/search/browser/searchMessage.js +2 -2
  15. package/vscode/src/vs/workbench/contrib/search/browser/searchResultsView.js +12 -12
  16. package/vscode/src/vs/workbench/contrib/search/browser/searchView.js +53 -53
  17. package/vscode/src/vs/workbench/contrib/search/browser/searchWidget.js +8 -8
  18. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditor.contribution.js +20 -20
  19. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditor.js +9 -9
  20. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorInput.js +4 -4
  21. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorSerialization.js +5 -5
  22. package/vscode/src/vs/workbench/services/search/browser/searchService.js +2 -2
@@ -119,7 +119,7 @@ let SearchEditor = class SearchEditor extends AbstractTextCodeEditor {
119
119
  }
120
120
  this._register(this.queryEditorWidget.onDidToggleContext(() => this.triggerSearch({ resetCursor: false })));
121
121
  this.includesExcludesContainer = append(container, $('.includes-excludes'));
122
- const toggleQueryDetailsLabel = ( localize(8440, "Toggle Search Details"));
122
+ const toggleQueryDetailsLabel = ( localize(8476, "Toggle Search Details"));
123
123
  this.toggleQueryDetailsButton = append(this.includesExcludesContainer, $('.expand' + ThemeIcon.asCSSSelector(searchDetailsIcon), { tabindex: 0, role: 'button', 'aria-label': toggleQueryDetailsLabel }));
124
124
  this._register(this.hoverService.setupManagedHover(getDefaultHoverDelegate('element'), this.toggleQueryDetailsButton, toggleQueryDetailsLabel));
125
125
  this._register(addDisposableListener(this.toggleQueryDetailsButton, EventType.CLICK, e => {
@@ -146,19 +146,19 @@ let SearchEditor = class SearchEditor extends AbstractTextCodeEditor {
146
146
  }
147
147
  }));
148
148
  const folderIncludesList = append(this.includesExcludesContainer, $('.file-types.includes'));
149
- const filesToIncludeTitle = ( localize(8441, "files to include"));
149
+ const filesToIncludeTitle = ( localize(8477, "files to include"));
150
150
  append(folderIncludesList, $('h4', undefined, filesToIncludeTitle));
151
151
  this.inputPatternIncludes = this._register(scopedInstantiationService.createInstance(IncludePatternInputWidget, folderIncludesList, this.contextViewService, {
152
- ariaLabel: ( localize(8442, 'Search Include Patterns')),
152
+ ariaLabel: ( localize(8478, 'Search Include Patterns')),
153
153
  inputBoxStyles: searchEditorInputboxStyles
154
154
  }));
155
155
  this.inputPatternIncludes.onSubmit(triggeredOnType => this.triggerSearch({ resetCursor: false, delay: triggeredOnType ? this.searchConfig.searchOnTypeDebouncePeriod : 0 }));
156
156
  this._register(this.inputPatternIncludes.onChangeSearchInEditorsBox(() => this.triggerSearch()));
157
157
  const excludesList = append(this.includesExcludesContainer, $('.file-types.excludes'));
158
- const excludesTitle = ( localize(8443, "files to exclude"));
158
+ const excludesTitle = ( localize(8479, "files to exclude"));
159
159
  append(excludesList, $('h4', undefined, excludesTitle));
160
160
  this.inputPatternExcludes = this._register(scopedInstantiationService.createInstance(ExcludePatternInputWidget, excludesList, this.contextViewService, {
161
- ariaLabel: ( localize(8444, 'Search Exclude Patterns')),
161
+ ariaLabel: ( localize(8480, 'Search Exclude Patterns')),
162
162
  inputBoxStyles: searchEditorInputboxStyles
163
163
  }));
164
164
  this.inputPatternExcludes.onSubmit(triggeredOnType => this.triggerSearch({ resetCursor: false, delay: triggeredOnType ? this.searchConfig.searchOnTypeDebouncePeriod : 0 }));
@@ -177,7 +177,7 @@ let SearchEditor = class SearchEditor extends AbstractTextCodeEditor {
177
177
  clearNode(this.messageBox);
178
178
  this.messageDisposables.clear();
179
179
  if (show) {
180
- const runAgainLink = append(this.messageBox, $('a.pointer.prominent.message', {}, ( localize(8445, "Run Search"))));
180
+ const runAgainLink = append(this.messageBox, $('a.pointer.prominent.message', {}, ( localize(8481, "Run Search"))));
181
181
  this.messageDisposables.add(addDisposableListener(runAgainLink, EventType.CLICK, async () => {
182
182
  await this.triggerSearch();
183
183
  this.searchResultEditor.focus();
@@ -390,7 +390,7 @@ let SearchEditor = class SearchEditor extends AbstractTextCodeEditor {
390
390
  }
391
391
  }
392
392
  alert(( localize(
393
- 8446,
393
+ 8482,
394
394
  "Matched {0} at {1} in file {2}",
395
395
  matchText,
396
396
  matchLineText,
@@ -697,7 +697,7 @@ let SearchEditor = class SearchEditor extends AbstractTextCodeEditor {
697
697
  }
698
698
  }
699
699
  getAriaLabel() {
700
- return this.getInput()?.getName() ?? ( localize(8447, "Search"));
700
+ return this.getInput()?.getName() ?? ( localize(8483, "Search"));
701
701
  }
702
702
  };
703
703
  SearchEditor = SearchEditor_1 = ( (__decorate([
@@ -721,7 +721,7 @@ SearchEditor = SearchEditor_1 = ( (__decorate([
721
721
  ( (__param(18, ILogService))),
722
722
  ( (__param(19, IHoverService)))
723
723
  ], SearchEditor)));
724
- const searchEditorTextInputBorder = registerColor('searchEditor.textInputBorder', inputBorder, ( localize(8448, "Search editor text input box border.")));
724
+ const searchEditorTextInputBorder = registerColor('searchEditor.textInputBorder', inputBorder, ( localize(8484, "Search editor text input box border.")));
725
725
  function findNextRange(matchRanges, currentPosition) {
726
726
  for (const matchRange of matchRanges) {
727
727
  if (Position.isBefore(currentPosition, matchRange.getStartPosition())) {
@@ -29,7 +29,7 @@ import { registerIcon } from 'vscode/vscode/vs/platform/theme/common/iconRegistr
29
29
 
30
30
  var SearchEditorInput_1;
31
31
  const SEARCH_EDITOR_EXT = '.code-search';
32
- const SearchEditorIcon = registerIcon('search-editor-label-icon', Codicon.search, ( localize(8449, 'Icon of the search editor label.')));
32
+ const SearchEditorIcon = registerIcon('search-editor-label-icon', Codicon.search, ( localize(8485, 'Icon of the search editor label.')));
33
33
  let SearchEditorInput = class SearchEditorInput extends EditorInput {
34
34
  static { SearchEditorInput_1 = this; }
35
35
  static { this.ID = SearchEditorInputTypeId; }
@@ -162,16 +162,16 @@ let SearchEditorInput = class SearchEditorInput extends EditorInput {
162
162
  if (this.backingUri) {
163
163
  const originalURI = EditorResourceAccessor.getOriginalUri(this);
164
164
  return ( localize(
165
- 8450,
165
+ 8486,
166
166
  "Search: {0}",
167
167
  basename((originalURI ?? this.backingUri).path, SEARCH_EDITOR_EXT)
168
168
  ));
169
169
  }
170
170
  const query = this._cachedConfigurationModel?.config?.query?.trim();
171
171
  if (query) {
172
- return ( localize(8450, "Search: {0}", trimToMax(query)));
172
+ return ( localize(8486, "Search: {0}", trimToMax(query)));
173
173
  }
174
- return ( localize(8451, "Search"));
174
+ return ( localize(8487, "Search"));
175
175
  }
176
176
  setDirty(dirty) {
177
177
  const wasDirty = this.dirty;
@@ -164,7 +164,7 @@ const extractSearchQueryFromLines = (lines) => {
164
164
  out += '\\';
165
165
  }
166
166
  else {
167
- throw Error(localize(10836, "All backslashes in Query string must be escaped (\\\\)"));
167
+ throw Error(localize(10848, "All backslashes in Query string must be escaped (\\\\)"));
168
168
  }
169
169
  }
170
170
  else {
@@ -210,16 +210,16 @@ const serializeSearchResultForEditor = (searchResult, rawIncludePattern, rawExcl
210
210
  throw Error('Internal Error: Expected query, got null');
211
211
  }
212
212
  const config = contentPatternToSearchConfiguration(searchResult.query, rawIncludePattern, rawExcludePattern, contextLines);
213
- const filecount = searchResult.fileCount() > 1 ? ( localize(10837, "{0} files", searchResult.fileCount())) : ( localize(10838, "1 file"));
214
- const resultcount = searchResult.count() > 1 ? ( localize(10839, "{0} results", searchResult.count())) : ( localize(10840, "1 result"));
213
+ const filecount = searchResult.fileCount() > 1 ? ( localize(10849, "{0} files", searchResult.fileCount())) : ( localize(10850, "1 file"));
214
+ const resultcount = searchResult.count() > 1 ? ( localize(10851, "{0} results", searchResult.count())) : ( localize(10852, "1 result"));
215
215
  const info = [
216
216
  searchResult.count()
217
217
  ? `${resultcount} - ${filecount}`
218
- : ( localize(10841, "No Results")),
218
+ : ( localize(10853, "No Results")),
219
219
  ];
220
220
  if (limitHit) {
221
221
  info.push(( localize(
222
- 10842,
222
+ 10854,
223
223
  "The result set only contains a subset of all matches. Be more specific in your search to narrow down the results."
224
224
  )));
225
225
  }
@@ -79,7 +79,7 @@ let LocalFileSearchWorkerClient = class LocalFileSearchWorkerClient extends Disp
79
79
  return {
80
80
  results: [],
81
81
  messages: [{
82
- text: ( localize(2884, "Unable to search with Web Worker text searcher")), type: TextSearchCompleteMessageType.Warning
82
+ text: ( localize(3366, "Unable to search with Web Worker text searcher")), type: TextSearchCompleteMessageType.Warning
83
83
  }],
84
84
  };
85
85
  }
@@ -116,7 +116,7 @@ let LocalFileSearchWorkerClient = class LocalFileSearchWorkerClient extends Disp
116
116
  return {
117
117
  results: [],
118
118
  messages: [{
119
- text: ( localize(2885, "Unable to search with Web Worker file searcher")), type: TextSearchCompleteMessageType.Warning
119
+ text: ( localize(3367, "Unable to search with Web Worker file searcher")), type: TextSearchCompleteMessageType.Warning
120
120
  }],
121
121
  };
122
122
  }