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
As of #15876, code actions may send more than one edit as a snippet text edit (e.g. generate_trait_from_impl), but only one document may have snippets applied to it. I think this can be closed now that that has been clarified.
Note that we should never generate a snippet text edit that doesn't have placeholders or tabstops in the new text (i.e. the empty snippet edit new text was considered a bug), which the current snippet rendering implementation should never do. 😁
rust-analyzer version: rust-analyzer 1 (67920f7 2022-09-04)
rustc version: rustc 1.57.0 (f1edd0429 2021-11-29)
minimal repro:
expected result: Only one snippetTextEdit is sent, like in the docs
actual result: More than one snippetTextEdit is sent
(insertTextFormat 2 is a snippetTextEdit)
References:
The text was updated successfully, but these errors were encountered: