Skip to content

Use virtual text to show evaluation results #258

@leana8959

Description

@leana8959

Feature description

Hello,

I noticed that with Scala's metals, the results of an evaluation show up as virtual text; on the other hand, haskell-tools puts them in comments.

Is it possible to have the option to use virtual text instead of comments for evaluation results? I simply think it's neater to not have the file changed when one's simply "probing variables and functions"

A possible problem I can foresee is that longer messages won't fit. A solution could be to place a code action over the evaluated line, which when triggered, shows the complete result.

Here's an image how it looks like for Scala. Note that I can't actually change the text on the right after // because it's virtual text.
image

Thanks, have a nice day :)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions