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