#20 Fix broken vscode extension in devcontainers

This commit is contained in:
visortelle 2023-12-24 18:31:53 +04:00
parent 98ed0b6c99
commit 99640bee0b
No known key found for this signature in database
GPG Key ID: 97026AE67052C507
3 changed files with 38979 additions and 29667 deletions

16605
react-lib/package-lock.json generated

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -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>