Skip to content

Commit 0511638

Browse files
committed
fix: add missing icon to Java Dashboard webview
Signed-off-by: Fred Bricon <[email protected]>
1 parent 061cd2a commit 0511638

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/dashboard/dashboard.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import { getComputedJavaConfig, getWorkspacePath } from '../extension';
55
import { isLombokSupportEnabled, Lombok } from '../lombokSupport';
66
import { DashboardState, DiagnosticInfo, JVM, UpdateMessage } from '../webviewProtocol/toDashboard';
77
import { getNonce, getUri } from '../webviewUtils';
8+
import { Uri } from 'vscode';
9+
import * as path from 'path';
810

911
const currentState: DashboardState = {
1012
};
@@ -163,8 +165,9 @@ export namespace Dashboard {
163165
enableScripts: true,
164166
enableCommandUris: true,
165167
retainContextWhenHidden: true,
166-
localResourceRoots: [context.extensionUri]
168+
localResourceRoots: [context.extensionUri],
167169
});
170+
webviewPanel.iconPath = Uri.file(path.join(context.extensionPath, 'icons', 'icon128.png'));
168171
dashboardPanel = new DashboardPanel(webviewPanel.webview, context);
169172

170173
webviewPanel.onDidDispose(() => {

0 commit comments

Comments
 (0)