Skip to content

Introduce a mechanism that can be used to activate debug extensions just in time  #33258

Description

@weinand

With the new debug API we need to register DebugConfigurationProvider early enough so that VS Code has them available when it needs them.

Since DebugConfigurationProvider are typically registered in the activate function of an extension, we have to find a way to activate the corresponding extensions before debugging starts.

I've tried to use these actions to activate the extension that registers a DebugConfigurationProvider:

    "onCommand:workbench.action.debug.selectandstart",
    "onCommand:workbench.action.debug.configure",
    "onCommand:workbench.action.debug.start",

but most of the time the registration in the extension does not happen in time for VS Code to pick it up. So I had to resort to "*" with the side effect that the extension now starts on startup of VS Code.

So we need a more robust mechanism that allows to activate extensions for registering DebugConfigurationProvider just in time before debugging starts.

@jrieken can provide the details.

Metadata

Metadata

Assignees

Labels

debugDebug viewlet, configurations, breakpoints, adapter issuesfeature-requestRequest for new features or functionalityrelease-notesRelease notes issuesverification-neededVerification of issue is requestedverifiedVerification succeeded

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions