Skip to content

Commit fa4dd08

Browse files
committed
Remove Codicons references from webview
1 parent d2af550 commit fa4dd08

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

extensions/ql-vscode/src/abstract-interface-manager.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@ export abstract class AbstractInterfaceManager<ToMessage extends WebviewMessage,
5555
localResourceRoots: [
5656
...(config.additionalOptions?.localResourceRoots ?? []),
5757
Uri.file(tmpDir.name),
58-
Uri.file(path.join(ctx.extensionPath, 'out')),
59-
Uri.file(path.join(ctx.extensionPath, 'node_modules/@vscode/codicons/dist')),
58+
Uri.file(path.join(ctx.extensionPath, 'out'))
6059
],
6160
}
6261
);

extensions/ql-vscode/src/interface-utils.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -138,15 +138,8 @@ export function getHtmlForWebview(
138138
ctx.asAbsolutePath('out/webview.js')
139139
);
140140

141-
// Allows use of the VS Code "codicons" icon set.
142-
// See https://github.com/microsoft/vscode-codicons
143-
const codiconsPathOnDisk = Uri.file(
144-
ctx.asAbsolutePath('node_modules/@vscode/codicons/dist/codicon.css')
145-
);
146-
147141
const stylesheetUrisOnDisk = [
148-
Uri.file(ctx.asAbsolutePath('out/webview.css')),
149-
codiconsPathOnDisk
142+
Uri.file(ctx.asAbsolutePath('out/webview.css'))
150143
];
151144

152145
// Convert the on-disk URIs into webview URIs.

0 commit comments

Comments
 (0)