Function onLanguage

onLanguage(
    languageId: string,
    callback: () => void,
): IDisposable

An event emitted when a language is associated for the first time with a text model.