File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
src/vs/workbench/contrib/customEditor Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -29,9 +29,7 @@ Registry.as<IEditorPaneRegistry>(EditorExtensions.EditorPane)
29
29
] ) ;
30
30
31
31
Registry . as < IEditorFactoryRegistry > ( EditorExtensions . EditorFactory )
32
- . registerEditorSerializer (
33
- CustomEditorInputSerializer . ID ,
34
- CustomEditorInputSerializer ) ;
32
+ . registerEditorSerializer ( CustomEditorInputSerializer . ID , CustomEditorInputSerializer ) ;
35
33
36
34
Registry . as < IWorkbenchContributionsRegistry > ( WorkbenchExtensions . Workbench )
37
35
. registerWorkbenchContribution ( ComplexCustomWorkingCopyEditorHandler , LifecyclePhase . Starting ) ;
Original file line number Diff line number Diff line change @@ -89,5 +89,13 @@ const CustomEditorsContribution: IJSONSchema = {
89
89
export const customEditorsExtensionPoint = ExtensionsRegistry . registerExtensionPoint < ICustomEditorsExtensionPoint [ ] > ( {
90
90
extensionPoint : 'customEditors' ,
91
91
deps : [ languagesExtPoint ] ,
92
- jsonSchema : CustomEditorsContribution
92
+ jsonSchema : CustomEditorsContribution ,
93
+ activationEventsGenerator : ( contribs : ICustomEditorsExtensionPoint [ ] , result : { push ( item : string ) : void } ) => {
94
+ for ( const contrib of contribs ) {
95
+ const viewType = contrib [ Fields . viewType ] ;
96
+ if ( viewType ) {
97
+ result . push ( `onCustomEditor:${ viewType } ` ) ;
98
+ }
99
+ }
100
+ } ,
93
101
} ) ;
You can’t perform that action at this time.
0 commit comments