Skip to content

Allow other Dart framework extensions like Jaspr to suppress debug CodeLenses on main functions #5703

@schultek

Description

@schultek

Hi, I'm looking for help on a problem related to Jaspr projects and the "Run" (and "Debug") code-lens provided for a main() method.

For Jaspr projects, developers need to run the project using the Jaspr tooling in order to work properly, so either the cli or the Jaspr extension. I had a problem recently that a user instead tried to launch it using the "Run" code-lens added by the Dart extension, which then of course didn't work properly.

I wanted to ask if there is any way that I can either:

  • disable the Run code-lens for Jaspr projects - then the Jaspr Extension could add this on their own, or
  • hook into the command that is executed when clicking the code-lens, so that instead of the default dart launch config a jaspr launch config could be started.

Metadata

Metadata

Assignees

No one assigned

    Labels

    in apiRelates to the API exported by the Dart-Code extension for use by other extensions.is enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions