@@ -74,6 +74,12 @@ namespace DynamicCustomSchemaRequestRegistration {
74
74
export const type : NotificationType < { } > = new NotificationType ( 'yaml/registerCustomSchemaRequest' ) ;
75
75
}
76
76
77
+ // eslint-disable-next-line @typescript-eslint/no-namespace
78
+ export namespace KubernetesSchemaURLsNotification {
79
+ // eslint-disable-next-line @typescript-eslint/ban-types
80
+ export const type : NotificationType < string [ ] > = new NotificationType ( 'yaml/kubernetesSchemaURLs' ) ;
81
+ }
82
+
77
83
// eslint-disable-next-line @typescript-eslint/no-namespace
78
84
namespace ResultLimitReachedNotification {
79
85
// eslint-disable-next-line @typescript-eslint/ban-types
@@ -161,6 +167,7 @@ export function startClient(
161
167
client . sendNotification ( SchemaAssociationNotification . type , getSchemaAssociations ( ) ) ;
162
168
findConflicts ( ) ;
163
169
} ) ;
170
+ client . sendNotification ( KubernetesSchemaURLsNotification . type , getKubernetesSchemaURLs ( ) ) ;
164
171
// Tell the server that the client is ready to provide custom schema content
165
172
client . sendNotification ( DynamicCustomSchemaRequestRegistration . type ) ;
166
173
// Tell the server that the client supports schema requests sent directly to it
@@ -229,6 +236,10 @@ function findConflicts(): void {
229
236
}
230
237
}
231
238
239
+ function getKubernetesSchemaURLs ( ) : string [ ] {
240
+ return workspace . getConfiguration ( 'yaml' ) . get ( 'kubernetesSchemaURLs' ) || [ ] ;
241
+ }
242
+
232
243
function getSchemaAssociations ( ) : ISchemaAssociation [ ] {
233
244
const associations : ISchemaAssociation [ ] = [ ] ;
234
245
extensions . all . forEach ( ( extension ) => {
0 commit comments