Skip to content

Commit

Permalink
new Uri.joinPath
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-dolejsi committed Mar 14, 2021
1 parent 3b7ef53 commit c3ef347
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/webviewUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export interface WebViewHtmlOptions {
}

function getWebviewUri(extensionContext: ExtensionContext, relativePath: string, fileName: string, webview?: Webview): Uri {
return asWebviewUri(Uri.file(extensionContext.asAbsolutePath(path.join(relativePath, fileName))), webview);
return asWebviewUri(Uri.joinPath(extensionContext.extensionUri, relativePath, fileName), webview);
}

function getAbsoluteWebviewUri(extensionContext: ExtensionContext, webview: Webview, options: WebViewHtmlOptions, uri: Uri): Uri {
Expand Down

0 comments on commit c3ef347

Please sign in to comment.