update/plugins/org.eclipse.wildwebdeveloper_0.5.8.202005190736/node_modules/yaml-language-server/out/server/src/server.js
/**
 * Stores schema associations in server settings, handling kubernetes
 * @param uri string path to schema (whether local or online)
 * @param fileMatch file pattern to apply the schema to
 * @param schema schema id
 * @param languageSettings current server settings
 */
Stores schema associations in server settings, handling kubernetes
@param uri string path to schema (whether local or online)
@param fileMatch file pattern to apply the schema to
@param schema schema id
@param languageSettings current server settings
Stores schema associations in server settings handling kubernetes @param uri string path to schema ( whether local or online ) @param fileMatch file pattern to apply the schema to @param schema schema id @param languageSettings current server settings
function configureSchemas(uri, fileMatch, schema, languageSettings) {
    uri = checkSchemaURI(uri);
    if (schema === null) {
        languageSettings.schemas.push({ uri, fileMatch: fileMatch });
    }
    else {
        languageSettings.schemas.push({ uri, fileMatch: fileMatch, schema: schema });
    }
    if (fileMatch.constructor === Array && uri === KUBERNETES_SCHEMA_URL) {
        fileMatch.forEach(url => {
            specificValidatorPaths.push(url);
        });
    }
    else if (uri === KUBERNETES_SCHEMA_URL) {
        specificValidatorPaths.push(fileMatch);
    }
    return languageSettings;
}
function configureSchemas ( uri , fileMatch , schema , languageSettings ) { uri = checkSchemaURI ( uri ) ; if ( schema === null ) { languageSettings . schemas . push ( { uri , fileMatch : fileMatch } ) ; } else { languageSettings . schemas . push ( { uri , fileMatch : fileMatch , schema : schema } ) ; } if ( fileMatch . constructor === Array && uri === KUBERNETES_SCHEMA_URL ) { fileMatch . forEach ( url => { specificValidatorPaths . push ( url ) ; } ) ; } else if ( uri === KUBERNETES_SCHEMA_URL ) { specificValidatorPaths . push ( fileMatch ) ; } return languageSettings ; }
Stores schema associations in server settings, handling kubernetes
 @param uri string path to schema (whether local or online)
 @param fileMatch file pattern to apply the schema to
 @param schema schema id
 @param languageSettings current server settings
Stores schema associations in server settings handling kubernetes @param uri string path to schema ( whether local or online ) @param fileMatch file pattern to apply the schema to @param schema schema id @param languageSettings current server settings