Skip to content

Add RBS type definition file jump to typeDefinition LSP feature#357

Open
S-H-GAMELINKS wants to merge 1 commit intoruby:masterfrom
S-H-GAMELINKS:add-rbs-type-definition-jump
Open

Add RBS type definition file jump to typeDefinition LSP feature#357
S-H-GAMELINKS wants to merge 1 commit intoruby:masterfrom
S-H-GAMELINKS:add-rbs-type-definition-jump

Conversation

@S-H-GAMELINKS
Copy link
Contributor

Summary

Previously, typeDefinition only jumped to Ruby class/module definitions.

This change enables jumping to RBS declaration files from:

  • Class/module constants (e.g., Foo in Foo.new)
  • Local variables and instance variables holding class instances

Also adds tests for both scenarios.

Screenshots

Jumping from class constant

image

Jumping from local variable

image

Previously, typeDefinition only jumped to Ruby class/module definitions.

This change enables jumping to RBS declaration files from:
- Class/module constants (e.g., Foo in Foo.new)
- Local variables and instance variables holding class instances

Also adds tests for both scenarios.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant