Skip to content

registerEditorLanguageConfiguration

registerEditorLanguageConfiguration(languageId, configuration): EditorDisposable

Adds or replaces the rules for a language.

Disposing restores whatever the registration shadowed instead of clearing the entry, because the languages we ship live in the same map: an embedder overriding TypeScript and then dropping the override must get TypeScript back, not a language with no rules.

string

EditorLanguageConfiguration

EditorDisposable