File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,10 @@ namespace SchemaAssociationNotification {
2020 export const type : NotificationType < ISchemaAssociations , any > = new NotificationType ( 'json/schemaAssociations' ) ;
2121}
2222
23+ namespace DynamicCustomSchemaRequestRegistration {
24+ export const type : NotificationType < { } , { } > = new NotificationType ( 'yaml/registerCustomSchemaRequest' ) ;
25+ }
26+
2327export function activate ( context : ExtensionContext ) {
2428
2529 // The server is implemented in node
@@ -63,6 +67,7 @@ export function activate(context: ExtensionContext) {
6367
6468 client . onReady ( ) . then ( ( ) => {
6569 client . sendNotification ( SchemaAssociationNotification . type , getSchemaAssociation ( context ) ) ;
70+ client . sendNotification ( DynamicCustomSchemaRequestRegistration . type ) ;
6671 client . onRequest ( CUSTOM_SCHEMA_REQUEST , ( resource ) => {
6772 return schemaContributor . requestCustomSchema ( resource ) ;
6873 } ) ;
You can’t perform that action at this time.
0 commit comments