Skip to content

Commit

Permalink
Fix duplicated provider registration with some document selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
CGNonofr committed Dec 21, 2021
1 parent b67dffc commit 829227b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client/src/monaco-languages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,9 @@ export class MonacoLanguages implements Languages {
} else {
languages.add(this.matchLanguageByFilter(selector));
}
if (languages.has('*')) {
return new Set(['*'])
}
return languages;
}

Expand Down

0 comments on commit 829227b

Please sign in to comment.