elbywan / crystalline

A Language Server Protocol implementation for Crystal. 🔮
MIT License
424 stars 21 forks source link

Pressing “goto definition” on `.new()` should go to `#initialize()` #51

Closed notramo closed 1 year ago

notramo commented 1 year ago

.new() calls #initialize(), but .new() is not defined with def, and #initialize is never called manually. So .new() is defined as #initialize() effectively, and “goto definition” on .new() should open #initialize().

elbywan commented 1 year ago

Hey @notramo

Unless I'm mistaken it seems like it's working fine on my end.

https://user-images.githubusercontent.com/3428394/201674414-8d4e4266-0518-4931-80b4-00c0d65f8415.mov

notramo commented 1 year ago

It works indeed, it was an error in my configuration.