Function createModel

createModel(
    value: string,
    language?: string,
    uri?: Uri,
): ITextModel

Create a new editor model. You can specify the language that should be set for this model or let the language be inferred from the uri.