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

Show function docs for function_clauses and specs #1385

Merged
merged 1 commit into from
Oct 3, 2022

Conversation

the-mikedavis
Copy link
Contributor

els_docs:docs/2 was not previously implemented for function_clause and spec POIs, so hover requests would return null when hovering over function and spec definitions. This change returns the function definition docs for both cases.

The new behavior is in line with other language servers (ElixirLS, rust-analyzer) and can be useful - for example to see how the documentation looks for a function you're just written.

`els_docs:docs/2` was not previously implemented for `function_clause`
and `spec` POIs, so hover requests would return `null` when hovering
over function and spec definitions. This change returns the function
definition docs for both cases.

The new behavior is in line with other language servers (ElixirLS,
rust-analyzer) and can be useful - for example to see how the
documentation looks for a function you're just written.
@robertoaloi robertoaloi merged commit f8691b9 into erlang-ls:main Oct 3, 2022
@the-mikedavis the-mikedavis deleted the md-hover-on-definition branch October 3, 2022 12:53
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

Successfully merging this pull request may close these issues.

2 participants