Support postfix snippets
Rust Analyzer has postfix snippets that allow you to write 10.dbg|
and expanding the snippet turns it to dbg!(10)|
where |
is the cursor
The way it currently works is the following:
10.dbg|
- Expand snippet
10.dbg!(10)|
Expected is
10.dbg|
- Expand snippet
dbg!(10)
It seems like additionalTextEdits
are not handled correctly because that's what takes cares of deleting 10.
.
I didn't find a way to send the trace value to rust analyzer to debug the messages sent between the lsp client and server so I don't really know what the problem is.