mirror of
https://github.com/visortelle/haskell-spotlight.git
synced 2024-07-14 15:20:26 +03:00
#20 Fix broken vscode extension in devcontainers
This commit is contained in:
parent
98ed0b6c99
commit
99640bee0b
16605
react-lib/package-lock.json
generated
16605
react-lib/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
52035
vscode-extension/package-lock.json
generated
52035
vscode-extension/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -25,7 +25,7 @@ function createPanel(context: vscode.ExtensionContext): vscode.WebviewPanel {
|
||||
}
|
||||
);
|
||||
|
||||
panel.webview.html = getWebviewContent(context);
|
||||
panel.webview.html = getWebviewContent(context, panel.webview);
|
||||
|
||||
return panel;
|
||||
}
|
||||
@ -37,13 +37,13 @@ function getColumn(): vscode.ViewColumn {
|
||||
// : undefined;
|
||||
}
|
||||
|
||||
function getWebviewContent(context: vscode.ExtensionContext) {
|
||||
function getWebviewContent(context: vscode.ExtensionContext, webview: vscode.Webview) {
|
||||
const scriptPath = vscode.Uri.joinPath(
|
||||
context.extensionUri,
|
||||
"build",
|
||||
"webview.js"
|
||||
);
|
||||
const scriptUri = scriptPath.with({ scheme: "vscode-resource" });
|
||||
const scriptUri = webview.asWebviewUri(scriptPath);
|
||||
const nonce = getNonce();
|
||||
|
||||
return `<!DOCTYPE html>
|
||||
|
Loading…
Reference in New Issue
Block a user