vyperlang / vyper-lsp

A Vyper LSP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hover Info

z80dev opened this issue · comments

commented

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.