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

[Feature request] Make a version of executorMapByGlob that matches files' full paths instead #1113

Open
the-chenergy opened this issue Mar 17, 2024 · 0 comments

Comments

@the-chenergy
Copy link

Code Runner currently provides executorMapByGlob, which is a useful option that lets me define different run commands for files with the same extension like this:

{
  "code-runner.executorMapByGlob": {
    "*_test.py": "some-run-test-command $fullFileName",
    "*.py": "some-run-normal-code-command $fullFileName"
  }
}

However, it would be even more helpful if Code Runner could also match the full path of a file (not just the base name) to a glob pattern. This can be done by either

  • Making the existing executorMapByGlob option match the full path instead, or
  • Making a separate new command to do that, for instance like this:
    {
      "code-runner.executorMapByFullPathGlob": {
        "**/tests/**/*.py": "some-run-test-command $fullFileName",
        "**/source/macos/**/*.py": "some-macos-specific-command $fullFileName",
        "**/source/**/*.py": "some-other-command $fullFileName"
      }
    }
@the-chenergy the-chenergy changed the title Make a version of executorMapByGlob that matches files' full paths instead [Feature request] Make a version of executorMapByGlob that matches files' full paths instead Mar 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant