You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is caused by the fact that \, $ and } are special tokens in a snippet, which should be escaped. RA returns these in the postfix completion snippet unescaped, causing them to disappear.
rust-analyzer version: 2022-03-28
rustc version: rustc 1.61.0-nightly (c5cf08d37 2022-03-30)
Example:
(where
|
is the cursor)Accepting the suggestion will result in this code:
which is invalid syntax.
It also seems that this happens with strings. Other escapes are intact, it's only
\\
that gets mangled.Also of note is that the escape may be nested in some deeper expression. For instance:
The text was updated successfully, but these errors were encountered: