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

Getting hold of current launch configuration in the extension #23564

Closed
defr0std opened this issue Mar 29, 2017 · 4 comments
Closed

Getting hold of current launch configuration in the extension #23564

defr0std opened this issue Mar 29, 2017 · 4 comments
Labels
api debug Debug viewlet, configurations, breakpoints, adapter issues feature-request Request for new features or functionality *out-of-scope Posted issue is not in scope of VS Code
Milestone

Comments

@defr0std
Copy link

Question: is it possible to get hold of the active launch configuration from the extension code?
In other words, get hold of debugService.getViewModel().selectedConfigurationName

In our scenario, launch configurations point to different remote servers with which the users can work. Now, we would like to have another custom extension command which should work with the "current" server.
Therefore I need to get hold of the currently selected configuration name and then I can find the actual configuration myself.

@defr0std defr0std changed the title Getting hold of debugService.getViewModel().selectedConfigurationName in the extension Getting hold of current launch configuration in the extension Mar 29, 2017
@isidorn
Copy link
Contributor

isidorn commented Mar 29, 2017

No, this is currently not possible using the extension api.
Though it is possible to start debugging using the extension api which would set the selected config name to whatever you want.

@isidorn isidorn added debug Debug viewlet, configurations, breakpoints, adapter issues feature-request Request for new features or functionality labels Mar 29, 2017
@isidorn isidorn added this to the Backlog milestone Mar 29, 2017
@isidorn isidorn removed their assignment Mar 29, 2017
@defr0std
Copy link
Author

Thanks, I know about the startDebug action, but that's another thing.
Then I'll vote for this feature request. Extensions should be allowed to get and set the active launch configuration name.

@vscodebot
Copy link

vscodebot bot commented Sep 21, 2018

This iteration we focus on issue grooming. This issue is being closed to keep the number of issues in our inbox on a manageable level, we are closing issues that are not going to be addressed in the foreseeable future: We look at the number of votes the issue has received and the number of duplicate issues filed. More details here. If you disagree and feel that this issue is crucial: We are happy to listen and to reconsider.

If you wonder what we are up to, please see our roadmap and issue reporting guidelines.

Thanks for your understanding and happy coding!

@vscodebot vscodebot bot closed this as completed Sep 21, 2018
@at6ue
Copy link

at6ue commented Aug 28, 2021

I found the same request on #77138

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api debug Debug viewlet, configurations, breakpoints, adapter issues feature-request Request for new features or functionality *out-of-scope Posted issue is not in scope of VS Code
Projects
None yet
Development

No branches or pull requests

4 participants