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 navigation between related code, e.g. from test to implementation #2966

Open
1 task done
andyw8 opened this issue Dec 9, 2024 · 4 comments
Open
1 task done
Labels
enhancement New feature or request vscode This pull request should be included in the VS Code extension's release notes

Comments

@andyw8
Copy link
Contributor

andyw8 commented Dec 9, 2024

I have checked that this feature is not already implemented

  • This feature does not exist

Use case

See below

Description

It's convenient for developers to jump between a test and its corresponding implementation.

(in Vim, Projectionist is a popular plugin for this)

Implementation

A planned VS Code feature may help with this: microsoft/vscode#126932

But it would good to have it available for all editors.

@andyw8 andyw8 added enhancement New feature or request vscode This pull request should be included in the VS Code extension's release notes labels Dec 9, 2024
@andyw8 andyw8 changed the title [VSCode extension] Allow navigation between related code, e.g. from test to implementation Allow navigation between related code, e.g. from test to implementation Dec 9, 2024
@vinistock
Copy link
Member

How is this one different than #2665? Can we close one of the two and keep a single issue?

@andyw8
Copy link
Contributor Author

andyw8 commented Dec 10, 2024

Ah, I didn't find that when looking.

Let's keep this one as it describes it in a more general way (e.g. for Rails, this is the same mechanism that could power jumping from a controller action to its view).

@vinistock
Copy link
Member

(e.g. for Rails, this the same mechanism that could power jumping from a controller action to its view)

We should report this as a possible use case in microsoft/vscode#126932 and suggest making go to related code more generic. I might be wrong, but based on the issue's title it looks like they are planning it more as a testing thing rather than a general feature.

@andyw8
Copy link
Contributor Author

andyw8 commented Dec 10, 2024

We should report this as a possible use case in microsoft/vscode#126932 and suggest making go to related code more generic. I might be wrong, but based on the issue's title it looks like they are planning it more as a testing thing rather than a general feature.

microsoft/vscode#126932 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request vscode This pull request should be included in the VS Code extension's release notes
Projects
None yet
Development

No branches or pull requests

2 participants