@@ -97,7 +97,7 @@ export class NewFileAction extends Action {
9797 @ICommandService private commandService : ICommandService
9898 ) {
9999 super ( 'explorer.newFile' , NEW_FILE_LABEL ) ;
100- this . class = 'explorer-action codicon-new-file' ;
100+ this . class = 'explorer-action ' + Codicon . newFile . classNames ;
101101 this . _register ( explorerService . onDidChangeEditable ( e => {
102102 const elementIsBeingEdited = explorerService . isEditable ( e ) ;
103103 this . enabled = ! elementIsBeingEdited ;
@@ -119,7 +119,7 @@ export class NewFolderAction extends Action {
119119 @ICommandService private commandService : ICommandService
120120 ) {
121121 super ( 'explorer.newFolder' , NEW_FOLDER_LABEL ) ;
122- this . class = 'explorer-action codicon-new-folder' ;
122+ this . class = 'explorer-action ' + Codicon . newFolder . classNames ;
123123 this . _register ( explorerService . onDidChangeEditable ( e => {
124124 const elementIsBeingEdited = explorerService . isEditable ( e ) ;
125125 this . enabled = ! elementIsBeingEdited ;
@@ -670,7 +670,7 @@ export class SaveAllAction extends BaseSaveAllAction {
670670 static readonly LABEL = SAVE_ALL_LABEL ;
671671
672672 get class ( ) : string {
673- return 'explorer-action codicon-save-all' ;
673+ return 'explorer-action ' + Codicon . saveAll . classNames ;
674674 }
675675
676676 protected doRun ( ) : Promise < void > {
@@ -684,7 +684,7 @@ export class SaveAllInGroupAction extends BaseSaveAllAction {
684684 static readonly LABEL = nls . localize ( 'saveAllInGroup' , "Save All in Group" ) ;
685685
686686 get class ( ) : string {
687- return 'explorer-action codicon-save-all' ;
687+ return 'explorer-action ' + Codicon . saveAll . classNames ;
688688 }
689689
690690 protected doRun ( context : unknown ) : Promise < void > {
@@ -759,7 +759,7 @@ export class CollapseExplorerView extends Action {
759759 @IViewletService private readonly viewletService : IViewletService ,
760760 @IExplorerService readonly explorerService : IExplorerService
761761 ) {
762- super ( id , label , 'explorer-action codicon-collapse-all' ) ;
762+ super ( id , label , 'explorer-action ' + Codicon . collapseAll . classNames ) ;
763763 this . _register ( explorerService . onDidChangeEditable ( e => {
764764 const elementIsBeingEdited = explorerService . isEditable ( e ) ;
765765 this . enabled = ! elementIsBeingEdited ;
@@ -786,7 +786,7 @@ export class RefreshExplorerView extends Action {
786786 @IViewletService private readonly viewletService : IViewletService ,
787787 @IExplorerService private readonly explorerService : IExplorerService
788788 ) {
789- super ( id , label , 'explorer-action codicon-refresh' ) ;
789+ super ( id , label , 'explorer-action ' + Codicon . refresh ) ;
790790 this . _register ( explorerService . onDidChangeEditable ( e => {
791791 const elementIsBeingEdited = explorerService . isEditable ( e ) ;
792792 this . enabled = ! elementIsBeingEdited ;
0 commit comments