Hi! I am trying to insert the literal “\{” as a snippet (for LaTeX) but only the “{” ends up getting dispatched.
I adopted this, and tried to followed the code in dev tools, and it looks like it’s in the step below that that the slash disappears. In the argument template, the slash is escaped
I’m just wondering if this is intended and might I be missing something? I also tried increasing the number of slashes and escaping the curly braces but the output is the same
Thanks for the quick action! I tested 6.16.1 but unfortunately it doesn’t fix the issue I’m having (potentially this is a completely separate issue that should be its own thread).
snippetCompletion('"description": "${✨ A message from %\\{whom\\}: ✨}"', completion)
When the snippet is applied, the inserted text is:
"description": "✨ A message from %{whom\: ✨}"
Note that I escaped the literal braces as described in the snippet docs, but seems it somehow doesn’t handle the closing brace case properly:
To include a literal { or } in your template, put a backslash in front of it. This will be removed and the brace will not be interpreted as indicating a placeholder.