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 into constant / variable / static" improvements #18679

Closed
lnicola opened this issue Dec 13, 2024 · 4 comments · Fixed by #18690
Closed

"Extract into constant / variable / static" improvements #18679

lnicola opened this issue Dec 13, 2024 · 4 comments · Fixed by #18690
Labels
A-assists C-bug Category: bug

Comments

@lnicola
Copy link
Member

lnicola commented Dec 13, 2024

  • in some cases like Extract into const #14886 (short string), we could use the string to name the constant or static instead of key / KEY
  • I think the code tries to put the cursor on the new item, but it doesn't work for me:

Image

Image

CC @Giga-Bowser, #14886

@Giga-Bowser
Copy link
Contributor

  • I think the code tries to put the cursor on the new item, but it doesn't work for me

Is this rust-analyzer running through one of the launch.json configurations like Run Extension (Release Build)? I seem to remember having some issues with placeholder snippets/tabstops when using those, and I meant to go back and investigate that at some point.

@lnicola
Copy link
Member Author

lnicola commented Dec 13, 2024

No, I did cargo xtask install and restarted VS.

@Giga-Bowser
Copy link
Contributor

After some careful git bisecting, this bug was caused by the change made to editors/code/src/client.ts in bac0ed5. @Veykril are we safe to revert that change?

@Veykril
Copy link
Member

Veykril commented Dec 13, 2024

Oh no, I thought I've fixed that again. We should definitely revert that change, as it was an accident.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-assists C-bug Category: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants