Skip to content

Commit

Permalink
Fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
JPinkney committed Jan 7, 2019
1 parent c3a9b95 commit a614c7b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,9 @@ interface Settings {
hover: boolean;
completion: boolean;
customTags: Array<String>;
schemaStore: boolean;
schemaStore: {
enable: boolean
}
};
http: {
proxy: string;
Expand Down Expand Up @@ -226,7 +228,9 @@ connection.onDidChangeConfiguration((change) => {
yamlShouldHover = settings.yaml.hover;
yamlShouldCompletion = settings.yaml.completion;
customTags = settings.yaml.customTags ? settings.yaml.customTags : [];
schemaStoreEnabled = settings.yaml.schemaStore;
if (settings.yaml.schemaStore) {
schemaStoreEnabled = settings.yaml.schemaStore.enable;
}
if (settings.yaml.format) {
yamlFormatterSettings = {
singleQuote: settings.yaml.format.singleQuote || false,
Expand Down

0 comments on commit a614c7b

Please sign in to comment.