Skip to content

Commit cebd8c4

Browse files
rchlpredragnikolic
authored andcommitted
update server to latest version
1 parent 1fabad4 commit cebd8c4

File tree

5 files changed

+50
-14
lines changed

5 files changed

+50
-14
lines changed

LSP-eslint.sublime-settings

+12-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
{
22
"settings": {
3-
// Whether to use the ESLint class API even if the CLIEngine API is present. The setting is only honored
4-
// when using using ESLint version 7.x.
5-
"useESLintClass": false,
63
// Show disable lint rule in the quick fix menu.
74
"codeAction.disableRuleComment": {
85
// Show the disable code actions.
96
"enable": true,
107
// Configure the disable rule code action to insert the comment on the `sameLine` or `separateLine`.
11-
"location": "separateLine"
8+
"location": "separateLine",
9+
// The comment style to use when disabling a rule on a specific line.
10+
"commentStyle": "line"
1211
},
1312
// Show open lint rule documentation web page in the quick fix.
1413
"codeAction.showDocumentation": {
@@ -18,6 +17,8 @@
1817
"codeActionOnSave.enable": true,
1918
// Specifies the code action mode. Possible values are 'all' and 'problems'.
2019
"codeActionOnSave.mode": "all",
20+
// Enables support for experimental Flat Config (aka `eslint.config.js`, supported by ESLint version 8.21 or later).
21+
"experimental.useFlatConfig": false,
2122
// The rules that should be executed when computing the code actions on save or formatting a file.
2223
// Defaults to the rules configured via the ESLint configuration.
2324
// An empty array results in no rules being considered.
@@ -58,6 +59,8 @@
5859
// Deprecated. Recommended to use the global LSP option `lsp_code_actions_on_save` with the.
5960
// `"source.fixAll.eslint": true` key instead.
6061
"format": false,
62+
// If true, untitled files won't be validated by ESLint.
63+
"ignoreUntitled": false,
6164
// A path added to NODE_PATH when resolving the eslint module (auto-detected by default).
6265
"nodePath": null,
6366
// Whether ESLint should issue a warning on ignored files.
@@ -92,6 +95,8 @@
9295
"vue",
9396
"markdown",
9497
],
98+
// Shortens the text spans of underlined problems to their first related line.
99+
"problems.shortenToSingleLine": false,
95100
// Override the severity of one or more rules, regardless of the project's ESLint config. Use globs to
96101
// apply default severities for multiple rules.
97102
"rulesCustomizations": [],
@@ -100,6 +105,9 @@
100105
// Run the linter on save or on type.
101106
// Possible values: `onSave`, `onType`
102107
"run": "onType",
108+
// Whether to use the ESLint class API even if the CLIEngine API is present. The setting is only honored
109+
// when using using ESLint version 7.x.
110+
"useESLintClass": false,
103111
// An array of language ids which should be validated by ESLint.
104112
"validate": [
105113
"javascript",

language-server/out/eslintServer.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

language-server/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-server",
3-
"version": "2.2.5",
3+
"version": "2.3.3",
44
"private": true,
55
"author": "Microsoft Corporation",
66
"license": "MIT",
@@ -15,9 +15,9 @@
1515
"node": "*"
1616
},
1717
"dependencies": {
18-
"vscode-languageserver": "8.0.2-next.5",
19-
"vscode-languageserver-textdocument": "1.0.4",
20-
"vscode-uri": "^3.0.3"
18+
"vscode-languageserver": "8.1.0",
19+
"vscode-languageserver-textdocument": "1.0.9",
20+
"vscode-uri": "^3.0.7"
2121
},
2222
"scripts": {
2323
"webpack": "npm run clean && webpack --mode production --config ./webpack.config.js",

language-server/update-info.log

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Archive: src-release-2.2.6.zip
2-
705f5f5d86aab57b16c36e31f229549883d6a37f
1+
Archive: src-main.zip
2+
747efb780e024eabc48b67ca68a2f8a0c594b753

sublime-package.json

+30-2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,18 @@
2727
"settings": {
2828
"additionalProperties": false,
2929
"properties": {
30+
"problems.shortenToSingleLine": {
31+
"type": "boolean",
32+
"default": false,
33+
"description": "Shortens the text spans of underlined problems to their first related line.",
34+
"scope": "resource"
35+
},
36+
"experimental.useFlatConfig": {
37+
"scope": "resource",
38+
"type": "boolean",
39+
"default": false,
40+
"description": "Enables support for experimental Flat Config (aka `eslint.config.js`, supported by ESLint version 8.21 or later)."
41+
},
3042
"codeActionOnSave.enable": {
3143
"type": "boolean",
3244
"default": true,
@@ -41,7 +53,7 @@
4153
],
4254
"enumDescriptions": [
4355
"Fixes all possible problems in the file. This option might take some time.",
44-
"Only fixes reported problems that have non overlapping textual edits. This options runs a lot faster."
56+
"Fixes only reported problems that have non-overlapping textual edits. This option runs a lot faster."
4557
],
4658
"markdownDescription": "Specifies the code action mode. Possible values are `all` and `problems`."
4759
},
@@ -86,6 +98,12 @@
8698
"default": false,
8799
"markdownDescription": "Whether to use the ESLint class API even if the CLIEngine API is present. The setting is only honored when using using ESLint version 7.x."
88100
},
101+
"ignoreUntitled": {
102+
"scope": "resource",
103+
"type": "boolean",
104+
"default": false,
105+
"description": "If true, untitled files won't be validated by ESLint."
106+
},
89107
"probe": {
90108
"type": "array",
91109
"items": {
@@ -245,7 +263,8 @@
245263
"type": "object",
246264
"default": {
247265
"enable": true,
248-
"location": "separateLine"
266+
"location": "separateLine",
267+
"commentStyle": "line"
249268
},
250269
"properties": {
251270
"enable": {
@@ -261,6 +280,15 @@
261280
],
262281
"default": "separateLine",
263282
"description": "Configure the disable rule code action to insert the comment on the same line or a new line."
283+
},
284+
"commentStyle": {
285+
"type": "string",
286+
"enum": [
287+
"line",
288+
"block"
289+
],
290+
"default": "line",
291+
"definition": "The comment style to use when disabling a rule on a specific line."
264292
}
265293
},
266294
"additionalProperties": false,

0 commit comments

Comments
 (0)