-
Notifications
You must be signed in to change notification settings - Fork 230
Add support for launching debugging proxy from UI extension #3013
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
8d6bf96 to
9866928
Compare
...Microsoft.AspNetCore.Razor.VSCode.BlazorWasmCompanionExtension/src/LocalDebugProxyManager.ts
Outdated
Show resolved
Hide resolved
...Microsoft.AspNetCore.Razor.VSCode.BlazorWasmCompanionExtension/src/LocalDebugProxyManager.ts
Outdated
Show resolved
Hide resolved
src/Razor/src/Microsoft.AspNetCore.Razor.VSCode.Extension/package.json
Outdated
Show resolved
Hide resolved
...or/src/Microsoft.AspNetCore.Razor.VSCode/src/BlazorDebug/BlazorDebugConfigurationProvider.ts
Show resolved
Hide resolved
ryanbrandenburg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, just some nitpicks and one questions mostly for my own education.
| @@ -0,0 +1,23 @@ | |||
| # Microsoft.AspNetCore.Razor.VSCode.BlazorWasmCompanionExtension | |||
|
|
|||
| This directory contains the code for the Blazor WASM companion extension. This extension is designed to support remote debugging scenarios for Blazor WebAssembly. | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love the informative README.
src/Razor/src/Microsoft.AspNetCore.Razor.VSCode.BlazorWasmCompanionExtension/package.json
Outdated
Show resolved
Hide resolved
...Microsoft.AspNetCore.Razor.VSCode.BlazorWasmCompanionExtension/src/LocalDebugProxyManager.ts
Outdated
Show resolved
Hide resolved
src/Razor/src/Microsoft.AspNetCore.Razor.VSCode.BlazorWasmCompanionExtension/src/extension.ts
Outdated
Show resolved
Hide resolved
src/Razor/src/Microsoft.AspNetCore.Razor.VSCode.BlazorWasmCompanionExtension/src/extension.ts
Outdated
Show resolved
Hide resolved
...or/src/Microsoft.AspNetCore.Razor.VSCode/src/BlazorDebug/BlazorDebugConfigurationProvider.ts
Show resolved
Hide resolved
...or/src/Microsoft.AspNetCore.Razor.VSCode/src/BlazorDebug/BlazorDebugConfigurationProvider.ts
Outdated
Show resolved
Hide resolved
...or/src/Microsoft.AspNetCore.Razor.VSCode/src/BlazorDebug/BlazorDebugConfigurationProvider.ts
Show resolved
Hide resolved
src/Razor/src/Microsoft.AspNetCore.Razor.VSCode.Extension/package.json
Outdated
Show resolved
Hide resolved
src/Razor/src/Microsoft.AspNetCore.Razor.VSCode.BlazorWasmCompanionExtension/src/extension.ts
Outdated
Show resolved
Hide resolved
...Microsoft.AspNetCore.Razor.VSCode.BlazorWasmCompanionExtension/src/LocalDebugProxyManager.ts
Outdated
Show resolved
Hide resolved
...Microsoft.AspNetCore.Razor.VSCode.BlazorWasmCompanionExtension/src/LocalDebugProxyManager.ts
Outdated
Show resolved
Hide resolved
...Microsoft.AspNetCore.Razor.VSCode.BlazorWasmCompanionExtension/src/LocalDebugProxyManager.ts
Outdated
Show resolved
Hide resolved
...Microsoft.AspNetCore.Razor.VSCode.BlazorWasmCompanionExtension/src/LocalDebugProxyManager.ts
Outdated
Show resolved
Hide resolved
src/Razor/src/Microsoft.AspNetCore.Razor.VSCode.BlazorWasmCompanionExtension/README.md
Show resolved
Hide resolved
TanayParikh
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Just some minor comments;
src/Razor/src/Microsoft.AspNetCore.Razor.VSCode.BlazorWasmCompanionExtension/tsconfig.json
Outdated
Show resolved
Hide resolved
...Microsoft.AspNetCore.Razor.VSCode.BlazorWasmCompanionExtension/src/LocalDebugProxyManager.ts
Outdated
Show resolved
Hide resolved
...Microsoft.AspNetCore.Razor.VSCode.BlazorWasmCompanionExtension/src/LocalDebugProxyManager.ts
Outdated
Show resolved
Hide resolved
|
🆙 📅 Made some major changes to this after a convo with @NTaylorMullen:
|
|
Not sure if I missed the context on this, but what's the empty |
Git doesn't commit empty folders sometimes and I wanted this to be included so that devs know it needs to be loaded with content. I decided to change this and added a README that outlines what content it should contain (in addition to the docs that already exist in the extension's README). |
NTaylorMullen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to clarify, this PR purposefully doesn't have the VSIX creation / publish lifecycle bits included right?
src/Razor/src/Microsoft.AspNetCore.Razor.VSCode.BlazorWasmCompanionExtension/package.json
Outdated
Show resolved
Hide resolved
...c/Microsoft.AspNetCore.Razor.VSCode.BlazorWasmCompanionExtension/src/acquireDotnetInstall.ts
Outdated
Show resolved
Hide resolved
...c/Microsoft.AspNetCore.Razor.VSCode.BlazorWasmCompanionExtension/src/acquireDotnetInstall.ts
Show resolved
Hide resolved
src/Razor/src/Microsoft.AspNetCore.Razor.VSCode.BlazorWasmCompanionExtension/package.json
Outdated
Show resolved
Hide resolved
src/Razor/src/Microsoft.AspNetCore.Razor.VSCode.BlazorWasmCompanionExtension/src/extension.ts
Show resolved
Hide resolved
src/Razor/src/Microsoft.AspNetCore.Razor.VSCode.BlazorWasmCompanionExtension/package.json
Show resolved
Hide resolved
src/Razor/src/Microsoft.AspNetCore.Razor.VSCode.BlazorWasmCompanionExtension/package.json
Outdated
Show resolved
Hide resolved
src/Razor/src/Microsoft.AspNetCore.Razor.VSCode.BlazorWasmCompanionExtension/src/extension.ts
Outdated
Show resolved
Hide resolved
...c/Microsoft.AspNetCore.Razor.VSCode.BlazorWasmCompanionExtension/src/acquireDotnetInstall.ts
Outdated
Show resolved
Hide resolved
...c/Microsoft.AspNetCore.Razor.VSCode.BlazorWasmCompanionExtension/src/acquireDotnetInstall.ts
Show resolved
Hide resolved
Correct. This PR is here to get consensus on the implementation of the PR. My plan is to open a separate PR for publishing-related things. |
src/Razor/src/Microsoft.AspNetCore.Razor.VSCode.BlazorWasmCompanionExtension/src/extension.ts
Outdated
Show resolved
Hide resolved
src/Razor/src/Microsoft.AspNetCore.Razor.VSCode.BlazorWasmCompanionExtension/src/extension.ts
Outdated
Show resolved
Hide resolved
NTaylorMullen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Loooks good!
To make sure I have the next steps in my head correctly could you verify this list is correct:
- Meet with O# about adding the dependency & it's implications
- Find the msdotnettools subscription owners and learn what it takes to publish an extension under that publisher
- Implement the publishing logic to create the VSCode extension assets
src/Razor/src/Microsoft.AspNetCore.Razor.VSCode.BlazorWasmCompanionExtension/src/extension.ts
Outdated
Show resolved
Hide resolved
src/Razor/src/Microsoft.AspNetCore.Razor.VSCode.BlazorWasmCompanionExtension/src/extension.ts
Show resolved
Hide resolved
src/Razor/src/Microsoft.AspNetCore.Razor.VSCode.BlazorWasmCompanionExtension/package.json
Outdated
Show resolved
Hide resolved
I've spoken with @JoeRobich a handful of times about this but we can loop in other folks from the extension team for awareness now that the concrete implementation is done.
I already did this. Chatted with Joey and Sarah a while back and they've created a doc about this.
Can you clarify what you mean by this? For publishing, we can use the |
This is just referring to adding the MSBuild logic to aspnetcore-tooling to actually generate a VSIX that we can then publish to the marketplace.
Have you spoken to the management on that side to get buy off? Asking because technically it influences the install experience of O# so we'll need a concrete agreement of what's going to happen.
O could you link? I imagine we'd need to go through some sort of managerial hurdles to get approved to publish another extension under that publisher. |
Summary of the changes
.devcontainer/tasks.jsonto support launching workspace inside dev container (preface all paths with${workspaceFolder}Microsoft.AspNetCore.Razor.VSCode.BlazorWasmCompanionExtensionms-blazorwasm-companion.launchDebugProxyandms-blazorwasm-companion.killDebugProxycommands on the UI extension that can be invoked from the workspaceLocalDebugProxyManagerfor downloading and getting path of debugging proxy package locallyReview Guide
To review this PR, I recommend reading through the changes in
src/Razor/src/Microsoft.AspNetCore.Razor.VSCode/src/BlazorDebug/BlazorDebugConfigurationProvider.tsthen tracing that to the new APIs introduced in the companion extension atsrc/Razor/src/Microsoft.AspNetCore.Razor.VSCode.BlazorWasmCompanionExtension/src/extension.ts.Fixes: dotnet/aspnetcore#22587