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

Shortcut to evaluate code lenses #1074

Open
emlautarom1 opened this issue Apr 11, 2024 · 2 comments
Open

Shortcut to evaluate code lenses #1074

emlautarom1 opened this issue Apr 11, 2024 · 2 comments

Comments

@emlautarom1
Copy link

Is your feature request related to a problem? Please describe.

This feature request is not related to a problem.

Describe the solution you'd like

The eval plugin allows users to test code quickly directly in the same source file in which they're working. Unfortunately, evaluating the code requires clicking with the mouse on the "Evaluate" or "Refresh" code lenses, which is annoying if you're committed to a keyboard-only workflow.

Ideally, you could set up a keyboard shortcut that triggers the evaluation of the code lens directly, without requiring the usage of the mouse.

Describe alternatives you've considered

Continue using the mouse to trigger code lens evaluations 😞

Additional context

image

@fendor
Copy link
Collaborator

fendor commented Apr 11, 2024

Hi, thank you for the bug report!

This sounds like a nice feature. @michaelpj is that something we have to implement in the vscode-haskell extension or directly in HLS?

@michaelpj
Copy link
Contributor

See haskell/haskell-language-server#4155. Then many clients provide a way to trigger "the unique code action at this point"; or we can give it a distinct code action kind, and many clients allow filtering on that.

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

3 participants