diff options
| author | André Oliveira <p32blo@gmail.com> | 2021-08-10 09:19:27 +0000 |
|---|---|---|
| committer | André Oliveira <p32blo@gmail.com> | 2021-08-10 13:43:58 +0000 |
| commit | 51a6d2204e5f14ac324f5d47ccb80f6ad3a2f8ca (patch) | |
| tree | db3354b9dbb4cdb03b82dc37a6a856d5c666dd1d /editors/code/src | |
| parent | f4a60e2af3010d8a4264ce11e41f3add7311dd6c (diff) | |
| download | rust-51a6d2204e5f14ac324f5d47ccb80f6ad3a2f8ca.tar.gz rust-51a6d2204e5f14ac324f5d47ccb80f6ad3a2f8ca.zip | |
Remove unecessary joinPaths
Diffstat (limited to 'editors/code/src')
| -rw-r--r-- | editors/code/src/commands.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/editors/code/src/commands.ts b/editors/code/src/commands.ts index 06252b921ea..8feca520f0c 100644 --- a/editors/code/src/commands.ts +++ b/editors/code/src/commands.ts @@ -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"); |
