Skip to content

Commit f6be2dd

Browse files
Merge pull request #1028 from redhat-developer/revert-912-f-custom-kubernetes-urls
Revert "Support Multiple Custom Kubernetes Versions and CRDs"
2 parents 0bf5623 + 39487b2 commit f6be2dd

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

package.json

-5
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,6 @@
166166
"default": [],
167167
"description": "Custom tags for the parser to use"
168168
},
169-
"yaml.kubernetesSchemaURLs": {
170-
"type": "array",
171-
"default": [],
172-
"description": "URLs to Kubernetes schemas"
173-
},
174169
"yaml.schemaStore.enable": {
175170
"type": "boolean",
176171
"default": true,

src/extension.ts

-11
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,6 @@ namespace DynamicCustomSchemaRequestRegistration {
7474
export const type: NotificationType<{}> = new NotificationType('yaml/registerCustomSchemaRequest');
7575
}
7676

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-
8377
// eslint-disable-next-line @typescript-eslint/no-namespace
8478
namespace ResultLimitReachedNotification {
8579
// eslint-disable-next-line @typescript-eslint/ban-types
@@ -167,7 +161,6 @@ export function startClient(
167161
client.sendNotification(SchemaAssociationNotification.type, getSchemaAssociations());
168162
findConflicts();
169163
});
170-
client.sendNotification(KubernetesSchemaURLsNotification.type, getKubernetesSchemaURLs());
171164
// Tell the server that the client is ready to provide custom schema content
172165
client.sendNotification(DynamicCustomSchemaRequestRegistration.type);
173166
// Tell the server that the client supports schema requests sent directly to it
@@ -236,10 +229,6 @@ function findConflicts(): void {
236229
}
237230
}
238231

239-
function getKubernetesSchemaURLs(): string[] {
240-
return workspace.getConfiguration('yaml').get('kubernetesSchemaURLs') || [];
241-
}
242-
243232
function getSchemaAssociations(): ISchemaAssociation[] {
244233
const associations: ISchemaAssociation[] = [];
245234
extensions.all.forEach((extension) => {

0 commit comments

Comments
 (0)