Skip to content

Support optional /src/ in jumping between test/implementation #4773

Description

@DanTup

Sometimes implementations live in src but the tests live in the same path without src:

image

The "Go to Test/Implementation" command currently assumes a perfect match. We should handle when src exists/doesn't as a fallback.

We should probably also support tests alongside the implementation (like lib/src/foo.dart <-> lib/src/foo_test.dart) since we have some other support for tests outside of test for users that like to keep them together.

Activity

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 commandsRelates to commands (usually invoked from the command Palette)is 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