You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 22, 2019. It is now read-only.
Damn.. There are so many problems with all these $1, $2, $0, ${}, | , ${cursor}, etc...
No offence, but it seems like the keystone method of their work is Math.random() 😐
Well, here are some bugs, that I found:
the vertical symbol | (that should be responsible for the caret position after snippet expansion)
in the beginning of the value:
makes this snippet disappear
and at the same time everything OK, when we put this symbol | - to the end of snippet:
⬇️
if we put it in the property:
it goes out as is:
or in the property and in the value:
as is:
if it will be in the middle of the value - it would chop off a half of it:
well, actually no matter what you will write in the curly braces, cursor, or something else:
will give the same effect - nothing will happen:
$0 $1 - in the property
$2 - in the value
almost everything is fine:
why almost? there is no semicolon in the end.
@ramya-rao-a, btw is that ok, that emmet's snippets syntax about $0 (the first placeholder) goes upstream against VS Code snippets syntax, where $0 - the final placeholder? It makes a little confusion.
$0 $1 - in the property
the same as above... placeholders works fine, and no semicolon in the end
but, if we will try to put a placeholder just in the value
$0 - in the value
emmet will output it as is:
... with semicolon in the end
and if zero would be wrapped in curly braces, it will work as it should:
And one more thing - about mentioned semicolons.
The good old emmet module, as I remember, was absorbing semicolon in the end of user's custom snippets, if there was one.
The new emmet (ver 2.0) does not. It just adds one more.