Unverified Publisher

Flags items published by entities that haven’t gone through the publisher verification process of the marketplace. Lack of verification may indicate higher risk, as the publisher’s identity and trustworthiness are unconfirmed.

medium

Unmaintained Item

Flags items that are not maintained on the marketplace, suggesting concerns about the item's reputation and the publisher's reliability.

low

Publisher Has Only One Item

Flags publishers that publish only one item on the marketplace, suggesting concerns about the publisher's reliability.

low

This VSCode extension is designed to enhance YAML editing experience specifically for Rancher Kubernetes Engine (RKE) cluster configuration files named cluster.yml or cluster.yaml. It achieves this by associating these files with a JSON schema that provides validation and autocompletion features.

Key Behaviors:

  • Schema Association:
    • The extension sets a JSON schema URL (https://raw.githubusercontent.com/dcermak/vscode-rke-cluster-config/main/schemas/cluster.yml.json) for files named cluster.yml or cluster.yaml.
    • If the extension is in debug mode (determined by the environment variable EXTENSION_DEBUG), it uses a local schema file path instead of the remote URL.
  • Configuration Update:
    • It reads the current YAML schema configuration from VSCode settings.
    • Adds or updates the schema association for the specified YAML files.
    • Updates the global user settings with the new schema mapping.

API Calls and Activities:

  • Uses VSCode API (vscode.workspace.getConfiguration and update) to read and modify user settings.
  • Uses Node.js path.resolve to determine local schema file path in debug mode.

Network Activity:

  • References a remote JSON schema hosted on GitHub raw content URL for schema validation.

Filesystem Activity:

  • No files are created, modified, or deleted by this extension.

Process Execution:

  • No external processes, shell commands, or PowerShell scripts are executed.

Security and Permissions:

  • Does not perform any registry operations, privilege escalations, user creation, clipboard access, or data exfiltration.

Code Snippet of Potential Interest:

const SCHEMA_URL = "https://raw.githubusercontent.com/dcermak/vscode-rke-cluster-config/main/schemas/cluster.yml.json";
const CLUSTER_YAML_FILES = ["cluster.yml", "cluster.yaml"];

// Updating YAML schema configuration
const yamlConfSection = vscode.workspace.getConfiguration("yaml");
const yamlSchemas = yamlConfSection.get("schemas", {});

if (yamlSchemas[key] === undefined) {
    yamlSchemas[key] = CLUSTER_YAML_FILES;
    yield yamlConfSection.update("schemas", yamlSchemas, vscode.ConfigurationTarget.Global);
}

Licenses

MIT License

View License

MIT License

Copyright (c) 2021 Dan Čermák

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal ...

See More