From 98300a37a1b9cae9462320b8e9c6d436d09c2a24 Mon Sep 17 00:00:00 2001 From: ChristopherHX Date: Fri, 25 Oct 2024 21:14:00 +0000 Subject: [PATCH] fix codespaces --- src/runner-server-vscode/index.js | 28 ++++++++++++++++++++++++++-- src/runner-server-vscode/style.css | 6 ++++++ 2 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 src/runner-server-vscode/style.css diff --git a/src/runner-server-vscode/index.js b/src/runner-server-vscode/index.js index f4002603fcb..0a2557d68c8 100644 --- a/src/runner-server-vscode/index.js +++ b/src/runner-server-vscode/index.js @@ -67,12 +67,36 @@ function activate(context) { } ); + const fullWebServerUri = await vscode.env.asExternalUri( + vscode.Uri.parse(address) + ); + var args = [ path.join(context.extensionPath, 'native', 'Runner.Client.dll'), 'startrunner', '--parallel', '4' ]; if(address) { args.push('--server', address) } - vscode.window.createTerminal("runner.client", dotnetPath, args) - panel.webview.html = ``; + setTimeout(() => { + vscode.window.createTerminal("runner.client", dotnetPath, args) + }, 2000); + const cspSource = panel.webview.cspSource; + // Get the content Uri + const style = panel.webview.asWebviewUri( + vscode.Uri.joinPath(context.extensionUri, 'style.css') + ); + panel.webview.html = ` + + + + + + + + + + `; context.subscriptions.push(panel); } }); diff --git a/src/runner-server-vscode/style.css b/src/runner-server-vscode/style.css new file mode 100644 index 00000000000..2f2dde4772e --- /dev/null +++ b/src/runner-server-vscode/style.css @@ -0,0 +1,6 @@ +body { + height: 100%;width: 100%;border: 0;padding: 0; margin: 0;overflow: hidden; +} +iframe { + height: 100vh;width: 100%;border: 0;padding: 0; margin: 0;overflow: hidden; +} \ No newline at end of file