From cd7e56f92e54ebf9df0a1c9183337b9cd3a9c0a1 Mon Sep 17 00:00:00 2001 From: Safia Abdalla Date: Tue, 9 Feb 2021 16:09:48 -0800 Subject: [PATCH 1/2] Prompt user to install Blazor WASM companion extension if needed --- src/omnisharp/utils.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/omnisharp/utils.ts b/src/omnisharp/utils.ts index 2c02be62b..44caf69b1 100644 --- a/src/omnisharp/utils.ts +++ b/src/omnisharp/utils.ts @@ -240,6 +240,19 @@ async function isBlazorWebAssemblyProject(project: MSBuildProject): Promise { + if (result === 'Install Extension') { + const uriToOpen = vscode.Uri.parse('vscode:extension/ms-dotnettools.blazorwasm-companion'); + await vscode.commands.executeCommand('vscode.open', uriToOpen); + } + }); + return false; + } + const debugJavaScriptConfigSection = vscode.workspace.getConfiguration('debug.javascript'); const usePreviewValue = debugJavaScriptConfigSection.get('usePreview'); if (usePreviewValue) { From d81f22ca99bfbd1cadb79d1f3705bdb4123179e2 Mon Sep 17 00:00:00 2001 From: Safia Abdalla Date: Thu, 11 Feb 2021 11:16:29 -0800 Subject: [PATCH 2/2] Update test plan --- test-plan.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test-plan.md b/test-plan.md index 8867848ca..5e6299111 100644 --- a/test-plan.md +++ b/test-plan.md @@ -236,6 +236,12 @@ To setup a test project to verify on you can do: ##### Debugging with blazorwasm debug adapter +**Note:** On a VS Code installation with no extensions, you should recieve an alert like the following: + +> The Blazor WASM Debugging Extension is required to debug Blazor WASM apps in VS Code. + +Press "Install Extension" before step 2 in each of the test scenarios below. + ###### Standalone app To set up a test project to verify on, create a new Blazor WebAssembly application using the dotnet CLI.