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

[circt-verilog-lsp] Add hover support #8304

Open
wants to merge 1 commit into
base: dev/hidetou/lsp-features/inlay-hints
Choose a base branch
from

Conversation

uenoku
Copy link
Member

@uenoku uenoku commented Mar 6, 2025

Add hover functionality to the CIRCT Verilog LSP server.

The implementation adds hover support for Verilog symbols showing type information, definition location with source code, and links to source locations. It also implements hover for external source locations showing code snippets and links to external files.

Add hover functionality to the CIRCT Verilog LSP server. This includes hover
provider capability in server initialization and hover context line configuration
option.

The implementation adds hover support for Verilog symbols showing type information,
definition location with source code, and links to source locations. It also
implements hover for external source locations showing context-aware source code
snippets and links to external files.

The hover feature provides rich information when hovering over Verilog symbols
(showing type and definition) and source location annotations (showing external
source contents such as MLIR and scala).
// CHECK-NEXT: }
// CHECK-NEXT: }
// -----
// Find definition of `include/test.mlir:2:5`
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// Find definition of `include/test.mlir:2:5`
// Find hover of `include/test.mlir:2:5`

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