Skip to content

Commit b8079f5

Browse files
gmartinaqarlosalberto
authored andcommitted
remove file icon enable/disable commands from Comander
1 parent e1b7e26 commit b8079f5

2 files changed

Lines changed: 0 additions & 40 deletions

File tree

package.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -437,14 +437,6 @@
437437
"command": "teroshdl.open",
438438
"title": "Open file with TerosHDL"
439439
},
440-
{
441-
"command": "teroshdl.icons.enable",
442-
"title": "TerosHDL: Enable File Icons"
443-
},
444-
{
445-
"command": "teroshdl.icons.disable",
446-
"title": "TerosHDL: Disable File Icons"
447-
},
448440
{
449441
"command": "teroshdl.configuration.global",
450442
"title": "TerosHDL: Open Global Settings Menu"

src/teroshdl/features/comander/run.ts

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)