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

Allow debugger contributions to specify filenames as well as languages to be default debugger #74671

Open
DanTup opened this issue May 31, 2019 · 2 comments
Assignees
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues feature-request Request for new features or functionality
Milestone

Comments

@DanTup
Copy link
Contributor

DanTup commented May 31, 2019

Currently a debugger can only declare languages that it's default debugger for, but in other places where VS Code allows specifying languages, we can use filename patterns too.

Sometimes users switch to a file that is not in the language they're working on, but an additional file (for example in Dart we have pubspec.yaml and in NodeJS there's package.json). It'd be nice if you switched to package.json to change a dependency and then hit F5, it could invoke the Node JS debugger (and for pubspec.yaml, the Dart one), skipping the prompt.

"contributes": {
  "debuggers": [
    {
      "languages": [
        "dart",
        // Support something like DocumentFilter here?
        // { language: 'json', scheme: 'untitled', pattern: '**/package.json' }
        { pattern: '**/pubspec.yaml' }
      ],
@weinand weinand added debug Debug viewlet, configurations, breakpoints, adapter issues feature-request Request for new features or functionality labels May 31, 2019
@isidorn isidorn added this to the Backlog milestone May 31, 2019
@isidorn isidorn added the *out-of-scope Posted issue is not in scope of VS Code label Oct 9, 2019
@vscodebot
Copy link

vscodebot bot commented Oct 9, 2019

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 Oct 9, 2019
@weinand weinand modified the milestones: Backlog, May 2022 Apr 20, 2022
@weinand weinand removed the *out-of-scope Posted issue is not in scope of VS Code label Apr 20, 2022
@weinand weinand assigned roblourens and unassigned isidorn Apr 20, 2022
@weinand
Copy link
Contributor

weinand commented Apr 20, 2022

As pointed out by @DanTup this feature request is most likely a prereq for #146338

@weinand weinand reopened this Apr 20, 2022
@weinand weinand modified the milestones: May 2022, On Deck May 30, 2022
@weinand weinand removed their assignment Oct 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

4 participants