From 39487b2686619ce9e6f9574721db51e80730c688 Mon Sep 17 00:00:00 2001 From: Muthurajan Sivasubramanian <93245779+msivasubramaniaan@users.noreply.github.com> Date: Tue, 4 Jun 2024 18:58:45 +0530 Subject: [PATCH] Revert "Support Multiple Custom Kubernetes Versions and CRDs" --- package.json | 5 ----- src/extension.ts | 11 ----------- 2 files changed, 16 deletions(-) diff --git a/package.json b/package.json index 248c6e4f..fd4dc2a5 100644 --- a/package.json +++ b/package.json @@ -166,11 +166,6 @@ "default": [], "description": "Custom tags for the parser to use" }, - "yaml.kubernetesSchemaURLs": { - "type": "array", - "default": [], - "description": "URLs to Kubernetes schemas" - }, "yaml.schemaStore.enable": { "type": "boolean", "default": true, diff --git a/src/extension.ts b/src/extension.ts index f6a1dea0..df025f7c 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -74,12 +74,6 @@ namespace DynamicCustomSchemaRequestRegistration { export const type: NotificationType<{}> = new NotificationType('yaml/registerCustomSchemaRequest'); } -// eslint-disable-next-line @typescript-eslint/no-namespace -export namespace KubernetesSchemaURLsNotification { - // eslint-disable-next-line @typescript-eslint/ban-types - export const type: NotificationType = new NotificationType('yaml/kubernetesSchemaURLs'); -} - // eslint-disable-next-line @typescript-eslint/no-namespace namespace ResultLimitReachedNotification { // eslint-disable-next-line @typescript-eslint/ban-types @@ -167,7 +161,6 @@ export function startClient( client.sendNotification(SchemaAssociationNotification.type, getSchemaAssociations()); findConflicts(); }); - client.sendNotification(KubernetesSchemaURLsNotification.type, getKubernetesSchemaURLs()); // Tell the server that the client is ready to provide custom schema content client.sendNotification(DynamicCustomSchemaRequestRegistration.type); // Tell the server that the client supports schema requests sent directly to it @@ -236,10 +229,6 @@ function findConflicts(): void { } } -function getKubernetesSchemaURLs(): string[] { - return workspace.getConfiguration('yaml').get('kubernetesSchemaURLs') || []; -} - function getSchemaAssociations(): ISchemaAssociation[] { const associations: ISchemaAssociation[] = []; extensions.all.forEach((extension) => {