@@ -21,7 +21,7 @@ import { IUriIdentityService } from '../../../../platform/uriIdentity/common/uri
21
21
import { DEFAULT_EDITOR_ASSOCIATION , EditorExtensions , GroupIdentifier , IEditorFactoryRegistry , IResourceDiffEditorInput } from '../../../common/editor.js' ;
22
22
import { DiffEditorInput } from '../../../common/editor/diffEditorInput.js' ;
23
23
import { EditorInput } from '../../../common/editor/editorInput.js' ;
24
- import { CONTEXT_ACTIVE_CUSTOM_EDITOR_ID , CONTEXT_FOCUSED_CUSTOM_EDITOR_IS_EDITABLE , CustomEditorCapabilities , CustomEditorInfo , CustomEditorInfoCollection , ICustomEditorService } from '../common/customEditor.js' ;
24
+ import { CONTEXT_ACTIVE_CUSTOM_EDITOR_ID , CONTEXT_FOCUSED_CUSTOM_EDITOR_IS_EDITABLE , CustomEditorCapabilities , CustomEditorInfo , CustomEditorInfoCollection , ICustomEditorModelManager , ICustomEditorService } from '../common/customEditor.js' ;
25
25
import { CustomEditorModelManager } from '../common/customEditorModelManager.js' ;
26
26
import { IEditorGroup , IEditorGroupContextKeyProvider , IEditorGroupsService } from '../../../services/editor/common/editorGroupsService.js' ;
27
27
import { IEditorResolverService , IEditorType , RegisteredEditorPriority } from '../../../services/editor/common/editorResolverService.js' ;
@@ -37,7 +37,7 @@ export class CustomEditorService extends Disposable implements ICustomEditorServ
37
37
private readonly _editorResolverDisposables = this . _register ( new DisposableStore ( ) ) ;
38
38
private readonly _editorCapabilities = new Map < string , CustomEditorCapabilities > ( ) ;
39
39
40
- private readonly _models = new CustomEditorModelManager ( ) ;
40
+ private readonly _models : ICustomEditorModelManager ;
41
41
42
42
private readonly _onDidChangeEditorTypes = this . _register ( new Emitter < void > ( ) ) ;
43
43
public readonly onDidChangeEditorTypes : Event < void > = this . _onDidChangeEditorTypes . event ;
@@ -55,6 +55,8 @@ export class CustomEditorService extends Disposable implements ICustomEditorServ
55
55
) {
56
56
super ( ) ;
57
57
58
+ this . _models = new CustomEditorModelManager ( this . uriIdentityService ) ;
59
+
58
60
this . _contributedEditors = this . _register ( new ContributedCustomEditors ( storageService ) ) ;
59
61
// Register the contribution points only emitting one change from the resolver
60
62
this . editorResolverService . bufferChangeEvents ( this . registerContributionPoints . bind ( this ) ) ;
0 commit comments