@codingame/monaco-vscode-search-service-override 4.5.1 → 4.5.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 (26) hide show
  1. package/package.json +2 -2
  2. package/vscode/src/vs/workbench/contrib/search/browser/anythingQuickAccess.js +82 -120
  3. package/vscode/src/vs/workbench/contrib/search/browser/patternInputWidget.js +29 -40
  4. package/vscode/src/vs/workbench/contrib/search/browser/quickTextSearch/textSearchQuickAccess.js +21 -44
  5. package/vscode/src/vs/workbench/contrib/search/browser/replaceService.js +34 -35
  6. package/vscode/src/vs/workbench/contrib/search/browser/search.contribution.js +132 -217
  7. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsCopy.js +8 -19
  8. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsNav.js +46 -131
  9. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsRemoveReplace.js +24 -42
  10. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsSymbol.js +4 -15
  11. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsTextQuickAccess.js +2 -5
  12. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsTopBar.js +52 -61
  13. package/vscode/src/vs/workbench/contrib/search/browser/searchFindInput.js +6 -13
  14. package/vscode/src/vs/workbench/contrib/search/browser/searchIcons.js +22 -97
  15. package/vscode/src/vs/workbench/contrib/search/browser/searchMessage.js +5 -9
  16. package/vscode/src/vs/workbench/contrib/search/browser/searchResultsView.js +53 -104
  17. package/vscode/src/vs/workbench/contrib/search/browser/searchView.js +168 -282
  18. package/vscode/src/vs/workbench/contrib/search/browser/searchWidget.js +52 -81
  19. package/vscode/src/vs/workbench/contrib/search/browser/symbolsQuickAccess.js +14 -25
  20. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditor.contribution.js +38 -120
  21. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditor.js +50 -79
  22. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorActions.js +1 -1
  23. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorInput.js +30 -40
  24. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorSerialization.js +21 -42
  25. package/vscode/src/vs/workbench/services/search/browser/searchService.js +29 -36
  26. package/vscode/src/vs/workbench/services/search/common/searchService.js +3 -3
@@ -11,15 +11,12 @@ import { registerAction2, Action2, MenuId } from 'vscode/vscode/vs/platform/acti
11
11
  import { SearchStateKey, SearchUIState } from 'vscode/vscode/vs/workbench/contrib/search/common/search';
12
12
  import { category, getSearchView } from 'vscode/vscode/vs/workbench/contrib/search/browser/searchActionsBase';
13
13
 
