-
Notifications
You must be signed in to change notification settings - Fork 676
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
If the config looks functional return it, otherwise force VSCode to open config file #2558
Conversation
…pen a configuration file microsoft/vscode#54213
Also this PR will not break the existing vscode stable. fyi @pieandcakes to check if C++ is also relying on this behavior, if yes I can provide a PR also in that repo. |
Codecov Report
@@ Coverage Diff @@
## master #2558 +/- ##
==========================================
+ Coverage 65.04% 65.11% +0.07%
==========================================
Files 98 98
Lines 4248 4248
Branches 612 613 +1
==========================================
+ Hits 2763 2766 +3
+ Misses 1306 1305 -1
+ Partials 179 177 -2
Continue to review full report at Codecov.
|
src/configurationProvider.ts
Outdated
@@ -140,9 +140,9 @@ export class CSharpConfigurationProvider implements vscode.DebugConfigurationPro | |||
config = this.parseEnvFile(config.envFile.replace(/\${workspaceFolder}/g, folder.uri.path), config); |
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.
@isidorn Will VS Code sometimes call this function with a null or undefined config
argument, and so this if statement should be if (config && config.envFile)
?
@gregg-miskelly @WardenGnaw Hi guys. Just a friendly reminder to merge this if possible. We are soon to release a new vscode stable build and it would be cool if this change is part of your extension before that. |
@isidorn I had one question that I was hoping you would answer before I merged this. |
@gregg-miskelly sorry! Somehow I missed the question. No vscode should never call that with a |
Cool. Thanks for confirming. I will commit this as soon as the build rules are satisfied. |
Hi VSCode dev here,
VSCode changed the functionality when to automatically open a launch.json file.
Previosuly if the return configuraiton would not have a
.type
field we would automatically open it, however we decided that the extensions must explictly request this by returningnull
. More details about the change and the motivation behind it can be found heremicrosoft/vscode#54213
It would be great if we could merge this as soon as possible since it creates a regression, more details about it here microsoft/vscode#59487
fyi @gregg-miskelly @DustinCampbell @akshita31
sorry for pinging everyone