Skip to content

Commit

Permalink
Merge pull request #1028 from redhat-developer/revert-912-f-custom-ku…
Browse files Browse the repository at this point in the history
…bernetes-urls

Revert "Support Multiple Custom Kubernetes Versions and CRDs"
  • Loading branch information
msivasubramaniaan authored Jun 4, 2024
2 parents 0bf5623 + 39487b2 commit f6be2dd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
5 changes: 0 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
11 changes: 0 additions & 11 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string[]> = new NotificationType('yaml/kubernetesSchemaURLs');
}

// eslint-disable-next-line @typescript-eslint/no-namespace
namespace ResultLimitReachedNotification {
// eslint-disable-next-line @typescript-eslint/ban-types
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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) => {
Expand Down

0 comments on commit f6be2dd

Please sign in to comment.