mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
Fixes #147724.
This commit is contained in:
parent
154ce41f43
commit
b16e71ad2a
|
@ -114,12 +114,8 @@ export class LanguageAgnosticBracketTokens {
|
|||
}
|
||||
|
||||
public didLanguageChange(languageId: string): boolean {
|
||||
const existing = this.languageIdToBracketTokens.get(languageId);
|
||||
if (!existing) {
|
||||
return false;
|
||||
}
|
||||
const newRegExpStr = BracketTokens.createFromLanguage(this.getLanguageConfiguration(languageId), this.denseKeyProvider).getRegExpStr();
|
||||
return existing.getRegExpStr() !== newRegExpStr;
|
||||
// Report a change whenever the language configuration updates.
|
||||
return this.languageIdToBracketTokens.has(languageId);
|
||||
}
|
||||
|
||||
getSingleLanguageBracketTokens(languageId: string): BracketTokens {
|
||||
|
|
Loading…
Reference in a new issue