(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", "../utils/filePatternAssociation"], factory);
    }
})(function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    exports.setKubernetesParserOption = setKubernetesParserOption;
    exports.isKubernetesAssociatedDocument = isKubernetesAssociatedDocument;
    const filePatternAssociation_1 = require("../utils/filePatternAssociation");
    function setKubernetesParserOption(jsonDocuments, option) {
        for (const jsonDoc of jsonDocuments) {
            jsonDoc.isKubernetes = option;
        }
    }
    function isKubernetesAssociatedDocument(textDocument, paths) {
        for (const path in paths) {
            const globPath = paths[path];
            const fpa = new filePatternAssociation_1.FilePatternAssociation(globPath);
            if (fpa.matchesPattern(textDocument.uri)) {
                return true;
            }
        }
        return false;
    }
});
//# sourceMappingURL=isKubernetes.js.map