.vscode/extensions/redhat.vscode-yaml-0.7.2/node_modules/yaml-language-server/out/server/src/server.js
/**
 * Called when server settings or schema associations are changed
 * Re-creates schema associations and revalidates any open YAML files
 */
Called when server settings or schema associations are changed
Re-creates schema associations and revalidates any open YAML files
Called when server settings or schema associations are changed Re - creates schema associations and revalidates any open YAML files
function updateConfiguration() {
    let languageSettings = {
        validate: yamlShouldValidate,
        hover: yamlShouldHover,
        completion: yamlShouldCompletion,
        schemas: [],
        customTags: customTags,
        format: yamlFormatterSettings.enable
    };
    if (schemaAssociations) {
        for (const pattern in schemaAssociations) {
            const association = schemaAssociations[pattern];
            if (Array.isArray(association)) {
                association.forEach(uri => {
                    languageSettings = configureSchemas(uri, [pattern], null, languageSettings);
                });
            }
        }
    }
    if (schemaConfigurationSettings) {
        schemaConfigurationSettings.forEach(schema => {
            let uri = schema.uri;
            if (!uri && schema.schema) {
                uri = schema.schema.id;
            }
            if (!uri && schema.fileMatch) {
                uri = 'vscode://schemas/custom/' + encodeURIComponent(schema.fileMatch.join('&'));
            }
            if (uri) {
                if (paths_1.isRelativePath(uri)) {
                    uri = paths_1.relativeToAbsolutePath(workspaceFolders, workspaceRoot, uri);
                }
                languageSettings = configureSchemas(uri, schema.fileMatch, schema.schema, languageSettings);
            }
        });
    }
    if (schemaStoreSettings) {
        languageSettings.schemas = languageSettings.schemas.concat(schemaStoreSettings);
    }
    exports.customLanguageService.configure(languageSettings);
    documents.all().forEach(triggerValidation);
}
function updateConfiguration ( ) { let languageSettings = { validate : yamlShouldValidate , hover : yamlShouldHover , completion : yamlShouldCompletion , schemas : [ ] , customTags : customTags , format : yamlFormatterSettings . enable } ; if ( schemaAssociations ) { for ( const pattern in schemaAssociations ) { const association = schemaAssociations [ pattern ] ; if ( Array . isArray ( association ) ) { association . forEach ( uri => { languageSettings = configureSchemas ( uri , [ pattern ] , null , languageSettings ) ; } ) ; } } } if ( schemaConfigurationSettings ) { schemaConfigurationSettings . forEach ( schema => { let uri = schema . uri ; if ( ! uri && schema . schema ) { uri = schema . schema . id ; } if ( ! uri && schema . fileMatch ) { uri = 'vscode://schemas/custom/' + encodeURIComponent ( schema . fileMatch . join ( '&' ) ) ; } if ( uri ) { if ( paths_1 . isRelativePath ( uri ) ) { uri = paths_1 . relativeToAbsolutePath ( workspaceFolders , workspaceRoot , uri ) ; } languageSettings = configureSchemas ( uri , schema . fileMatch , schema . schema , languageSettings ) ; } } ) ; } if ( schemaStoreSettings ) { languageSettings . schemas = languageSettings . schemas . concat ( schemaStoreSettings ) ; } exports . customLanguageService . configure ( languageSettings ) ; documents . all ( ) . forEach ( triggerValidation ) ; }
Called when server settings or schema associations are changed
 Re-creates schema associations and revalidates any open YAML files
Called when server settings or schema associations are changed Re - creates schema associations and revalidates any open YAML files
// Revalidate any open text documents