microsoft / language-server-protocol

Defines a common protocol for language servers.
https://microsoft.github.io/language-server-protocol/
Creative Commons Attribution 4.0 International
11.16k stars 787 forks source link

Clarify snippet escaping rules #1868

Closed DanTup closed 9 months ago

DanTup commented 9 months ago

The current text reads like you can escape $ and } where not strictly necessary, but according to VS Code's behaviour and https://github.com/microsoft/vscode/issues/201059 this is not the case - you may only escape the characters that are required to be escaped, otherwise you'll see backslashes in the output.

VS Code Docs PR: https://github.com/microsoft/vscode-docs/pull/6928

dbaeumer commented 9 months ago

Thanks!