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
|
|
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
|
|
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" | "
|
|
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;
|
package/build/ace-linters.d.ts
CHANGED
|
@@ -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" | "
|
|
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;
|
package/build/ace-linters.js
CHANGED
package/build/json-service.js
CHANGED
|
@@ -13478,7 +13478,7 @@
|
|
|
13478
13478
|
$configureJsonService(schemas) {
|
|
13479
13479
|
this.$service.configure({
|
|
13480
13480
|
schemas,
|
|
13481
|
-
allowComments: this.
|
|
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.
|
|
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);
|