Skip to content

Commit

Permalink
refine score-refine logic, microsoft#141143
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieken authored and mustard-mh committed Feb 13, 2022
1 parent 02e4140 commit 813b7c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/editor/common/services/languageFeaturesService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class LanguageFeaturesService implements ILanguageFeaturesService {

private _score(selector: LanguageSelector | undefined, candidateUri: URI, candidateLanguage: string, candidateIsSynchronized: boolean) {
const base = score(selector, candidateUri, candidateLanguage, candidateIsSynchronized);
if (base === 0 || !selector) {
if (!selector) {
return base;
}
if (!this._refinedScore) {
Expand Down

0 comments on commit 813b7c0

Please sign in to comment.