Replies: 3 comments 4 replies
-
|
It doesn't remove for me in VSCode, so this is probably something with your editor. Specifically, rust-analyzer sends the editor what range to delete. Could it be that your editor doesn't respect that? |
Beta Was this translation helpful? Give feedback.
3 replies
-
|
I filed an issue: #21365 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Hi, guys, I found a way to solve this if you use This works fine for me, although it's a bad idea to just map from |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When inserting before an existing word (
to_path_buffer, below), is there a way to preventrustanalyzerfrom deleting that word, since it is not relevant to / part of the completion?Example before/after selecting the LSP's
strip_prefixcompletion (^ is the cursor location):path.strip^to_path_buffer();path.strip_prefix()^;path.strip_prefix()^to_path_buffer();Beta Was this translation helpful? Give feedback.
All reactions