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
@@ -240,14 +241,28 @@ export abstract class AbstractGotoSymbolQuickAccessProvider extends AbstractEdit
240
241
241
242
if(query.original.length>filterPos){
242
243
243
-
// Score by symbol
244
-
[symbolScore,symbolMatches]=scoreFuzzy2(symbolLabel,symbolQuery,filterPos,symbolLabelWithIcon.length-symbolLabel.length/* Readjust matches to account for codicons in label */);
244
+
// First: try to score on the entire query, it is possible that
245
+
// the symbol matches perfectly (e.g. searching for "change log"
246
+
// can be a match on a markdown symbol "change log"). In that
247
+
// case we want to skip the container query altogether.
[symbolScore,symbolMatches]=scoreFuzzy2(symbolLabel,symbolQuery,0,symbolLabelWithIcon.length-symbolLabel.length/* Readjust matches to account for codicons in label */);
140
+
141
+
// First: try to score on the entire query, it is possible that
142
+
// the symbol matches perfectly (e.g. searching for "change log"
143
+
// can be a match on a markdown symbol "change log"). In that
144
+
// case we want to skip the container query altogether.
0 commit comments