Skip to content

Commit 4aa9e62

Browse files
authored
Update README.md
1 parent 421d4b0 commit 4aa9e62

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,17 @@ Document Symbols can be triggered by:
4040

4141
### Go to definition
4242

43+
`ruby-lsp-rspec` supports go-to-definition on methods defined through `let` and `subject` DSLs in spec files.
44+
4345
In VS Code this feature can be triggered by one of the following methods:
4446

4547
- `Right click` on the target, and then select `Go to Definition`
4648
- Placing the cursor on the target, and then hit `F12`
4749
- `Command + click` the target
4850

51+
> [!Note]
52+
> This feature requires indexing your spec files so they can't be excluded from Ruby LSP's indexing.
53+
4954
<img src="misc/go-to-definition.gif" alt="Go to definition" width="75%">
5055

5156
## Development

0 commit comments

Comments
 (0)