@@ -28,6 +28,7 @@ import { ITreeNavigator } from 'vs/base/browser/ui/tree/tree';
2828import { IViewsService } from 'vs/workbench/common/views' ;
2929import { SearchEditorInput } from 'vs/workbench/contrib/searchEditor/browser/searchEditorInput' ;
3030import { SearchEditor } from 'vs/workbench/contrib/searchEditor/browser/searchEditor' ;
31+ import { searchRefreshIcon , searchCollapseAllIcon , searchExpandAllIcon , searchClearIcon , searchReplaceAllIcon , searchReplaceIcon , searchRemoveIcon , searchStopIcon } from 'vs/workbench/contrib/search/browser/searchIcons' ;
3132
3233export function isSearchViewFocused ( viewsService : IViewsService ) : boolean {
3334 const searchView = getSearchView ( viewsService ) ;
@@ -268,7 +269,7 @@ export class RefreshAction extends Action {
268269 constructor ( id : string , label : string ,
269270 @IViewsService private readonly viewsService : IViewsService
270271 ) {
271- super ( id , label , 'search-action codicon-refresh' ) ;
272+ super ( id , label , 'search-action ' + searchRefreshIcon . classNames ) ;
272273 }
273274
274275 get enabled ( ) : boolean {
@@ -298,7 +299,7 @@ export class CollapseDeepestExpandedLevelAction extends Action {
298299 constructor ( id : string , label : string ,
299300 @IViewsService private readonly viewsService : IViewsService
300301 ) {
301- super ( id , label , 'search-action codicon-collapse-all' ) ;
302+ super ( id , label , 'search-action ' + searchCollapseAllIcon . classNames ) ;
302303 this . update ( ) ;
303304 }
304305
@@ -354,7 +355,7 @@ export class ExpandAllAction extends Action {
354355 constructor ( id : string , label : string ,
355356 @IViewsService private readonly viewsService : IViewsService
356357 ) {
357- super ( id , label , 'search-action codicon-expand-all' ) ;
358+ super ( id , label , 'search-action ' + searchExpandAllIcon . classNames ) ;
358359 this . update ( ) ;
359360 }
360361
@@ -438,7 +439,7 @@ export class ClearSearchResultsAction extends Action {
438439 constructor ( id : string , label : string ,
439440 @IViewsService private readonly viewsService : IViewsService
440441 ) {
441- super ( id , label , 'search-action codicon-clear-all' ) ;
442+ super ( id , label , 'search-action ' + searchClearIcon . classNames ) ;
442443 this . update ( ) ;
443444 }
444445
@@ -464,7 +465,7 @@ export class CancelSearchAction extends Action {
464465 constructor ( id : string , label : string ,
465466 @IViewsService private readonly viewsService : IViewsService
466467 ) {
467- super ( id , label , 'search-action codicon-search-stop' ) ;
468+ super ( id , label , 'search-action ' + searchStopIcon . classNames ) ;
468469 this . update ( ) ;
469470 }
470471
@@ -599,7 +600,7 @@ export class RemoveAction extends AbstractSearchAndReplaceAction {
599600 private viewer : WorkbenchObjectTree < RenderableMatch > ,
600601 private element : RenderableMatch
601602 ) {
602- super ( 'remove' , RemoveAction . LABEL , 'codicon-close' ) ;
603+ super ( 'remove' , RemoveAction . LABEL , searchRemoveIcon . classNames ) ;
603604 }
604605
605606 run ( ) : Promise < any > {
@@ -639,7 +640,7 @@ export class ReplaceAllAction extends AbstractSearchAndReplaceAction {
639640 private fileMatch : FileMatch ,
640641 @IKeybindingService keyBindingService : IKeybindingService
641642 ) {
642- super ( Constants . ReplaceAllInFileActionId , appendKeyBindingLabel ( ReplaceAllAction . LABEL , keyBindingService . lookupKeybinding ( Constants . ReplaceAllInFileActionId ) , keyBindingService ) , 'codicon-replace-all' ) ;
643+ super ( Constants . ReplaceAllInFileActionId , appendKeyBindingLabel ( ReplaceAllAction . LABEL , keyBindingService . lookupKeybinding ( Constants . ReplaceAllInFileActionId ) , keyBindingService ) , searchReplaceAllIcon . classNames ) ;
643644 }
644645
645646 run ( ) : Promise < any > {
@@ -663,7 +664,7 @@ export class ReplaceAllInFolderAction extends AbstractSearchAndReplaceAction {
663664 constructor ( private viewer : WorkbenchObjectTree < RenderableMatch > , private folderMatch : FolderMatch ,
664665 @IKeybindingService keyBindingService : IKeybindingService
665666 ) {
666- super ( Constants . ReplaceAllInFolderActionId , appendKeyBindingLabel ( ReplaceAllInFolderAction . LABEL , keyBindingService . lookupKeybinding ( Constants . ReplaceAllInFolderActionId ) , keyBindingService ) , 'codicon-replace-all' ) ;
667+ super ( Constants . ReplaceAllInFolderActionId , appendKeyBindingLabel ( ReplaceAllInFolderAction . LABEL , keyBindingService . lookupKeybinding ( Constants . ReplaceAllInFolderActionId ) , keyBindingService ) , searchReplaceAllIcon . classNames ) ;
667668 }
668669
669670 run ( ) : Promise < any > {
@@ -686,7 +687,7 @@ export class ReplaceAction extends AbstractSearchAndReplaceAction {
686687 @IKeybindingService keyBindingService : IKeybindingService ,
687688 @IEditorService private readonly editorService : IEditorService ,
688689 @IConfigurationService private readonly configurationService : IConfigurationService ) {
689- super ( Constants . ReplaceActionId , appendKeyBindingLabel ( ReplaceAction . LABEL , keyBindingService . lookupKeybinding ( Constants . ReplaceActionId ) , keyBindingService ) , 'codicon-replace' ) ;
690+ super ( Constants . ReplaceActionId , appendKeyBindingLabel ( ReplaceAction . LABEL , keyBindingService . lookupKeybinding ( Constants . ReplaceActionId ) , keyBindingService ) , searchReplaceIcon . classNames ) ;
690691 }
691692
692693 run ( ) : Promise < any > {
0 commit comments