castwide / vscode-solargraph

A Visual Studio Code extension for Solargraph.
Other
423 stars 25 forks source link

[Question] How to extend solargraph's Go To Definition? #189

Closed judocode closed 3 years ago

judocode commented 4 years ago

I am having a hard time deciphering how exactly Go To Definition is implemented in solargraph and I would like to fork the code to create a more specific implementation of it. Is there some sort of documentation or code that describes how this might be done?

Thanks!

castwide commented 4 years ago

You'll probably want to make that change in the gem instead of the VS Code extension. I'd start by looking at Library#definitions_at and how it uses Clip#define (for code) or Clip#translate (for tags in comments) to retrieve the pins.