Skip to content

Commit

Permalink
Fix configuration changes to accept partial configs
Browse files Browse the repository at this point in the history
  • Loading branch information
trajamsmith committed May 1, 2020
1 parent 27522e8 commit 893ca44
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -404,10 +404,10 @@ connection.onDidChangeConfiguration(change => {

specificValidatorPaths = [];
if (settings.yaml) {
yamlConfigurationSettings = settings.yaml.schemas;
yamlShouldValidate = settings.yaml.validate;
yamlShouldHover = settings.yaml.hover;
yamlShouldCompletion = settings.yaml.completion;
yamlConfigurationSettings = settings.yaml.schemas || yamlConfigurationSettings;
yamlShouldValidate = settings.yaml.validate || yamlShouldValidate;
yamlShouldHover = settings.yaml.hover || yamlShouldHover;
yamlShouldCompletion = settings.yaml.completion || yamlShouldCompletion;
customTags = settings.yaml.customTags ? settings.yaml.customTags : [];

if (settings.yaml.schemaStore) {
Expand Down

0 comments on commit 893ca44

Please sign in to comment.