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

Fix function params hovering in the LSP #1395

Merged
merged 1 commit into from Jun 22, 2023
Merged

Conversation

yannham
Copy link
Member

@yannham yannham commented Jun 22, 2023

Closes #1384.

The LSP is always showing Dyn when hovering on the occurrence of a variable which is the parameter of a statically typed function. The usage was always set to ValueState::Unknown, while it's actually known and computed a few lines of code above. This commit sets the correct value state.

NLS was always showing no type (`Dyn`) when hovering on the occurrence
of a variable referring to a function parameter inside statically typed
code. The usage was always set to `ValueState::Unknown`, while it's
actually known. This commit restores the correct value state.
@github-actions github-actions bot temporarily deployed to pull request June 22, 2023 10:22 Inactive
@yannham yannham enabled auto-merge June 22, 2023 10:35
@yannham yannham added this pull request to the merge queue Jun 22, 2023
Merged via the queue into master with commit 7dabdcc Jun 22, 2023
5 checks passed
@yannham yannham deleted the fix/lsp-hover-funparam branch June 22, 2023 11:35
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.

The LSP doesn't properly the type of function parameters inside typed code
2 participants