-
Notifications
You must be signed in to change notification settings - Fork 67
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
Refactor remote debugging commands into common library so we can support functions #522
Conversation
2fa0c50
to
f4366b0
Compare
@mrcrane A lot of the language and functionality seems like it'd still be specific for web apps. Since we don't check the site config, how do we know if the function app supports remote debugging? Do all by default? Are there any plans for enabling remote debugging for Functions in the near future? I want to try and keep code out of our shared package unless it is actively being used by multiple extensions. |
@nturinski Yes my intention is to add support for functions once this PR is completed. This is something we've been talking about but I neglected to properly communicate to your team. I just created an issue covering this plan to give more context: microsoft/vscode-azurefunctions#1344 The intent is that every piece of the code you see in this PR will be used by both functions and web apps. Checking the site config for support is still important but it will be different for web apps and functions, so the implementation will live in the extension code. The associated PR that I mentioned above shows how I am proposing to do this. See |
Even though I believe the functionality is not web app specific, you make a good point about the language. The word "app" is used a lot and may not be appropriate for functions. It is also used throughout My idea was to model this after the |
@mrcrane I think the label is just being used for the output channel name That being said, I noticed that the language is purposely vague. I think we could just do that too.
|
- Change language to remove references to "web app" - Check for explicitly stopped apps
f4366b0
to
c6d454a
Compare
@nturinski
|
Since this is going into the azuretools package, could you localize the strings? Here is an example of how we localize: https://github.com/microsoft/vscode-azuretools/blob/master/appservice/src/editScmType.ts#L33 |
19a28b6
to
64eb62d
Compare
64eb62d
to
1e0b26d
Compare
Sure, I localized all of the strings that can bubble up to the customer in the remote debug commands and in the tunnel proxy. There are still several unlocalized strings in the tunnel proxy code that only logged in the output window and are for low-level diagnostics. I don't think it makes sense to localize them and perhaps some of them should be removed altogether to clean up the output window (in another PR). |
Remote debugging for Azure Functions will be very similar to remote debugging for Azure Functions, since Functions are built on top of the same App Service technology. This PR moves more of the remote debugging code into the vscode-azureappservice library so that Functions can take advantage of it without duplicating code.
This is a rough outline of the steps involved in remote debugging:
See microsoft/vscode-azureappservice#1045 for more details about where the code is coming from and what the changes would be in the extension.