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

LSP: Implementing hover hints #525

Merged
merged 1 commit into from
Dec 24, 2024
Merged

LSP: Implementing hover hints #525

merged 1 commit into from
Dec 24, 2024

Conversation

kengorab
Copy link
Owner

Within the typechecker, collect identifier information (if a flag is set) into the TypedModule currently being typechecked. From within the LanguageService, this metadata can be used to find the identifier being hovered over and display some information about that identifier (name, type/signature, import module (if imported), etc). Eventually there will be more functionality here, like displaying fields, methods, enum variants, etc.

Examples

Hovering over a variable
image

Hovering over a loop iteratee
image

Hovering over a standalone function (methods not yet implemented)
image

Hovering over type (with "imported from ..." message)
image

Within the typechecker, collect identifier information (if a flag is
set) into the TypedModule currently being typechecked. From within the
LanguageService, this metadata can be used to find the identifier being
hovered over and display some information about that identifier (name,
type/signature, import module (if imported), etc). Eventually there
will be more functionality here, like displaying fields, methods, enum
variants, etc.
@kengorab kengorab merged commit 7565eaa into master Dec 24, 2024
1 check passed
@kengorab kengorab deleted the lsp-hover branch December 24, 2024 17:08
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.

1 participant