@@ -43,8 +43,6 @@ export class Comander {
4343 vscode . commands . registerCommand ( "teroshdl.open" , ( ags ) => this . open_file ( ags ) ) ;
4444 vscode . commands . registerCommand ( "teroshdl.waveform" , ( ags ) => this . open_waveform ( ags ) ) ;
4545 vscode . commands . registerCommand ( "teroshdl.openwebview" , ( ags ) => this . open_webview ( ags , this . report_webview ) ) ;
46- vscode . commands . registerCommand ( "teroshdl.icons.enable" , ( ) => this . enableFileIcons ( ) ) ;
47- vscode . commands . registerCommand ( "teroshdl.icons.disable" , ( ) => this . disableFileIcons ( ) ) ;
4846 }
4947
5048 private open_file ( args : vscode . Uri ) {
@@ -102,34 +100,4 @@ export class Comander {
102100 private open_webview ( args : string , webview : Base_webview ) {
103101 webview . create_webview ( args ) ;
104102 }
105-
106- private async enableFileIcons ( ) {
107- const config = vscode . workspace . getConfiguration ( ) ;
108- await config . update ( 'workbench.iconTheme' , 'teroshdl-icons' , vscode . ConfigurationTarget . Global ) ;
109- await config . update ( 'teroshdl.fileIcons.enabled' , true , vscode . ConfigurationTarget . Global ) ;
110-
111- const action = await vscode . window . showInformationMessage (
112- 'TerosHDL file icons enabled. Reload window to apply changes?' ,
113- 'Reload' ,
114- 'Later'
115- ) ;
116- if ( action === 'Reload' ) {
117- vscode . commands . executeCommand ( 'workbench.action.reloadWindow' ) ;
118- }
119- }
120-
121- private async disableFileIcons ( ) {
122- const config = vscode . workspace . getConfiguration ( ) ;
123- await config . update ( 'workbench.iconTheme' , null , vscode . ConfigurationTarget . Global ) ;
124- await config . update ( 'teroshdl.fileIcons.enabled' , false , vscode . ConfigurationTarget . Global ) ;
125-
126- const action = await vscode . window . showInformationMessage (
127- 'TerosHDL file icons disabled. Reload window to apply changes?' ,
128- 'Reload' ,
129- 'Later'
130- ) ;
131- if ( action === 'Reload' ) {
132- vscode . commands . executeCommand ( 'workbench.action.reloadWindow' ) ;
133- }
134- }
135103}
0 commit comments