14
+ const _moduleId = "vs/workbench/contrib/search/browser/searchActionsTopBar";
14
15
  registerAction2(class ClearSearchHistoryCommandAction extends Action2 {
15
16
  constructor() {
16
17
  super({
17
18
  id: "search.action.clearHistory" ,
18
- title: ( localize2WithPath(
19
- 'vs/workbench/contrib/search/browser/searchActionsTopBar',
20
- 'clearSearchHistoryLabel',
21
- "Clear Search History"
22
- )),
19
+ title: ( localize2WithPath(_moduleId, 0, "Clear Search History")),
23
20
  category,
24
21
  f1: true
25
22
  });
@@ -32,25 +29,24 @@ registerAction2(class CancelSearchAction extends Action2 {
32
29
  constructor() {
33
30
  super({
34
31
  id: "search.action.cancel" ,
35
- title: ( localize2WithPath(
36
- 'vs/workbench/contrib/search/browser/searchActionsTopBar',
37
- 'CancelSearchAction.label',
38
- "Cancel Search"
39
- )),
32
+ title: ( localize2WithPath(_moduleId, 1, "Cancel Search")),
40
33
  icon: searchStopIcon,
41
34
  category,
42
35
  f1: true,
43
- precondition: ( ( SearchStateKey.isEqualTo(SearchUIState.Idle)).negate()),
36
+ precondition: ( (( (SearchStateKey.isEqualTo(SearchUIState.Idle))).negate())),
44
37
  keybinding: {
45
38
  weight: 200 ,
46
- when: ( ContextKeyExpr.and(SearchContext.SearchViewVisibleKey, WorkbenchListFocusContextKey)),
39
+ when: ( (ContextKeyExpr.and(SearchContext.SearchViewVisibleKey, WorkbenchListFocusContextKey))),
47
40
  primary: 9 ,
48
41
  },
49
42
  menu: [{
50
43
  id: MenuId.ViewTitle,
51
44
  group: 'navigation',
52
45
  order: 0,
53
- when: ( ContextKeyExpr.and(( ContextKeyExpr.equals('view', VIEW_ID)), ( SearchStateKey.isEqualTo(SearchUIState.SlowSearch)))),
46
+ when: ( (ContextKeyExpr.and(
47
+ (ContextKeyExpr.equals('view', VIEW_ID)),
48
+ (SearchStateKey.isEqualTo(SearchUIState.SlowSearch))
49
+ ))),
54
50
  }]
55
51
  });
56
52
  }
@@ -62,11 +58,7 @@ registerAction2(class RefreshAction extends Action2 {
62
58
  constructor() {
63
59
  super({
64
60
  id: "search.action.refreshSearchResults" ,
65
- title: ( localize2WithPath(
66
- 'vs/workbench/contrib/search/browser/searchActionsTopBar',
67
- 'RefreshAction.label',
68
- "Refresh"
69
- )),
61
+ title: ( localize2WithPath(_moduleId, 2, "Refresh")),
70
62
  icon: searchRefreshIcon,
71
63
  precondition: SearchContext.ViewHasSearchPatternKey,
72
64
  category,
@@ -75,7 +67,10 @@ registerAction2(class RefreshAction extends Action2 {
75
67
  id: MenuId.ViewTitle,
76
68
  group: 'navigation',
77
69
  order: 0,
78
- when: ( ContextKeyExpr.and(( ContextKeyExpr.equals('view', VIEW_ID)), ( ( SearchStateKey.isEqualTo(SearchUIState.SlowSearch)).negate()))),
70
+ when: ( (ContextKeyExpr.and(
71
+ (ContextKeyExpr.equals('view', VIEW_ID)),
72
+ (( (SearchStateKey.isEqualTo(SearchUIState.SlowSearch))).negate())
73
+ ))),
79
74
  }]
80
75
  });
81
76
  }
@@ -87,23 +82,22 @@ registerAction2(class CollapseDeepestExpandedLevelAction extends Action2 {
87
82
  constructor() {
88
83
  super({
89
84
  id: "search.action.collapseSearchResults" ,
90
- title: ( localize2WithPath(
91
- 'vs/workbench/contrib/search/browser/searchActionsTopBar',
92
- 'CollapseDeepestExpandedLevelAction.label',
93
- "Collapse All"
94
- )),
85
+ title: ( localize2WithPath(_moduleId, 3, "Collapse All")),
95
86
  category,
96
87
  icon: searchCollapseAllIcon,
97
88
  f1: true,
98
- precondition: ( ContextKeyExpr.and(
99
- SearchContext.HasSearchResults,
100
- SearchContext.ViewHasSomeCollapsibleKey
101
- )),
89
+ precondition: ( (ContextKeyExpr.and(SearchContext.HasSearchResults, SearchContext.ViewHasSomeCollapsibleKey))),
102
90
  menu: [{
103
91
  id: MenuId.ViewTitle,
104
92
  group: 'navigation',
105
93
  order: 4,
106
- when: ( ContextKeyExpr.and(( ContextKeyExpr.equals('view', VIEW_ID)), ( ContextKeyExpr.or(( SearchContext.HasSearchResults.negate()), SearchContext.ViewHasSomeCollapsibleKey)))),
94
+ when: ( (ContextKeyExpr.and(
95
+ (ContextKeyExpr.equals('view', VIEW_ID)),
96
+ (ContextKeyExpr.or(
97
+ (SearchContext.HasSearchResults.negate()),
98
+ SearchContext.ViewHasSomeCollapsibleKey
99
+ ))
100
+ ))),
107
101
  }]
108
102
  });
109
103
  }
@@ -115,20 +109,23 @@ registerAction2(class ExpandAllAction extends Action2 {
115
109
  constructor() {
116
110
  super({
117
111
  id: "search.action.expandSearchResults" ,
118
- title: ( localize2WithPath(
119
- 'vs/workbench/contrib/search/browser/searchActionsTopBar',
120
- 'ExpandAllAction.label',
121
- "Expand All"
122
- )),
112
+ title: ( localize2WithPath(_moduleId, 4, "Expand All")),
123
113
  category,
124
114
  icon: searchExpandAllIcon,
125
115
  f1: true,
126
- precondition: ( ContextKeyExpr.and(SearchContext.HasSearchResults, ( SearchContext.ViewHasSomeCollapsibleKey.toNegated()))),
116
+ precondition: ( (ContextKeyExpr.and(
117
+ SearchContext.HasSearchResults,
118
+ (SearchContext.ViewHasSomeCollapsibleKey.toNegated())
119
+ ))),
127
120
  menu: [{
128
121
  id: MenuId.ViewTitle,
129
122
  group: 'navigation',
130
123
  order: 4,
131
- when: ( ContextKeyExpr.and(( ContextKeyExpr.equals('view', VIEW_ID)), SearchContext.HasSearchResults, ( SearchContext.ViewHasSomeCollapsibleKey.toNegated()))),
124
+ when: ( (ContextKeyExpr.and(
125
+ (ContextKeyExpr.equals('view', VIEW_ID)),
126
+ SearchContext.HasSearchResults,
127
+ (SearchContext.ViewHasSomeCollapsibleKey.toNegated())
128
+ ))),
132
129
  }]
133
130
  });
134
131
  }
@@ -140,25 +137,21 @@ registerAction2(class ClearSearchResultsAction extends Action2 {
140
137
  constructor() {
141
138
  super({
142
139
  id: "search.action.clearSearchResults" ,
143
- title: ( localize2WithPath(
144
- 'vs/workbench/contrib/search/browser/searchActionsTopBar',
145
- 'ClearSearchResultsAction.label',
146
- "Clear Search Results"
147
- )),
140
+ title: ( localize2WithPath(_moduleId, 5, "Clear Search Results")),
148
141
  category,
149
142
  icon: searchClearIcon,
150
143
  f1: true,
151
- precondition: ( ContextKeyExpr.or(
144
+ precondition: ( (ContextKeyExpr.or(
152
145
  SearchContext.HasSearchResults,
153
146
  SearchContext.ViewHasSearchPatternKey,
154
147
  SearchContext.ViewHasReplacePatternKey,
155
148
  SearchContext.ViewHasFilePatternKey
156
- )),
149
+ ))),
157
150
  menu: [{
158
151
  id: MenuId.ViewTitle,
159
152
  group: 'navigation',
160
153
  order: 1,
161
- when: ( ContextKeyExpr.equals('view', VIEW_ID)),
154
+ when: ( (ContextKeyExpr.equals('view', VIEW_ID))),
162
155
  }]
163
156
  });
164
157
  }
@@ -170,20 +163,22 @@ registerAction2(class ViewAsTreeAction extends Action2 {
170
163
  constructor() {
171
164
  super({
172
165
  id: "search.action.viewAsTree" ,
173
- title: ( localize2WithPath(
174
- 'vs/workbench/contrib/search/browser/searchActionsTopBar',
175
- 'ViewAsTreeAction.label',
176
- "View as Tree"
177
- )),
166
+ title: ( localize2WithPath(_moduleId, 6, "View as Tree")),
178
167
  category,
179
168
  icon: searchShowAsList,
180
169
  f1: true,
181
- precondition: ( ContextKeyExpr.and(SearchContext.HasSearchResults, ( SearchContext.InTreeViewKey.toNegated()))),
170
+ precondition: ( (ContextKeyExpr.and(
171
+ SearchContext.HasSearchResults,
172
+ (SearchContext.InTreeViewKey.toNegated())
173
+ ))),
182
174
  menu: [{
183
175
  id: MenuId.ViewTitle,
184
176
  group: 'navigation',
185
177
  order: 2,
186
- when: ( ContextKeyExpr.and(( ContextKeyExpr.equals('view', VIEW_ID)), ( SearchContext.InTreeViewKey.toNegated()))),
178
+ when: ( (ContextKeyExpr.and(
179
+ (ContextKeyExpr.equals('view', VIEW_ID)),
180
+ (SearchContext.InTreeViewKey.toNegated())
181
+ ))),
187
182
  }]
188
183
  });
189
184
  }
@@ -198,23 +193,19 @@ registerAction2(class ViewAsListAction extends Action2 {
198
193
  constructor() {
199
194
  super({
200
195
  id: "search.action.viewAsList" ,
201
- title: ( localize2WithPath(
202
- 'vs/workbench/contrib/search/browser/searchActionsTopBar',
203
- 'ViewAsListAction.label',
204
- "View as List"
205
- )),
196
+ title: ( localize2WithPath(_moduleId, 7, "View as List")),
206
197
  category,
207
198
  icon: searchShowAsTree,
208
199
  f1: true,
209
- precondition: ( ContextKeyExpr.and(
210
- SearchContext.HasSearchResults,
211
- SearchContext.InTreeViewKey
212
- )),
200
+ precondition: ( (ContextKeyExpr.and(SearchContext.HasSearchResults, SearchContext.InTreeViewKey))),
213
201
  menu: [{
214
202
  id: MenuId.ViewTitle,
215
203
  group: 'navigation',
216
204
  order: 2,
217
- when: ( ContextKeyExpr.and(( ContextKeyExpr.equals('view', VIEW_ID)), SearchContext.InTreeViewKey)),
205
+ when: ( (ContextKeyExpr.and(
206
+ (ContextKeyExpr.equals('view', VIEW_ID)),
207
+ SearchContext.InTreeViewKey
208
+ ))),
218
209
  }]
219
210
  });
220
211
  }
@@ -6,11 +6,8 @@ import { getDefaultHoverDelegate } from 'vscode/vscode/vs/base/browser/ui/hover/
6
6
  import { Toggle } from 'vscode/vscode/vs/base/browser/ui/toggle/toggle';
7
7
  import { Emitter } from 'vscode/vscode/vs/base/common/event';
8
8
 
9
- const NLS_AI_TOGGLE_LABEL = ( localizeWithPath(
10
- 'vs/workbench/contrib/search/browser/searchFindInput',
11
- 'aiDescription',
12
- "Use AI"
13
- ));
9
+ const _moduleId = "vs/workbench/contrib/search/browser/searchFindInput";
10
+ const NLS_AI_TOGGLE_LABEL = ( localizeWithPath(_moduleId, 0, "Use AI"));
14
11
  class SearchFindInput extends ContextScopedFindInput {
15
12
  constructor(container, contextViewProvider, options, contextKeyService, contextMenuService, instantiationService, filters, _shouldShowAIButton,
16
13
  filterStartVisiblitity) {
@@ -21,18 +18,14 @@ class SearchFindInput extends ContextScopedFindInput {
21
18
  this._shouldShowAIButton = _shouldShowAIButton;
22
19
  this._filterChecked = false;
23
20
  this._visible = false;
24
- this._onDidChangeAIToggle = this._register(( new Emitter()));
21
+ this._onDidChangeAIToggle = this._register(( (new Emitter())));
25
22
  this.onDidChangeAIToggle = this._onDidChangeAIToggle.event;
26
- this._findFilter = this._register(( new NotebookFindInputFilterButton(filters, contextMenuService, instantiationService, options, ( localizeWithPath(
27
- 'vs/workbench/contrib/search/browser/searchFindInput',
28
- 'searchFindInputNotebookFilter.label',
29
- "Notebook Find Filters"
30
- )))));
31
- this._aiButton = this._register(( new AIToggle({
23
+ this._findFilter = this._register(( (new NotebookFindInputFilterButton(filters, contextMenuService, instantiationService, options, ( localizeWithPath(_moduleId, 1, "Notebook Find Filters"))))));
24
+ this._aiButton = this._register(( (new AIToggle({
32
25
  appendTitle: '',
33
26
  isChecked: false,
34
27
  ...options.toggleStyles
35
- })));
28
+ }))));
36
29
  this.setAdditionalToggles([this._aiButton]);
37
30
  this.inputBox.paddingRight = (this.caseSensitive?.width() ?? 0) + (this.wholeWords?.width() ?? 0) + (this.regex?.width() ?? 0) + this._findFilter.width;
38
31
  this.controls.appendChild(this._findFilter.container);
@@ -2,105 +2,30 @@ import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
2
2
  import { localizeWithPath } from 'vscode/vscode/vs/nls';
3
3
  import { registerIcon } from 'vscode/vscode/vs/platform/theme/common/iconRegistry';
4
4
 
5
- const searchDetailsIcon = registerIcon('search-details', Codicon.ellipsis, ( localizeWithPath(
6
- 'vs/workbench/contrib/search/browser/searchIcons',
7
- 'searchDetailsIcon',
8
- 'Icon to make search details visible.'
9
- )));
10
- const searchActivityBarIcon = registerIcon('search-see-more', Codicon.linkExternal, ( localizeWithPath(
11
- 'vs/workbench/contrib/search/browser/searchIcons',
12
- 'searchSeeMoreIcon',
13
- 'Icon to view more context in the search view.'
14
- )));
15
- const searchShowContextIcon = registerIcon('search-show-context', Codicon.listSelection, ( localizeWithPath(
16
- 'vs/workbench/contrib/search/browser/searchIcons',
17
- 'searchShowContextIcon',
18
- 'Icon for toggle the context in the search editor.'
19
- )));
20
- const searchHideReplaceIcon = registerIcon('search-hide-replace', Codicon.chevronRight, ( localizeWithPath(
21
- 'vs/workbench/contrib/search/browser/searchIcons',
22
- 'searchHideReplaceIcon',
23
- 'Icon to collapse the replace section in the search view.'
24
- )));
25
- const searchShowReplaceIcon = registerIcon('search-show-replace', Codicon.chevronDown, ( localizeWithPath(
26
- 'vs/workbench/contrib/search/browser/searchIcons',
27
- 'searchShowReplaceIcon',
28
- 'Icon to expand the replace section in the search view.'
29
- )));
30
- const searchReplaceAllIcon = registerIcon('search-replace-all', Codicon.replaceAll, ( localizeWithPath(
31
- 'vs/workbench/contrib/search/browser/searchIcons',
32
- 'searchReplaceAllIcon',
33
- 'Icon for replace all in the search view.'
34
- )));
35
- const searchReplaceIcon = registerIcon('search-replace', Codicon.replace, ( localizeWithPath(
36
- 'vs/workbench/contrib/search/browser/searchIcons',
37
- 'searchReplaceIcon',
38
- 'Icon for replace in the search view.'
39
- )));
40
- const searchRemoveIcon = registerIcon('search-remove', Codicon.close, ( localizeWithPath(
41
- 'vs/workbench/contrib/search/browser/searchIcons',
42
- 'searchRemoveIcon',
43
- 'Icon to remove a search result.'
44
- )));
45
- const searchRefreshIcon = registerIcon('search-refresh', Codicon.refresh, ( localizeWithPath(
46
- 'vs/workbench/contrib/search/browser/searchIcons',
47
- 'searchRefreshIcon',
48
- 'Icon for refresh in the search view.'
49
- )));
50
- const searchCollapseAllIcon = registerIcon('search-collapse-results', Codicon.collapseAll, ( localizeWithPath(
51
- 'vs/workbench/contrib/search/browser/searchIcons',
52
- 'searchCollapseAllIcon',
53
- 'Icon for collapse results in the search view.'
54
- )));
55
- const searchExpandAllIcon = registerIcon('search-expand-results', Codicon.expandAll, ( localizeWithPath(
56
- 'vs/workbench/contrib/search/browser/searchIcons',
57
- 'searchExpandAllIcon',
58
- 'Icon for expand results in the search view.'
59
- )));
60
- const searchShowAsTree = registerIcon('search-tree', Codicon.listTree, ( localizeWithPath(
61
- 'vs/workbench/contrib/search/browser/searchIcons',
62
- 'searchShowAsTree',
63
- 'Icon for viewing results as a tree in the search view.'
64
- )));
65
- const searchShowAsList = registerIcon('search-list', Codicon.listFlat, ( localizeWithPath(
66
- 'vs/workbench/contrib/search/browser/searchIcons',
67
- 'searchShowAsList',
68
- 'Icon for viewing results as a list in the search view.'
69
- )));
70
- const searchClearIcon = registerIcon('search-clear-results', Codicon.clearAll, ( localizeWithPath(
71
- 'vs/workbench/contrib/search/browser/searchIcons',
72
- 'searchClearIcon',
73
- 'Icon for clear results in the search view.'
74
- )));
75
- const searchStopIcon = registerIcon('search-stop', Codicon.searchStop, ( localizeWithPath(
76
- 'vs/workbench/contrib/search/browser/searchIcons',
77
- 'searchStopIcon',
78
- 'Icon for stop in the search view.'
79
- )));
80
- const searchViewIcon = registerIcon('search-view-icon', Codicon.search, ( localizeWithPath(
81
- 'vs/workbench/contrib/search/browser/searchIcons',
82
- 'searchViewIcon',
83
- 'View icon of the search view.'
84
- )));
85
- const searchNewEditorIcon = registerIcon('search-new-editor', Codicon.newFile, ( localizeWithPath(
86
- 'vs/workbench/contrib/search/browser/searchIcons',
87
- 'searchNewEditorIcon',
88
- 'Icon for the action to open a new search editor.'
89
- )));
5
+ const _moduleId = "vs/workbench/contrib/search/browser/searchIcons";
6
+ const searchDetailsIcon = registerIcon('search-details', Codicon.ellipsis, ( localizeWithPath(_moduleId, 0, 'Icon to make search details visible.')));
7
+ const searchActivityBarIcon = registerIcon('search-see-more', Codicon.linkExternal, ( localizeWithPath(_moduleId, 1, 'Icon to view more context in the search view.')));
8
+ const searchShowContextIcon = registerIcon('search-show-context', Codicon.listSelection, ( localizeWithPath(_moduleId, 2, 'Icon for toggle the context in the search editor.')));
9
+ const searchHideReplaceIcon = registerIcon('search-hide-replace', Codicon.chevronRight, ( localizeWithPath(_moduleId, 3, 'Icon to collapse the replace section in the search view.')));
10
+ const searchShowReplaceIcon = registerIcon('search-show-replace', Codicon.chevronDown, ( localizeWithPath(_moduleId, 4, 'Icon to expand the replace section in the search view.')));
11
+ const searchReplaceAllIcon = registerIcon('search-replace-all', Codicon.replaceAll, ( localizeWithPath(_moduleId, 5, 'Icon for replace all in the search view.')));
12
+ const searchReplaceIcon = registerIcon('search-replace', Codicon.replace, ( localizeWithPath(_moduleId, 6, 'Icon for replace in the search view.')));
13
+ const searchRemoveIcon = registerIcon('search-remove', Codicon.close, ( localizeWithPath(_moduleId, 7, 'Icon to remove a search result.')));
14
+ const searchRefreshIcon = registerIcon('search-refresh', Codicon.refresh, ( localizeWithPath(_moduleId, 8, 'Icon for refresh in the search view.')));
15
+ const searchCollapseAllIcon = registerIcon('search-collapse-results', Codicon.collapseAll, ( localizeWithPath(_moduleId, 9, 'Icon for collapse results in the search view.')));
16
+ const searchExpandAllIcon = registerIcon('search-expand-results', Codicon.expandAll, ( localizeWithPath(_moduleId, 10, 'Icon for expand results in the search view.')));
17
+ const searchShowAsTree = registerIcon('search-tree', Codicon.listTree, ( localizeWithPath(_moduleId, 11, 'Icon for viewing results as a tree in the search view.')));
18
+ const searchShowAsList = registerIcon('search-list', Codicon.listFlat, ( localizeWithPath(_moduleId, 12, 'Icon for viewing results as a list in the search view.')));
19
+ const searchClearIcon = registerIcon('search-clear-results', Codicon.clearAll, ( localizeWithPath(_moduleId, 13, 'Icon for clear results in the search view.')));
20
+ const searchStopIcon = registerIcon('search-stop', Codicon.searchStop, ( localizeWithPath(_moduleId, 14, 'Icon for stop in the search view.')));
21
+ const searchViewIcon = registerIcon('search-view-icon', Codicon.search, ( localizeWithPath(_moduleId, 15, 'View icon of the search view.')));
22
+ const searchNewEditorIcon = registerIcon('search-new-editor', Codicon.newFile, ( localizeWithPath(_moduleId, 16, 'Icon for the action to open a new search editor.')));
90
23
  const searchOpenInFileIcon = registerIcon('search-open-in-file', Codicon.goToFile, ( localizeWithPath(
91
- 'vs/workbench/contrib/search/browser/searchIcons',
92
- 'searchOpenInFile',
24
+ _moduleId,
25
+ 17,
93
26
  'Icon for the action to go to the file of the current search result.'
94
27
  )));
95
- registerIcon('search-sparkle-filled', Codicon.sparkleFilled, ( localizeWithPath(
96
- 'vs/workbench/contrib/search/browser/searchIcons',
97
- 'searchSparkleFilled',
98
- 'Icon to show AI results in search.'
99
- )));
100
- registerIcon('search-sparkle-empty', Codicon.sparkle, ( localizeWithPath(
101
- 'vs/workbench/contrib/search/browser/searchIcons',
102
- 'searchSparkleEmpty',
103
- 'Icon to hide AI results in search.'
104
- )));
28
+ registerIcon('search-sparkle-filled', Codicon.sparkleFilled, ( localizeWithPath(_moduleId, 18, 'Icon to show AI results in search.')));
29
+ registerIcon('search-sparkle-empty', Codicon.sparkle, ( localizeWithPath(_moduleId, 19, 'Icon to hide AI results in search.')));
105
30
 
106
31
  export { searchActivityBarIcon, searchClearIcon, searchCollapseAllIcon, searchDetailsIcon, searchExpandAllIcon, searchHideReplaceIcon, searchNewEditorIcon, searchOpenInFileIcon, searchRefreshIcon, searchRemoveIcon, searchReplaceAllIcon, searchReplaceIcon, searchShowAsList, searchShowAsTree, searchShowContextIcon, searchShowReplaceIcon, searchStopIcon, searchViewIcon };
@@ -8,6 +8,7 @@ import { Schemas } from 'vscode/vscode/vs/base/common/network';
8
8
  import { Link } from 'vscode/vscode/vs/platform/opener/browser/link';
9
9
  import { URI } from 'vscode/vscode/vs/base/common/uri';
10
10
 
11
+ const _moduleId = "vs/workbench/contrib/search/browser/searchMessage";
11
12
  const renderSearchMessage = (message, instantiationService, notificationService, openerService, commandService, disposableStore, triggerSearch) => {
12
13
  const div = $('div.providerMessage');
13
14
  const linkedText = parseLinkedText(message.text);
@@ -27,7 +28,7 @@ const renderSearchMessage = (message, instantiationService, notificationService,
27
28
  if (!message.trusted) {
28
29
  return;
29
30
  }
30
- const parsed = ( URI.parse(href, true));
31
+ const parsed = ( (URI.parse(href, true)));
31
32
  if (parsed.scheme === Schemas.command && message.trusted) {
32
33
  const result = await commandService.executeCommand(parsed.path);
33
34
  if (result?.triggerSearch) {
@@ -40,19 +41,14 @@ const renderSearchMessage = (message, instantiationService, notificationService,
40
41
  else {
41
42
  if (parsed.scheme === Schemas.command && !message.trusted) {
42
43
  notificationService.error(( localizeWithPath(
43
- 'vs/workbench/contrib/search/browser/searchMessage',
44
- 'unable to open trust',
44
+ _moduleId,
45
+ 0,
45
46
  "Unable to open command link from untrusted source: {0}",
46
47
  href
47
48
  )));
48
49
  }
49
50
  else {
50
- notificationService.error(( localizeWithPath(
51
- 'vs/workbench/contrib/search/browser/searchMessage',
52
- 'unable to open',
53
- "Unable to open unknown link: {0}",
54
- href
55
- )));
51
+ notificationService.error(( localizeWithPath(_moduleId, 1, "Unable to open unknown link: {0}", href)));
56
52
  }
57
53
  }
58
54
  }