Remove unecessary joinPaths

This commit is contained in:
André Oliveira 2021-08-10 09:19:27 +00:00
parent f4a60e2af3
commit 51a6d2204e

View File

@ -487,13 +487,13 @@ function crateGraph(ctx: Ctx, full: boolean): Cmd {
const dot = await ctx.client.sendRequest(ra.viewCrateGraph, params);
const scripts = [
{ file: vscode.Uri.joinPath(nodeModulesPath, 'd3', 'dist', 'd3.min.js') },
{ file: vscode.Uri.joinPath(nodeModulesPath, '@hpcc-js', 'wasm', 'dist', 'index.min.js'), worker: true },
{ file: vscode.Uri.joinPath(nodeModulesPath, 'd3-graphviz', 'build', 'd3-graphviz.min.js') },
{ file: '/d3/dist/d3.min.js' },
{ file: '/@hpcc-js/wasm/dist/index.min.js', worker: true },
{ file: '/d3-graphviz/build/d3-graphviz.min.js' },
];
const scriptsHtml = scripts.map(({ file, worker }) => {
const uri = panel.webview.asWebviewUri(file);
const uri = panel.webview.asWebviewUri(vscode.Uri.joinPath(nodeModulesPath, file));
return `<script type="${worker ? "javascript/worker" : "text/javascript"}" src="${uri}"></script>`;
}).join("\n");