Skip to content

Commit e9bb0ef

Browse files
committed
Update the name of the content request notification to be:
yaml/registerVSCodeContentRequest Signed-off-by: Josh Pinkney <joshpinkney@gmail.com>
1 parent 9aa9e5b commit e9bb0ef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/extension.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ namespace SchemaAssociationNotification {
3939
}
4040

4141
// eslint-disable-next-line @typescript-eslint/no-namespace
42-
namespace ContentRequestRegistration {
42+
namespace VSCodeContentRequestRegistration {
4343
// eslint-disable-next-line @typescript-eslint/ban-types
44-
export const type: NotificationType<{}, {}> = new NotificationType('yaml/registerContentRequest');
44+
export const type: NotificationType<{}, {}> = new NotificationType('yaml/registerVSCodeContentRequest');
4545
}
4646

4747
// eslint-disable-next-line @typescript-eslint/no-namespace
@@ -107,7 +107,7 @@ export function activate(context: ExtensionContext): SchemaExtensionAPI {
107107
// Tell the server that the client is ready to provide custom schema content
108108
client.sendNotification(DynamicCustomSchemaRequestRegistration.type);
109109
// Tell the server that the client supports schema requests sent directly to it
110-
client.sendNotification(ContentRequestRegistration.type);
110+
client.sendNotification(VSCodeContentRequestRegistration.type);
111111
// If the server asks for custom schema content, get it and send it back
112112
client.onRequest(CUSTOM_SCHEMA_REQUEST, (resource: string) => {
113113
return schemaExtensionAPI.requestCustomSchema(resource);

0 commit comments

Comments
 (0)