Skip to content

[Feature request] Add visualization for captured variables in a closure #11646

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

Closed
RagibHasin opened this issue Mar 7, 2022 · 2 comments
Closed
Labels
A-ide general IDE features C-feature Category: feature request E-has-instructions Issue has some instructions and pointers to code to get started E-medium

Comments

@RagibHasin
Copy link

The title says it all. An assist or command that highlights all the captures in a closure.

@Veykril Veykril added A-ide general IDE features C-feature Category: feature request E-hard S-unactionable Issue requires feedback, design decisions or is blocked on other work labels Mar 7, 2022
@HKalbasi
Copy link
Member

HKalbasi commented May 4, 2023

Hover of closure now shows the captures, but if it is not enough, we can iterate over db.closure_info(closure_id).0 and use the span field to highlight every captured item.

@HKalbasi HKalbasi added E-medium E-has-instructions Issue has some instructions and pointers to code to get started and removed E-hard S-unactionable Issue requires feedback, design decisions or is blocked on other work labels May 4, 2023
@HKalbasi
Copy link
Member

HKalbasi commented May 4, 2023

Ah this is actually implemented in #14711

@HKalbasi HKalbasi closed this as completed May 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-ide general IDE features C-feature Category: feature request E-has-instructions Issue has some instructions and pointers to code to get started E-medium
Projects
None yet
Development

No branches or pull requests

3 participants