public override Task <DocumentController> CreateController(FileDescriptor modelDescriptor, DocumentControllerDescription controllerDescription) { var imports = Ide.Composition.CompositionManager.Instance.GetExportedValue <TImports> (); if (themeToClassification == null) { themeToClassification = CreateThemeToClassification(imports.EditorFormatMapService); } return(Task.FromResult(CreateContent(imports))); }
public void Dispose() { themeToClassification?.Dispose(); themeToClassification = null; }