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

Feature Request: Code lens #196

Open
ribosomerocker opened this issue May 8, 2023 · 0 comments
Open

Feature Request: Code lens #196

ribosomerocker opened this issue May 8, 2023 · 0 comments

Comments

@ribosomerocker
Copy link

Code lens are kind of a generic thing, but one example I use in HLS which isn't available here, is

thing :: Int
thing = 2

-- >>> thing + thing

and, on Doom Emacs, a code lens appears next to the last comment saying "Evaluate", and when I click on it, it appends to the file this comment:

-- 4

resulting with

thing :: Int
thing = 2

-- >>> thing + thing
-- 4

Some things worth highlighting:

  1. This code lens only activates when i have three arrows in a comment
  2. after the code lens is evaluated, it says "Refresh" next to the comment with three lines, and clicking on it would regenerate the comment under it, which is useful in-case the value of thing changes, for an example.
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

No branches or pull requests

1 participant