Skip to content

Getting hold of current launch configuration in the extension #23564

@defr0std

Description

@defr0std

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    *out-of-scopePosted issue is not in scope of VS CodeapidebugDebug viewlet, configurations, breakpoints, adapter issuesfeature-requestRequest for new features or functionality

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions