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

Extract const code action #3936

Open
lpil opened this issue Dec 2, 2024 · 0 comments
Open

Extract const code action #3936

lpil opened this issue Dec 2, 2024 · 0 comments
Labels
help wanted Contributions encouraged priority:medium

Comments

@lpil
Copy link
Member

lpil commented Dec 2, 2024

An action that extracts a highlighted value and replaces it with a const

pub fn main() {
  list.map([1, 2, 3], run)
  #        ^^^^^^^^^
}
const value = [1, 2, 3]

pub fn main() {
  list.map(value, run)
}
@lpil lpil added help wanted Contributions encouraged priority:medium labels Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Contributions encouraged priority:medium
Projects
None yet
Development

No branches or pull requests

1 participant