Skip to content
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

Focus should not auto switch to launch.json when resolveDebugConfiguration api returns undefined #56984

Closed
testforstephen opened this issue Aug 22, 2018 · 6 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues *duplicate Issue identified as a duplicate of another issue(s) verified Verification succeeded

Comments

@testforstephen
Copy link

Currently, in ConfigurationProvider#resolveDebugConfiguration api, if it returns an empty value (e.g. undefined/null), VS Code will not continue the debug (i like this behavior), but in the meanwhile, it switches my focus to launch.json editor automatically. This is a little annoying.

In Java Debugger, we use ConfigurationProvider interface a lot. For example, force an incremental build before launching debug. If the build failed, and the user clicks Abort button, the debugger returns undefined to resolveDebugConfiguration api. See the screenshot below. It switches my focus to newly opened launch.json automatically. The expected behavior is only stopping the debug, not changing my focus.

launch json

@isidorn isidorn added bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues labels Aug 22, 2018
@isidorn isidorn added this to the August 2018 milestone Aug 22, 2018
@octref octref added the verification-steps-needed Steps to verify are needed for verification label Aug 30, 2018
@octref
Copy link
Contributor

octref commented Aug 30, 2018

@isidorn How can I verify this? I tried making a failing preLaunchTask that runs tsc on an invalid ts file, but it's not the same thing.

@testforstephen It would be great if you could verify this is working for you in Insiders: https://code.visualstudio.com/insiders/

@testforstephen
Copy link
Author

this issue still exists in the insider version 2018-08-30 .

@isidorn
Copy link
Contributor

isidorn commented Aug 31, 2018

@testforstephen thanks for trying out, since the issue still exists, reopening and moving to september

@isidorn isidorn reopened this Aug 31, 2018
@isidorn isidorn modified the milestones: August 2018, September 2018 Aug 31, 2018
@octref octref removed the verification-steps-needed Steps to verify are needed for verification label Aug 31, 2018
@weinand
Copy link
Contributor

weinand commented Sep 13, 2018

duplicate of #54213

@weinand weinand closed this as completed Sep 13, 2018
@weinand weinand added the *duplicate Issue identified as a duplicate of another issue(s) label Sep 13, 2018
@weinand
Copy link
Contributor

weinand commented Sep 13, 2018

@testforstephen this should be fixed now in the next Insiders. See #54213.
If you return "undefined" nothing should happen with the editors. If you return "null" then the "launch.json" will be opened.

@testforstephen
Copy link
Author

The insider version below works as expected. Thanks for fix.

1.28.0-insider (system setup)
Commit: 8330a695712c43f861ce5c47533d82637d3cb374
Date: 2018-09-13T11:25:00.283Z
Electron: 2.0.9
Chrome: 61.0.3163.100
Node.js: 8.9.3
V8: 6.1.534.41
Architecture: x64

@weinand weinand added the verified Verification succeeded label Sep 14, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Oct 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues *duplicate Issue identified as a duplicate of another issue(s) verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

4 participants