ruby-lsp icon indicating copy to clipboard operation
ruby-lsp copied to clipboard

Go-to-Definition -> Go-to-test feature

Open tomajask opened this issue 1 year ago • 2 comments

I have checked that this feature is not already implemented

  • [x] This feature does not exist

Use case

I want to go from the class definition to its test file using go-to functionality.

Description

Is there an option to go from the class itself to the test file for this class? I couldn't find such feature. It would be quite helpful to go from class to test (MiniTest or RSpec).

Note

The link provided for features list is broken (404).

Implementation

No response

tomajask avatar Oct 04 '24 08:10 tomajask

Thank you for the suggestion! VS Code is actually working on standardizing a go to related file feature, which I assume will eventually be available for language servers. Once that is in place, we can start offering the new feature.

vinistock avatar Oct 04 '24 13:10 vinistock

Note

The link provided for features list is broken (404).

Thanks: https://github.com/Shopify/ruby-lsp/pull/2670

andyw8 avatar Oct 04 '24 15:10 andyw8

I finally found the related VS Code issue https://github.com/microsoft/vscode/issues/126932. Once that's finalized in VS Code and standardized into the LSP spec, we can provide this feature.

vinistock avatar Oct 28 '24 14:10 vinistock

Succeeded by https://github.com/Shopify/ruby-lsp/issues/2966 (which is now listed on the roadmap)

andyw8 avatar Dec 10 '24 15:12 andyw8