gtache / intellij-lsp

Plugin adding Language Server Protocol support for IntelliJ
Apache License 2.0
397 stars 48 forks source link

Show popup dialog with all definitions when definition request returns more than one location #160

Open ChrisS2812 opened 3 years ago

ChrisS2812 commented 3 years ago

Currently, only the first among possibly multiple Locations of a definition-response is extracted and used when handling a definition-response in the requestDefinition(position: Position) method of EditorEventManager.

I think It would be fairly easy to extract all items of the response and show the default IntelliJ-Popup Dialog for jumping to files when more than one Location was contained in the response. Is there a reason why this feature is not yet implemented?

Best regards Christian