Skip to content

Commit

Permalink
update server to latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
rchl authored and predragnikolic committed Mar 22, 2023
1 parent 1fabad4 commit cebd8c4
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 14 deletions.
16 changes: 12 additions & 4 deletions LSP-eslint.sublime-settings
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
{
"settings": {
// 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.
"useESLintClass": false,
// Show disable lint rule in the quick fix menu.
"codeAction.disableRuleComment": {
// Show the disable code actions.
"enable": true,
// Configure the disable rule code action to insert the comment on the `sameLine` or `separateLine`.
"location": "separateLine"
"location": "separateLine",
// The comment style to use when disabling a rule on a specific line.
"commentStyle": "line"
},
// Show open lint rule documentation web page in the quick fix.
"codeAction.showDocumentation": {
Expand All @@ -18,6 +17,8 @@
"codeActionOnSave.enable": true,
// Specifies the code action mode. Possible values are 'all' and 'problems'.
"codeActionOnSave.mode": "all",
// Enables support for experimental Flat Config (aka `eslint.config.js`, supported by ESLint version 8.21 or later).
"experimental.useFlatConfig": false,
// The rules that should be executed when computing the code actions on save or formatting a file.
// Defaults to the rules configured via the ESLint configuration.
// An empty array results in no rules being considered.
Expand Down Expand Up @@ -58,6 +59,8 @@
// Deprecated. Recommended to use the global LSP option `lsp_code_actions_on_save` with the.
// `"source.fixAll.eslint": true` key instead.
"format": false,
// If true, untitled files won't be validated by ESLint.
"ignoreUntitled": false,
// A path added to NODE_PATH when resolving the eslint module (auto-detected by default).
"nodePath": null,
// Whether ESLint should issue a warning on ignored files.
Expand Down Expand Up @@ -92,6 +95,8 @@
"vue",
"markdown",
],
// Shortens the text spans of underlined problems to their first related line.
"problems.shortenToSingleLine": false,
// Override the severity of one or more rules, regardless of the project's ESLint config. Use globs to
// apply default severities for multiple rules.
"rulesCustomizations": [],
Expand All @@ -100,6 +105,9 @@
// Run the linter on save or on type.
// Possible values: `onSave`, `onType`
"run": "onType",
// 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.
"useESLintClass": false,
// An array of language ids which should be validated by ESLint.
"validate": [
"javascript",
Expand Down
4 changes: 2 additions & 2 deletions language-server/out/eslintServer.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions language-server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-server",
"version": "2.2.5",
"version": "2.3.3",
"private": true,
"author": "Microsoft Corporation",
"license": "MIT",
Expand All @@ -15,9 +15,9 @@
"node": "*"
},
"dependencies": {
"vscode-languageserver": "8.0.2-next.5",
"vscode-languageserver-textdocument": "1.0.4",
"vscode-uri": "^3.0.3"
"vscode-languageserver": "8.1.0",
"vscode-languageserver-textdocument": "1.0.9",
"vscode-uri": "^3.0.7"
},
"scripts": {
"webpack": "npm run clean && webpack --mode production --config ./webpack.config.js",
Expand Down
4 changes: 2 additions & 2 deletions language-server/update-info.log
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Archive: src-release-2.2.6.zip
705f5f5d86aab57b16c36e31f229549883d6a37f
Archive: src-main.zip
747efb780e024eabc48b67ca68a2f8a0c594b753
32 changes: 30 additions & 2 deletions sublime-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,18 @@
"settings": {
"additionalProperties": false,
"properties": {
"problems.shortenToSingleLine": {
"type": "boolean",
"default": false,
"description": "Shortens the text spans of underlined problems to their first related line.",
"scope": "resource"
},
"experimental.useFlatConfig": {
"scope": "resource",
"type": "boolean",
"default": false,
"description": "Enables support for experimental Flat Config (aka `eslint.config.js`, supported by ESLint version 8.21 or later)."
},
"codeActionOnSave.enable": {
"type": "boolean",
"default": true,
Expand All @@ -41,7 +53,7 @@
],
"enumDescriptions": [
"Fixes all possible problems in the file. This option might take some time.",
"Only fixes reported problems that have non overlapping textual edits. This options runs a lot faster."
"Fixes only reported problems that have non-overlapping textual edits. This option runs a lot faster."
],
"markdownDescription": "Specifies the code action mode. Possible values are `all` and `problems`."
},
Expand Down Expand Up @@ -86,6 +98,12 @@
"default": false,
"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."
},
"ignoreUntitled": {
"scope": "resource",
"type": "boolean",
"default": false,
"description": "If true, untitled files won't be validated by ESLint."
},
"probe": {
"type": "array",
"items": {
Expand Down Expand Up @@ -245,7 +263,8 @@
"type": "object",
"default": {
"enable": true,
"location": "separateLine"
"location": "separateLine",
"commentStyle": "line"
},
"properties": {
"enable": {
Expand All @@ -261,6 +280,15 @@
],
"default": "separateLine",
"description": "Configure the disable rule code action to insert the comment on the same line or a new line."
},
"commentStyle": {
"type": "string",
"enum": [
"line",
"block"
],
"default": "line",
"definition": "The comment style to use when disabling a rule on a specific line."
}
},
"additionalProperties": false,
Expand Down

0 comments on commit cebd8c4

Please sign in to comment.