-
Notifications
You must be signed in to change notification settings - Fork 27.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Emmet 2.0: Show custom snippet along with default snippet if match #33579
Comments
Found multiple other cases when custom emmet snippets are not shown when their names partially entered. It looks like it has something to do with the amount of the suggestions for the currently entered text. If the amount of suggestions is not big, then the custom snippet is shown among the suggestions. If the amount is big, the custom snippet is not shown until more text is entered and the amount of suggestions is reduced. That way, entering My expectation is that my custom Emmet snippets should always be in the suggestion list, esp. when I entered a proper prefix of the entire snippet name. |
No. We show only the best match for the abbreviation/snippet that has been typed for Emmet So in your case Similarly To learn more about fuzzy matching in Emmet for css, see https://github.com/emmetio/css-snippets-resolver/blob/master/index.js#L154
That sounds reasonable. I can look into it |
this will be fixed in tonight's Insiders (Sept 1) Custom Emmet snippets(css) will always show up as long as what was typed is the prefix of the snippet name |
Steps to Reproduce:
This is a weird one. I have defined the following custom snippet for Emmet:
"mrgstart": "@include margin-start(${1:value});",
When I type
mrg
, the snippet is not shown. It appears only when I typemrgs
.If I rename the snippet to
abcstart
, then it is properly shown when I typeabc
.😵
Reproduces without extensions: Yes
The text was updated successfully, but these errors were encountered: