feat: snippet and snippetCompletion support custom placeholders #16
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "main"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
At present, snippet cannot customize the placeholder, I hope that the placeholder can be customized instead of the fixed # and $. Because in my business scenario, ${} and #{} will be rendered as a Widget.
After the snippet can be customized, I can write it like this:
snippetCompletion('fun(${widget1}, @{p2}, @{p3})', Completion, '@')Sorry, no. Just backslash-escape the
${}you don't want to be treated as a placeholder, as in$\{x\}No, I tried.

this code:
snippet('table($\{user\}, ${t2})')output
In fact, I hope

If you can customize it like this
snippet('table(${user}, @{t2})', '@')Try
snippet('table($\\{user\\}, ${t2})')instead—the backslashes need to be in the actual string.'\{'is just equivalent to'{'.Pull request closed