Skip to content

Commit c3a4c84

Browse files
set custom table view panel icon (#8)
1 parent 76c70fb commit c3a4c84

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/views/tableView.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
import {
32
Disposable,
43
ViewColumn,
@@ -10,6 +9,8 @@ import {
109
Webview
1110
} from 'vscode';
1211

12+
import * as path from 'path';
13+
1314
import { getUri } from '../utils/fileUtils';
1415

1516
/**
@@ -62,6 +63,11 @@ export class TableView {
6263
enableCommandUris: true // ???
6364
}
6465
);
66+
67+
// set custom table view panel icon
68+
webviewPanel.iconPath = Uri.file(path.join(extensionUri.fsPath, './resources/icons/tabular-data-viewer.svg'));
69+
70+
// set as current table view for now
6571
TableView.currentView = new TableView(webviewPanel, extensionUri);
6672
}
6773
}

0 commit comments

Comments
 (0)