Skip to content

Commit

Permalink
add return type to fn hover
Browse files Browse the repository at this point in the history
  • Loading branch information
z80dev committed Nov 30, 2023
1 parent 7ad74a7 commit 6fcb26b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vyper_lsp/analyzer/AstAnalyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,8 @@ def hover_info(self, document: Document, pos: Position) -> Optional[str]:
arg_str = ", ".join(
[f"{arg.arg}: {arg.annotation.id}" for arg in node.args.args]
)
if node.returns:
return f"(Internal Function) **{fn_name}**({arg_str}) -> **{node.returns.id}**"
return f"(Internal Function) **{fn_name}**({arg_str})"
else:
node = self.ast.find_state_variable_declaration_node_for_name(word)
Expand Down

0 comments on commit 6fcb26b

Please sign in to comment.