Remove IMode and FrankensteinMode

This commit is contained in:
Alex Dima
2021-09-27 14:04:54 +02:00
parent b2d3670e08
commit 2ab5762459
11 changed files with 25 additions and 66 deletions

View File

@@ -173,10 +173,9 @@ export abstract class AbstractTextMateService extends Disposable implements ITex
}
TokenizationRegistry.setColorMap([null!, defaultForeground, defaultBackground]);
this._modeService.onDidCreateMode((mode) => {
let modeId = mode.getId();
this._createdModes.push(modeId);
this._registerDefinitionIfAvailable(modeId);
this._modeService.onDidEncounterLanguage((languageIdentifier) => {
this._createdModes.push(languageIdentifier.language);
this._registerDefinitionIfAvailable(languageIdentifier.language);
});
}