-
Notifications
You must be signed in to change notification settings - Fork 30.7k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Adding Emmet preference for changing fuzzySearchMinScore #45240
Conversation
extensions/emmet/package.nls.json
Outdated
@@ -52,5 +52,6 @@ | |||
"emmetPreferencesCssWebkitProperties": "Comma separated CSS properties that get the 'webkit' vendor prefix when used in Emmet abbreviation that starts with `-`. Set to empty string to always avoid the 'webkit' prefix.", | |||
"emmetPreferencesCssMozProperties": "Comma separated CSS properties that get the 'moz' vendor prefix when used in Emmet abbreviation that starts with `-`. Set to empty string to always avoid the 'moz' prefix.", | |||
"emmetPreferencesCssOProperties": "Comma separated CSS properties that get the 'o' vendor prefix when used in Emmet abbreviation that starts with `-`. Set to empty string to always avoid the 'o' prefix.", | |||
"emmetPreferencesCssMsProperties": "Comma separated CSS properties that get the 'ms' vendor prefix when used in Emmet abbreviation that starts with `-`. Set to empty string to always avoid the 'ms' prefix." | |||
"emmetPreferencesCssMsProperties": "Comma separated CSS properties that get the 'ms' vendor prefix when used in Emmet abbreviation that starts with `-`. Set to empty string to always avoid the 'ms' prefix.", | |||
"emmetPreferencesFuzzySearchMinScore": "Number between 0 and 1 defining the minimum score a match should get in order to be shown as suggestion." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use the description from https://docs.emmet.io/customization/preferences/ for css.fuzzySearchMinScore
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably prefix this setting with css
as it does not apply to html abbreviations
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense
Please also update the vscode-emmet-helper version 1.2.1 in the package.json, run yarn to update yarn.lock and include those files in this PR |
* Adding Emmet preference for changing fuzzySearchMinScore * Changing name and description of the new setting. * Updating version of vscode-emmet-helper
This has been requested in #44568
See also microsoft/vscode-emmet-helper#25
This new preference will define how good should be a match in order to be shown by Emmet. Higher numbers are better matches, so setting this preference to a number closer to 1 should prevent emmet suggestions to appear as often.
Setting it by default to 0.3