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

Hover Info #7

Open
Tracked by #1
z80dev opened this issue Sep 18, 2023 · 0 comments
Open
Tracked by #1

Hover Info #7

z80dev opened this issue Sep 18, 2023 · 0 comments

Comments

@z80dev
Copy link
Collaborator

z80dev commented Sep 18, 2023

For any given value, we want to display some information on hover. This is extremely useful during development. The specifics of what goes into a hover message will vary depending on what is being hovered on.

LSP API Methods

  • textDocument/hover

Variations

Variables

For variables, we should display at minimum the type of a variable. If easily exposed by the compiler infrastructure we will be using, we can optionally also display:

  • location in memory
  • size in words/bytes
  • reference vs. value information

Functions

For functions, we should display at minimum:

  • argument types
  • return type
  • any docstring present at the function definition.
@z80dev z80dev mentioned this issue Sep 18, 2023
6 tasks
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