Closed triwav closed 5 years ago
I found the issue. When you run a launch configuration from user settings, vscode doesn't know which workspace you are launching it for, so the folder
variable is undefined. That causes this line to fail.
This is fixed, so it should land in the next beta release.
With this specific scenario, I had to code a few different ways to try and get at the workspace folder path.
folder
param if provided (should be present anytime a launch.json debug is started)If the user gets to number 3 and is annoyed at needing to pick the workspace every time they debug, their only recourse is to create a launch.json, but I think that's a fair tradeoff.
This was fixed in languageserver-beta10
You can provide launch configurations in your settings.json file by wrapping in launch key. This works fine in 1.9.0-beta7 but was broken in 8. An example configuration is below.