Skip to content

Commit 4c52d89

Browse files
authored
Merge pull request #121 from redhat-developer/dynamic-custom-schema
Send DynamicCustomSchemaRequestRegistration request
2 parents b5bbefc + 404c287 commit 4c52d89

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/extension.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
2327
export 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
});

0 commit comments

Comments
 (0)