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 }}
Repository navigation
Wrong highlight if there are duplicate strings in completion item #113404
feature-requestRequest for new features or functionalityhelp wantedIssues identified as good community contribution opportunitiessuggestIntelliSense, Auto Completeverification-neededVerification of issue is requestedverifiedVerification succeeded
Understood. Our fuzzy score function treats certain characters as separators, like _ and .. However, emojis and such aren't on that list. The code is here:
Understood. Our fuzzy score function treats certain characters as separators, like _ and .. However, emojis and such aren't on that list.
Johannes Rieken (@jrieken) Thanks for the hint! Here is another case, the later match of di is highlighted even though the first character is not emoji nor symbol.
It seems that just adding emoji or symbols to isSeparatorAtPos couldn't solve the entire problem.
That is a different case. Having adiv and di isn't match for us because the first match (d in ad) is considered weak. A strong match is one after a separator or a the word start and matches much start with a strong match.
feature-requestRequest for new features or functionalityhelp wantedIssues identified as good community contribution opportunitiessuggestIntelliSense, Auto Completeverification-neededVerification of issue is requestedverifiedVerification succeeded
Activity
vscodebot commentedon Dec 25, 2020
(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:
HaoboGu commentedon Dec 30, 2020
Johannes Rieken (@jrieken) I'd like to open a PR to fix it, would you please give me some hints about where can I start?
HaoboGu commentedon Dec 30, 2020
Steps to reproduce it:
extension.tspackage.json:only the later "d" is highlighted
jrieken commentedon Jan 4, 2021
Understood. Our fuzzy score function treats certain characters as separators, like
_and.. However, emojis and such aren't on that list. The code is here:vscode/src/vs/base/common/filters.ts
Line 466 in 696dca7
HaoboGu commentedon Jan 4, 2021
Johannes Rieken (@jrieken) Thanks for the hint! Here is another case, the later match of

diis highlighted even though the first character is not emoji nor symbol.It seems that just adding emoji or symbols to
isSeparatorAtPoscouldn't solve the entire problem.jrieken commentedon Jan 4, 2021
That is a different case. Having
adivanddiisn't match for us because the first match (dinad) is considered weak. A strong match is one after a separator or a the word start and matches much start with a strong match.HaoboGu commentedon Jan 4, 2021
So the
adivcase is by design, right?jrieken commentedon Jan 4, 2021
yes, see here #53715
HaoboGu commentedon Jan 4, 2021
Thanks, I'll open a PR to fix the emoji case ;D
fix microsoft#113404
fix microsoft#113404
11 remaining items
HaoboGu commentedon Jan 27, 2021
Alexandru Dima (@alexdima) do you have any suggestions on it? I would like to fix
isEmojiImpreciseif possiblejrieken commentedon Jan 27, 2021
Not critical for this release, moving to February
alexdima commentedon Jan 27, 2021
I've created #115221 to track the
isEmojiImpreciseproblem.connor4312 commentedon Jan 27, 2021
I can verify it works with ✨, so I'll close this and mark as verified pending Alex's new issue