Class CustomEditorModelManager
Properties
Private
Readonly
references
references: Map<string, { counter: number; model: Promise<CustomEditorModel>; viewType: string; }> = ... Type declaration
counter: number
Readonly
viewType: string
Methods
disposeAllModelsForView
- disposeAllModelsForView(viewType): void
Returns void
get
- get(resource, viewType): Promise<undefined | CustomEditorModel>
Parameters
- resource: URI
- viewType: string
Private
key
- key(resource, viewType): string
Parameters
- resource: URI
- viewType: string
Returns string
tryRetain
- tryRetain(resource, viewType): undefined | Promise<Reference<CustomEditorModel>>
Parameters
- resource: URI
- viewType: string
Returns undefined | Promise<Reference<CustomEditorModel>>