Files
rust/crates
bors f3e9b38e26 Auto merge of #12646 - lowr:fix/11897, r=lowr
fix: escape receiver texts in completion

This PR fixes #11897 by escaping '\\' and '$' in the text of the receiver position expression. See [here](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#snippet_syntax) for the specification of the snippet syntax (especially [this section](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#grammar) discusses escaping).

Although not all occurrences of '\\' and '$' have to be replaced, I chose to replace all as that's simpler and easier to understand. There *are* more clever ways to implement it, but I thought they were premature optimization for the time being (maybe I should put FIXME notes?).
2022-07-20 10:51:31 +00:00
..
2022-07-08 15:44:49 +02:00
2022-07-19 13:00:45 +02:00
2022-07-03 10:09:35 +03:00
2022-07-19 13:00:45 +02:00
2022-07-19 13:00:45 +02:00
2022-07-19 13:00:45 +02:00
2022-07-19 13:00:45 +02:00
2022-07-19 13:00:45 +02:00
2022-07-19 13:00:45 +02:00
2022-07-19 13:00:45 +02:00
2021-12-16 01:56:12 +05:00
2022-07-03 10:09:35 +03:00
2022-07-08 15:44:49 +02:00
2022-07-08 15:44:49 +02:00
2022-06-15 18:35:48 +02:00
2022-07-19 13:00:45 +02:00
2022-07-20 00:26:50 -04:00
2021-12-16 01:56:12 +05:00
2022-06-10 17:30:02 +02:00
2022-07-03 10:09:35 +03:00
2022-07-03 09:56:58 +03:00