-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add go-to-definition support to autoloaded constants (#2395)
* complete jump-to-the-right-file * add annotation about autoloaded constants definition in requests/definition.rb * use find_in_index jump to the correct definition * add Automated Tests * completed the modifies suggested by @vinistock * remove the blank line in lib/ruby_lsp/listeners/definition.rb * add nil check for �rguments.first in lib/ruby_lsp/listeners/definition.rb#handle_autoload_definition * finish the modifications from @vinistock in listener/definition.rb * Trigger autoload definition request on symbol nodes instead of call nodes * Address review feedback * Improve tests --------- Co-authored-by: ShiXiang <21371237@buaa.edu.cn> Co-authored-by: ShiXiang <15001022180@163.com> Co-authored-by: Super-Xray <110341228+Super-Xray@users.noreply.github.com>
- Loading branch information
1 parent
730be2f
commit 5d9e12c
Showing
3 changed files
with
88 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters