Remove Codicons references from webview
This commit is contained in:
@@ -55,8 +55,7 @@ export abstract class AbstractInterfaceManager<ToMessage extends WebviewMessage,
|
|||||||
localResourceRoots: [
|
localResourceRoots: [
|
||||||
...(config.additionalOptions?.localResourceRoots ?? []),
|
...(config.additionalOptions?.localResourceRoots ?? []),
|
||||||
Uri.file(tmpDir.name),
|
Uri.file(tmpDir.name),
|
||||||
Uri.file(path.join(ctx.extensionPath, 'out')),
|
Uri.file(path.join(ctx.extensionPath, 'out'))
|
||||||
Uri.file(path.join(ctx.extensionPath, 'node_modules/@vscode/codicons/dist')),
|
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -138,15 +138,8 @@ export function getHtmlForWebview(
|
|||||||
ctx.asAbsolutePath('out/webview.js')
|
ctx.asAbsolutePath('out/webview.js')
|
||||||
);
|
);
|
||||||
|
|
||||||
// Allows use of the VS Code "codicons" icon set.
|
|
||||||
// See https://github.com/microsoft/vscode-codicons
|
|
||||||
const codiconsPathOnDisk = Uri.file(
|
|
||||||
ctx.asAbsolutePath('node_modules/@vscode/codicons/dist/codicon.css')
|
|
||||||
);
|
|
||||||
|
|
||||||
const stylesheetUrisOnDisk = [
|
const stylesheetUrisOnDisk = [
|
||||||
Uri.file(ctx.asAbsolutePath('out/webview.css')),
|
Uri.file(ctx.asAbsolutePath('out/webview.css'))
|
||||||
codiconsPathOnDisk
|
|
||||||
];
|
];
|
||||||
|
|
||||||
// Convert the on-disk URIs into webview URIs.
|
// Convert the on-disk URIs into webview URIs.
|
||||||
|
|||||||
Reference in New Issue
Block a user