Skip to content

Support wildcards for configuring "codeLens. path" #5253

Closed

Description

@zhujiageng

I manage a monorepo with VSCode, which includes many Flutter apps and libraries. However, I have only one launch.json. Some test files require the --dart-define-from-file flag when running. When they fail, I need to debug these tests, but the default "Debug" codeLens does not include --dart-define-from-file. Therefore, I have defined a new set of codeLenses named Run(TestDefines) and Debug(TestDefines), and I pass the --dart-define-from-file parameter in the args of these codeLenses. But this results in these new codeLenses appearing on all test files, which is not very nice. So I want to enable these codeLenses only in the specific dart_defines_test.dart file. If codeLens.path supported wildcards, I could easily enable these codeLenses only in the required files.

Activity

  1. added
    is enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.
    on Sep 8, 2024
  2. DanTup commented on Sep 9, 2024

    @DanTup
    Member

    So I want to enable these codeLenses only in the specific dart_defines_test.dart file

    Is there only one dart_defines_test.dart file, or multiple? If only one, you can enter the whole (relative) path to it in codeLens.path.

    But if you have multiple, I presume you'd like something like "**/dart_defines_test.dart"?

  3. added this to the v3.98.0 milestone on Sep 9, 2024
  4. added
    in debuggingRelates to the debug adapter or process of running debug sessions
    on Sep 9, 2024
  5. zhujiageng commented on Sep 9, 2024

    @zhujiageng
    Author

    @DanTup Yes, I have multiple "dart_defines_test.dart" files. I would indeed like to support something like "**/dart_defines_test.dart".

  6. added a commit that references this issue on Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    in debuggingRelates to the debug adapter or process of running debug sessionsis enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions