8

I read through the LSP specification but I fail to understand the difference between the goto definition and goto implementation requests.

Goto Definition Request

The go to definition request is sent from the client to the server to resolve the definition location of a symbol at a given text document position.

Goto Implementation Request

The go to implementation request is sent from the client to the server to resolve the implementation location of a symbol at a given text document position.

AmjadHD
  • 163
  • 6
  • 2
    As far as I understand in a typical editor, the "go to def" (https://microsoft.github.io/language-server-protocol/specifications/specification-3-15/#textDocument_declaration) of a reference to a method that is defined in an interface would take you to the defining occurrence in the interface. The "go to impl" (https://microsoft.github.io/language-server-protocol/specifications/specification-3-15/#textDocument_implementation) of a referenced method defined in an interface would pop open a list of defining occurrences of all methods that implement the interface method, and then let you choose. – kaby76 Oct 22 '19 at 15:35

0 Answers0