ace-linters 2.1.2 → 2.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13478,7 +13478,7 @@
13478
13478
  $configureJsonService(schemas) {
13479
13479
  this.$service.configure({
13480
13480
  schemas,
13481
- allowComments: this.mode === "json5",
13481
+ allowComments: this.globalOptions.allowComments,
13482
13482
  validate: true
13483
13483
  });
13484
13484
  }
@@ -13513,7 +13513,7 @@
13513
13513
  let fullDocument = this.getDocument(document.uri);
13514
13514
  if (!fullDocument) return [];
13515
13515
  let jsonDocument = this.$service.parseJSONDocument(fullDocument);
13516
- return filterDiagnostics(await this.$service.doValidation(fullDocument, jsonDocument, { trailingCommas: this.mode === "json5" ? "ignore" : "error" }), this.optionsToFilterDiagnostics);
13516
+ return filterDiagnostics(await this.$service.doValidation(fullDocument, jsonDocument, { trailingCommas: this.globalOptions.trailingCommas ? "ignore" : "error" }), this.optionsToFilterDiagnostics);
13517
13517
  }
13518
13518
  async doComplete(document, position) {
13519
13519
  let fullDocument = this.getDocument(document.uri);