Files
ry.kazcloud.dev/node_modules/yaml-language-server/lib/umd/languageservice/parser/isKubernetes.js
Ryan Kazokas d181f77fb2
All checks were successful
Build and Push / build (push) Successful in 55s
Updates dockerfile
2026-02-16 15:09:37 -05:00

32 lines
1.3 KiB
JavaScript

(function (factory) {
if (typeof module === "object" && typeof module.exports === "object") {
var v = factory(require, exports);
if (v !== undefined) module.exports = v;
}
else if (typeof define === "function" && define.amd) {
define(["require", "exports", "../services/yamlSchemaService"], factory);
}
})(function (require, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isKubernetesAssociatedDocument = exports.setKubernetesParserOption = void 0;
const yamlSchemaService_1 = require("../services/yamlSchemaService");
function setKubernetesParserOption(jsonDocuments, option) {
for (const jsonDoc of jsonDocuments) {
jsonDoc.isKubernetes = option;
}
}
exports.setKubernetesParserOption = setKubernetesParserOption;
function isKubernetesAssociatedDocument(textDocument, paths) {
for (const path in paths) {
const globPath = paths[path];
const fpa = new yamlSchemaService_1.FilePatternAssociation(globPath);
if (fpa.matchesPattern(textDocument.uri)) {
return true;
}
}
return false;
}
exports.isKubernetesAssociatedDocument = isKubernetesAssociatedDocument;
});
//# sourceMappingURL=isKubernetes.js.map