From 3817c899cae312e0e989da8bfbc61308cfbf45f1 Mon Sep 17 00:00:00 2001 From: Gus Hurovich Date: Thu, 8 Mar 2018 18:02:33 -0800 Subject: [PATCH] Adding Emmet preference for changing fuzzySearchMinScore (#45240) * Adding Emmet preference for changing fuzzySearchMinScore * Changing name and description of the new setting. * Updating version of vscode-emmet-helper --- extensions/emmet/package.json | 7 ++++++- extensions/emmet/package.nls.json | 3 ++- extensions/emmet/yarn.lock | 6 +++--- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/extensions/emmet/package.json b/extensions/emmet/package.json index eb8cf684566..8e90e075b94 100644 --- a/extensions/emmet/package.json +++ b/extensions/emmet/package.json @@ -199,6 +199,11 @@ "type": "string", "default": null, "description": "%emmetPreferencesCssMsProperties%" + }, + "css.fuzzySearchMinScore": { + "type": "number", + "default": 0.3, + "description": "%emmetPreferencesCssFuzzySearchMinScore%" } } }, @@ -338,7 +343,7 @@ "@emmetio/html-matcher": "^0.3.3", "@emmetio/css-parser": "ramya-rao-a/css-parser#vscode", "@emmetio/math-expression": "^0.1.1", - "vscode-emmet-helper": "^1.2.0", + "vscode-emmet-helper": "^1.2.1", "vscode-languageserver-types": "^3.5.0", "image-size": "^0.5.2", "vscode-nls": "3.2.1" diff --git a/extensions/emmet/package.nls.json b/extensions/emmet/package.nls.json index 0cc141009cb..36a62bd2694 100644 --- a/extensions/emmet/package.nls.json +++ b/extensions/emmet/package.nls.json @@ -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.", + "emmetPreferencesCssFuzzySearchMinScore": "The minimum score (from 0 to 1) that fuzzy-matched abbreviation should achieve. Lower values may produce many false-positive matches, higher values may reduce possible matches." } diff --git a/extensions/emmet/yarn.lock b/extensions/emmet/yarn.lock index 89c4029be2d..48a909d225e 100644 --- a/extensions/emmet/yarn.lock +++ b/extensions/emmet/yarn.lock @@ -2052,9 +2052,9 @@ vinyl@~2.0.1: remove-trailing-separator "^1.0.1" replace-ext "^1.0.0" -vscode-emmet-helper@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/vscode-emmet-helper/-/vscode-emmet-helper-1.2.0.tgz#6b9311be065c9c99d5de2dae18ea0730d9cfb734" +vscode-emmet-helper@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/vscode-emmet-helper/-/vscode-emmet-helper-1.2.1.tgz#dc4a3c83a3f1d48f4e9e1a5cce0e63f24b6eb843" dependencies: "@emmetio/extract-abbreviation" "0.1.6" jsonc-parser "^1.0.0"