Skip to content
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

Merged
merged 3 commits into from
Mar 9, 2018

Conversation

gushuro
Copy link
Contributor

@gushuro gushuro commented Mar 7, 2018

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

@@ -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."
Copy link
Contributor

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

Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense

@ramya-rao-a
Copy link
Contributor

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

@ramya-rao-a ramya-rao-a merged commit 3817c89 into microsoft:master Mar 9, 2018
joaomoreno pushed a commit that referenced this pull request Mar 9, 2018
* Adding Emmet preference for changing fuzzySearchMinScore

* Changing name and description of the new setting.

* Updating version of vscode-emmet-helper
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants