Skip to content

Commit 51a6d22

Browse files
committed
Remove unecessary joinPaths
1 parent f4a60e2 commit 51a6d22

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

editors/code/src/commands.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -487,13 +487,13 @@ function crateGraph(ctx: Ctx, full: boolean): Cmd {
487487
const dot = await ctx.client.sendRequest(ra.viewCrateGraph, params);
488488

489489
const scripts = [
490-
{ file: vscode.Uri.joinPath(nodeModulesPath, 'd3', 'dist', 'd3.min.js') },
491-
{ file: vscode.Uri.joinPath(nodeModulesPath, '@hpcc-js', 'wasm', 'dist', 'index.min.js'), worker: true },
492-
{ file: vscode.Uri.joinPath(nodeModulesPath, 'd3-graphviz', 'build', 'd3-graphviz.min.js') },
490+
{ file: '/d3/dist/d3.min.js' },
491+
{ file: '/@hpcc-js/wasm/dist/index.min.js', worker: true },
492+
{ file: '/d3-graphviz/build/d3-graphviz.min.js' },
493493
];
494494

495495
const scriptsHtml = scripts.map(({ file, worker }) => {
496-
const uri = panel.webview.asWebviewUri(file);
496+
const uri = panel.webview.asWebviewUri(vscode.Uri.joinPath(nodeModulesPath, file));
497497
return `<script type="${worker ? "javascript/worker" : "text/javascript"}" src="${uri}"></script>`;
498498
}).join("\n");
499499

0 commit comments

Comments
 (0)