Skip to content

feat: added doc comments on hover#486

Merged
JalonSolov merged 2 commits intovlang:masterfrom
cadamsdev:feat/doc-comments-on-hover
Mar 12, 2026
Merged

feat: added doc comments on hover#486
JalonSolov merged 2 commits intovlang:masterfrom
cadamsdev:feat/doc-comments-on-hover

Conversation

@cadamsdev
Copy link
Copy Markdown
Contributor

@cadamsdev cadamsdev commented Mar 11, 2026

Supported features

Symbol location Example Supported
Same file — function fn greet() in current file
Same file — method fn (mut app App) run()
Same file — struct struct Config {}
Same file — enum enum Color { red green }
Same file — interface interface Animal {}
Same file — type alias type Handler = fn()
Same file — const const max_retries = 3
Other open project file fn helper() in utils.v (open)
Untracked project file fn helper() in utils.v (not yet opened)
V builtin println, eprintln, len, etc.
Imported stdlib module os.read_file after import os
Dotted stdlib module v.util.SomeFunc after import v.util
External package (non-vlib) Third-party modules outside vlib/
Struct fields config.timeout
Enum variants Color.red

Media

Functions from standard library

Screenshot 2026-03-10 at 10 52 46 PM

Constants

image

Function (single line comment)

image

Function (Multi-line comment)

image

Function that's being called

image

Function from another file (same module)

image

Structs

image

Interfaces

image

@JalonSolov JalonSolov merged commit 25d5bee into vlang:master Mar 12, 2026
3 checks passed
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.

2 participants