ruby-lsp-rspec
ruby-lsp-rspec copied to clipboard
go-to-definition stops working without editing the file
This is caused by https://github.com/Shopify/ruby-lsp/pull/2082 excluding the spec folder from the default indexing, which was what provides the definitions of subject and let declarations.
Without the initial indexing, we can only rely on individual files' indexing to add those definitions, which only happens when the file is edited.
The ideal solution is for Ruby LSP to introduce index-on-file-read as well. This issue is simply an acknowledgement to the problem.