ace-linters 2.1.3 → 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.
package/README.md CHANGED
@@ -160,7 +160,7 @@ import {AceLanguageClient} from "ace-linters/build/ace-language-client";
160
160
  // Create a web socket
161
161
  const serverData = {
162
162
  module: () => import("ace-linters/build/language-client"),
163
- modes: "json|json5",
163
+ modes: "json",
164
164
  type: "socket",
165
165
  socket: new WebSocket("ws://127.0.0.1:3000/exampleServer"), // address of your websocket server
166
166
  }
@@ -229,7 +229,7 @@ languageProvider.registerEditor(editor);
229
229
  ## Supported languages
230
230
  Ace linters support the following languages by default with webworkers approach:
231
231
 
232
- - JSON, JSON5 *powered by* [vscode-json-languageservice](https://github.com/Microsoft/vscode-json-languageservice)
232
+ - JSON *powered by* [vscode-json-languageservice](https://github.com/Microsoft/vscode-json-languageservice)
233
233
  - HTML *powered by* [vscode-html-languageservice](https://github.com/Microsoft/vscode-html-languageservice)
234
234
  - CSS, SCSS, LESS *powered by* [vscode-css-languageservice](https://github.com/Microsoft/vscode-css-languageservice)
235
235
  - Typescript, Javascript, JSX, TSX *powered by* [Typescript](https://github.com/Microsoft/TypeScript)
@@ -522,7 +522,6 @@ export interface CssServiceOptions extends ServiceOptionsWithErrorMessages {
522
522
  }
523
523
  export interface ServiceOptionsMap {
524
524
  json: JsonServiceOptions;
525
- json5: JsonServiceOptions;
526
525
  typescript: TsServiceOptions;
527
526
  html: HtmlServiceOptions;
528
527
  yaml: YamlServiceOptions;
@@ -540,7 +539,7 @@ export interface ServiceOptionsMap {
540
539
  lua: LuaServiceOptions;
541
540
  [serviceName: string]: any;
542
541
  }
543
- export type SupportedServices = "json" | "json5" | "typescript" | "css" | "html" | "yaml" | "php" | "xml" | /** @deprecated would be removed in next iterations */ "javascript" | "eslint" | "lua" | "less" | "scss" | "python";
542
+ export type SupportedServices = "json" | "typescript" | "css" | "html" | "yaml" | "php" | "xml" | /** @deprecated would be removed in next iterations */ "javascript" | "eslint" | "lua" | "less" | "scss" | "python";
544
543
  /** Options for the completer coming from the LSP server */
545
544
  export interface LspCompleterOptions {
546
545
  triggerCharacters: TriggerCharacterOptions;
@@ -8469,7 +8469,7 @@
8469
8469
  name: "json",
8470
8470
  script: "json-service.js",
8471
8471
  className: "JsonService",
8472
- modes: "json|json5"
8472
+ modes: "json"
8473
8473
  },
8474
8474
  {
8475
8475
  name: "html",
@@ -484,7 +484,6 @@ export interface CssServiceOptions extends ServiceOptionsWithErrorMessages {
484
484
  }
485
485
  export interface ServiceOptionsMap {
486
486
  json: JsonServiceOptions;
487
- json5: JsonServiceOptions;
488
487
  typescript: TsServiceOptions;
489
488
  html: HtmlServiceOptions;
490
489
  yaml: YamlServiceOptions;
@@ -502,7 +501,7 @@ export interface ServiceOptionsMap {
502
501
  lua: LuaServiceOptions;
503
502
  [serviceName: string]: any;
504
503
  }
505
- export type SupportedServices = "json" | "json5" | "typescript" | "css" | "html" | "yaml" | "php" | "xml" | /** @deprecated would be removed in next iterations */ "javascript" | "eslint" | "lua" | "less" | "scss" | "python";
504
+ export type SupportedServices = "json" | "typescript" | "css" | "html" | "yaml" | "php" | "xml" | /** @deprecated would be removed in next iterations */ "javascript" | "eslint" | "lua" | "less" | "scss" | "python";
506
505
  /** Options for the completer coming from the LSP server */
507
506
  export interface LspCompleterOptions {
508
507
  triggerCharacters: TriggerCharacterOptions;
@@ -8441,7 +8441,7 @@
8441
8441
  name: "json",
8442
8442
  script: "json-service.js",
8443
8443
  className: "JsonService",
8444
- modes: "json|json5"
8444
+ modes: "json"
8445
8445
  },
8446
8446
  {
8447
8447
  name: "html",
@@ -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);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ace-linters",
3
3
  "author": "Azat Alimov <mkslanc@gmail.com>",
4
- "version": "2.1.3",
4
+ "version": "2.1.4",
5
5
  "scripts": {
6
6
  "clean": "rimraf build",
7
7
  "postbuild": "node postbuild.js",