Function onDidChangeModelLanguage

  • Emitted when a different language is set to a model.

    Parameters

    • listener: ((e) => void)
        • (e): void
        • Parameters

          • e: {
                model: ITextModel;
                oldLanguage: string;
            }
            • Readonly model: ITextModel
            • Readonly oldLanguage: string

          Returns void

    Returns IDisposable