typescript.nvim icon indicating copy to clipboard operation
typescript.nvim copied to clipboard

Possibility of including Go to Source Definition?

Open ajitid opened this issue 2 years ago • 1 comments

Ref: https://devblogs.microsoft.com/typescript/announcing-typescript-4-7/?q=1#go-to-source-definition

Unsure if this plugin can expose above functionality, or if it is just unavailable to us because we're relying on an LSP server and VS Code isn't.

ajitid avatar Jun 12 '22 02:06 ajitid

This would have to be implemented in typescript-language-server since it involves sending a request to tsserver (which we don't have direct access to in Neovim).

It's a bit of an unusual situation, since to my knowledge there's nothing matching this in the LSP specification, so it would be up to the typescript-language-server folks to determine if / how they want to handle this feature and expose it. Definitely worth opening an issue there if this is something you're interested in.

jose-elias-alvarez avatar Jun 12 '22 21:06 jose-elias-alvarez

Hey @jose-elias-alvarez, this has been added in typescript-language-server (readme, pull request).

ajitid avatar Aug 22 '22 20:08 ajitid

Excellent, thanks for the update! I am traveling but will investigate this when I get back. From looking at the PR, I don't think it should be too difficult to add support here.

jose-elias-alvarez avatar Aug 22 '22 20:08 jose-elias-alvarez