Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

textDocument/declaration #2

Closed
sam-mccall opened this issue Jan 29, 2019 · 2 comments
Closed

textDocument/declaration #2

sam-mccall opened this issue Jan 29, 2019 · 2 comments

Comments

@sam-mccall
Copy link
Member

LSP now supports textDocument/declaration and textDocument/definition separately.

Proposed behavior:

  • for declaration, we return the best decl we have
  • for definition, we return the definition if we have one, else best decl
  • if we want a generic "go to" that returns both, then add an extension

Caveats: this breaks back-compat (decl no longer returned to old clients). No way to detect these via capabilities.

@sam-mccall
Copy link
Member Author

There's no server capability in LSP but I think that's just a protocol bug: microsoft/language-server-protocol#673

We should advertise it anyway.

@sam-mccall
Copy link
Member Author

Fixed in r352864

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant