Revamping to matrix style
This commit is contained in:
17
node_modules/yaml-language-server/lib/esm/languageservice/parser/isKubernetes.js
generated
vendored
Normal file
17
node_modules/yaml-language-server/lib/esm/languageservice/parser/isKubernetes.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
import { FilePatternAssociation } from '../services/yamlSchemaService';
|
||||
export function setKubernetesParserOption(jsonDocuments, option) {
|
||||
for (const jsonDoc of jsonDocuments) {
|
||||
jsonDoc.isKubernetes = option;
|
||||
}
|
||||
}
|
||||
export function isKubernetesAssociatedDocument(textDocument, paths) {
|
||||
for (const path in paths) {
|
||||
const globPath = paths[path];
|
||||
const fpa = new FilePatternAssociation(globPath);
|
||||
if (fpa.matchesPattern(textDocument.uri)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
//# sourceMappingURL=isKubernetes.js.map
|
||||
Reference in New Issue
Block a user