|
1 | 1 | {
|
2 |
| - "command": ["${node_bin}", "${server_path}", "--stdio"], |
3 |
| - "languages": [ |
4 |
| - { |
5 |
| - "languageId": "javascriptreact", |
6 |
| - "document_selector": "source.jsx | source.js.jsx | source.js.react", |
7 |
| - }, |
8 |
| - { |
9 |
| - "languageId": "javascript", |
10 |
| - "document_selector": "source.js", |
11 |
| - }, |
12 |
| - { |
13 |
| - "languageId": "typescriptreact", |
14 |
| - "document_selector": "source.tsx | source.ts.react", |
15 |
| - }, |
16 |
| - { |
17 |
| - "languageId": "typescript", |
18 |
| - "document_selector": "source.ts", |
19 |
| - }, |
20 |
| - { |
21 |
| - "languageId": "vue", |
22 |
| - "document_selector": "text.html.vue", |
23 |
| - }, |
24 |
| - { |
25 |
| - "languageId": "html", |
26 |
| - "document_selector": "text.html.basic", |
27 |
| - }, |
28 |
| - ], |
29 | 2 | "settings": {
|
30 | 3 | "codeAction.disableRuleComment": {
|
31 | 4 | // Show the disable code actions.
|
|
88 | 61 | // NOTE that the `{ "pattern": glob pattern }` variant is not supported in LSP-eslint.
|
89 | 62 | // "workingDirectories": null
|
90 | 63 | },
|
| 64 | + // File watching functionality only works with "LSP-file-watcher-chokidar" package installed. |
| 65 | + "file_watcher": { |
| 66 | + "patterns": [ |
| 67 | + "**/.eslintr{c.js,c.yaml,c.yml,c,c.json}", |
| 68 | + "**/.eslintignore", |
| 69 | + "**/package.json", |
| 70 | + ] |
| 71 | + }, |
| 72 | + "command": ["${node_bin}", "${server_path}", "--stdio"], |
91 | 73 | "env": {
|
92 | 74 | // Enables ESLint debug mode
|
93 | 75 | // "DEBUG": "eslint:*,-eslint:code-path",
|
94 | 76 | // The value of NODE_ENV to use when running eslint tasks.
|
95 | 77 | // "NODE_ENV": "production",
|
96 | 78 | },
|
| 79 | + "languages": [ |
| 80 | + { |
| 81 | + "languageId": "javascriptreact", |
| 82 | + "document_selector": "source.jsx | source.js.jsx | source.js.react", |
| 83 | + }, |
| 84 | + { |
| 85 | + "languageId": "javascript", |
| 86 | + "document_selector": "source.js", |
| 87 | + }, |
| 88 | + { |
| 89 | + "languageId": "typescriptreact", |
| 90 | + "document_selector": "source.tsx | source.ts.react", |
| 91 | + }, |
| 92 | + { |
| 93 | + "languageId": "typescript", |
| 94 | + "document_selector": "source.ts", |
| 95 | + }, |
| 96 | + { |
| 97 | + "languageId": "vue", |
| 98 | + "document_selector": "text.html.vue", |
| 99 | + }, |
| 100 | + { |
| 101 | + "languageId": "html", |
| 102 | + "document_selector": "text.html.basic", |
| 103 | + }, |
| 104 | + ], |
97 | 105 | }
|
0 commit comments