Skip to content

Feature request: show a computed value for constants on hover #148

@Rexagon

Description

@Rexagon

It would be really useful to see the resulting constant value after evaluating the assigned expression (where possible, at least for direct calls of comptime functions).

For example when defining operations ids like this
Image
it would be really convenient to see their hex and decimal ids on hover.

Just as an example, here is how rust-analyzer displays such previews:

Image

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions