107
108
constructor(
109
>
@IConfigurationService private readonly _configurationService: IConfigurationService,
modelService.ts
110
>
@ITextResourcePropertiesService private readonly _resourcePropertiesService: ITextResourcePropertiesService,
111
>
@IUndoRedoService private readonly _undoRedoService: IUndoRedoService,
112
>
@IInstantiationService private readonly _instantiationService: IInstantiationService
113
>
) {
114
>
super();
115
>
this._modelCreationOptionsByLanguageAndResource = Object.create(null);
116
>
this._models = {};
117
>
this._disposedModels = new Map<string, DisposedModelInfo>();
118
>
this._disposedModelsHeapSize = 0;
119
>
120
>
this._register(this._configurationService.onDidChangeConfiguration(e => this._updateModelOptions(e)));
121
>
this._updateModelOptions(undefined);
122
>
}
123
124
private static _readModelOptions(config: IRawConfig, isForSimpleWidget: boolean): ITextModelCreationOptions {