vscode-azurefunctions
vscode-azurefunctions copied to clipboard
Add restart to the launch config for nodejs projects
Fixes https://github.com/microsoft/vscode-azurefunctions/issues/781 Fixes https://github.com/microsoft/vscode-azurestaticwebapps/issues/573
Tracking for Python: https://github.com/microsoft/vscode-python/issues/15431
We discussed offline if we should retroactively ask users to alter their launch configurations for them, but we decided it was probably going to annoy most current users rather than help them. It's pretty easy for a user to add the restart property to their own launch.json
.
@nturinski ping to check if there is any progress for this PR
Using the latest func CLI tools (3.0.3477) and VS Code (1.58.0) I can confirm that this still doesn't work on MacOS. I need to investigate why this isn't working
On Mac I'm only able to get "restart" to work when I run func start with the following arguments:
func start --javascript --language-worker -- "--inspect=9229"
Confirmed that the workaround doesn't break anything on Windows as well though the command is func start --javascript --language-worker="--inspect=9229"
With this PR, we should change the func host start
task to include those parameters so that "restart" will work on both Windows and Mac.
I'll have to do some more investigation, but we should probably omit the port number to the inspect flag. The port number can be whatever the user defines it to be, and I believe that there is logic in the extension to retrieve the port number dynamically.
I've confirmed that it works without it on Windows and this workaround didn't include it.
Closing due to lack of activity.