]> git.lizzy.rs Git - rust.git/blob - editors/code/package.json
removed `type.alias`
[rust.git] / editors / code / package.json
1 {
2     "name": "ra-lsp",
3     "displayName": "ra-lsp",
4     "description": "An alternative rust language server to the RLS",
5     "preview": true,
6     "private": true,
7     "version": "0.0.1",
8     "publisher": "matklad",
9     "repository": {
10         "url": "https://github.com/matklad/rust-analyzer/"
11     },
12     "categories": [
13         "Other"
14     ],
15     "engines": {
16         "vscode": "^1.40.0"
17     },
18     "scripts": {
19         "vscode:prepublish": "npm run compile",
20         "package": "vsce package",
21         "compile": "rollup -c && shx cp src/utils/terminateProcess.sh bundle/terminateProcess.sh",
22         "watch": "tsc -watch -p ./",
23         "fix": "prettier **/*.{json,ts} --write && tslint --project . --fix",
24         "lint": "tslint --project .",
25         "prettier": "prettier **/*.{json,ts}",
26         "test": "tsc -p . && node ./out/test/runTest.js",
27         "travis": "npm run compile && npm run test && npm run lint && npm run prettier -- --write && git diff --exit-code"
28     },
29     "prettier": {
30         "singleQuote": true,
31         "tabWidth": 4,
32         "trailingComma": "all"
33     },
34     "dependencies": {
35         "lookpath": "^1.0.3",
36         "seedrandom": "^3.0.5",
37         "vscode-languageclient": "^6.0.0-next.8"
38     },
39     "devDependencies": {
40         "@types/glob": "^7.1.1",
41         "@types/mocha": "^5.2.7",
42         "@types/node": "^10.17.6",
43         "@types/seedrandom": "^2.4.28",
44         "@types/vscode": "^1.40.0",
45         "glob": "^7.1.6",
46         "mocha": "^6.2.2",
47         "prettier": "^1.19.1",
48         "rollup": "^1.27.9",
49         "rollup-plugin-commonjs": "^10.1.0",
50         "rollup-plugin-node-resolve": "^5.2.0",
51         "rollup-plugin-typescript": "^1.0.1",
52         "rollup-plugin-sourcemaps": "^0.4.2",
53         "shx": "^0.3.1",
54         "tslint": "^5.20.1",
55         "tslint-config-prettier": "^1.18.0",
56         "typescript": "^3.7.3",
57         "vsce": "^1.70.0",
58         "vscode-test": "^1.2.3"
59     },
60     "activationEvents": [
61         "onLanguage:rust",
62         "onCommand:rust-analyzer.analyzerStatus",
63         "onCommand:rust-analyzer.collectGarbage",
64         "workspaceContains:**/Cargo.toml"
65     ],
66     "main": "./bundle/extension",
67     "contributes": {
68         "taskDefinitions": [
69             {
70                 "type": "cargo",
71                 "required": [
72                     "command"
73                 ],
74                 "properties": {
75                     "label": {
76                         "type": "string"
77                     },
78                     "command": {
79                         "type": "string"
80                     },
81                     "args": {
82                         "type": "array"
83                     },
84                     "env": {
85                         "type": "object"
86                     }
87                 }
88             }
89         ],
90         "commands": [
91             {
92                 "command": "rust-analyzer.syntaxTree",
93                 "title": "Show Syntax Tree",
94                 "category": "Rust Analyzer"
95             },
96             {
97                 "command": "rust-analyzer.expandMacro",
98                 "title": "Expand macro recursively",
99                 "category": "Rust Analyzer"
100             },
101             {
102                 "command": "rust-analyzer.matchingBrace",
103                 "title": "Find matching brace",
104                 "category": "Rust Analyzer"
105             },
106             {
107                 "command": "rust-analyzer.parentModule",
108                 "title": "Locate parent module",
109                 "category": "Rust Analyzer"
110             },
111             {
112                 "command": "rust-analyzer.joinLines",
113                 "title": "Join lines",
114                 "category": "Rust Analyzer"
115             },
116             {
117                 "command": "rust-analyzer.run",
118                 "title": "Run",
119                 "category": "Rust Analyzer"
120             },
121             {
122                 "command": "rust-analyzer.analyzerStatus",
123                 "title": "Status",
124                 "category": "Rust Analyzer"
125             },
126             {
127                 "command": "rust-analyzer.collectGarbage",
128                 "title": "Run garbage collection",
129                 "category": "Rust Analyzer"
130             },
131             {
132                 "command": "rust-analyzer.reload",
133                 "title": "Restart server",
134                 "category": "Rust Analyzer"
135             },
136             {
137                 "command": "rust-analyzer.startCargoWatch",
138                 "title": "Start Cargo Watch",
139                 "category": "Rust Analyzer"
140             },
141             {
142                 "command": "rust-analyzer.stopCargoWatch",
143                 "title": "Stop Cargo Watch",
144                 "category": "Rust Analyzer"
145             }
146         ],
147         "keybindings": [
148             {
149                 "command": "rust-analyzer.parentModule",
150                 "key": "ctrl+u",
151                 "when": "editorTextFocus && editorLangId == rust"
152             },
153             {
154                 "command": "rust-analyzer.matchingBrace",
155                 "key": "ctrl+shift+m",
156                 "when": "editorTextFocus && editorLangId == rust"
157             },
158             {
159                 "command": "rust-analyzer.joinLines",
160                 "key": "ctrl+shift+j",
161                 "when": "editorTextFocus && editorLangId == rust"
162             },
163             {
164                 "command": "rust-analyzer.run",
165                 "key": "ctrl+r",
166                 "when": "editorTextFocus && editorLangId == rust"
167             }
168         ],
169         "configuration": {
170             "type": "object",
171             "title": "Rust Analyzer",
172             "properties": {
173                 "rust-analyzer.highlightingOn": {
174                     "type": "boolean",
175                     "default": false,
176                     "description": "Highlight Rust code (overrides built-in syntax highlighting)"
177                 },
178                 "rust-analyzer.rainbowHighlightingOn": {
179                     "type": "boolean",
180                     "default": false,
181                     "description": "When highlighting Rust code, use a unique color per identifier"
182                 },
183                 "rust-analyzer.featureFlags": {
184                     "type": "object",
185                     "default": {},
186                     "description": "Fine grained feature flags to disable annoying features"
187                 },
188                 "rust-analyzer.enableEnhancedTyping": {
189                     "type": "boolean",
190                     "default": true,
191                     "description": "Enables enhanced typing. NOTE: If using a VIM extension, you should set this to false"
192                 },
193                 "rust-analyzer.raLspServerPath": {
194                     "type": [
195                         "string"
196                     ],
197                     "default": "ra_lsp_server",
198                     "description": "Path to ra_lsp_server executable"
199                 },
200                 "rust-analyzer.enableCargoWatchOnStartup": {
201                     "type": "string",
202                     "default": "ask",
203                     "enum": [
204                         "ask",
205                         "enabled",
206                         "disabled"
207                     ],
208                     "enumDescriptions": [
209                         "Asks each time whether to run `cargo watch`",
210                         "`cargo watch` is always started",
211                         "Don't start `cargo watch`"
212                     ],
213                     "description": "Whether to run `cargo watch` on startup"
214                 },
215                 "rust-analyzer.excludeGlobs": {
216                     "type": "array",
217                     "default": [],
218                     "description": "Paths to exclude from analysis"
219                 },
220                 "rust-analyzer.useClientWatching": {
221                     "type": "boolean",
222                     "default": false,
223                     "description": "client provided file watching instead of notify watching."
224                 },
225                 "rust-analyzer.cargo-watch.arguments": {
226                     "type": "string",
227                     "description": "`cargo-watch` arguments. (e.g: `--features=\"shumway,pdf\"` will run as `cargo watch -x \"check --features=\"shumway,pdf\"\"` )",
228                     "default": ""
229                 },
230                 "rust-analyzer.cargo-watch.command": {
231                     "type": "string",
232                     "description": "`cargo-watch` command. (e.g: `clippy` will run as `cargo watch -x clippy` )",
233                     "default": "check"
234                 },
235                 "rust-analyzer.cargo-watch.ignore": {
236                     "type": "array",
237                     "description": "A list of patterns for cargo-watch to ignore (will be passed as `--ignore`)",
238                     "default": []
239                 },
240                 "rust-analyzer.trace.server": {
241                     "type": "string",
242                     "scope": "window",
243                     "enum": [
244                         "off",
245                         "messages",
246                         "verbose"
247                     ],
248                     "enumDescriptions": [
249                         "No traces",
250                         "Error only",
251                         "Full log"
252                     ],
253                     "default": "off",
254                     "description": "Trace requests to the ra_lsp_server"
255                 },
256                 "rust-analyzer.trace.cargo-watch": {
257                     "type": "string",
258                     "scope": "window",
259                     "enum": [
260                         "off",
261                         "error",
262                         "verbose"
263                     ],
264                     "default": "off",
265                     "description": "Trace output of cargo-watch"
266                 },
267                 "rust-analyzer.lruCapacity": {
268                     "type": "number",
269                     "default": null,
270                     "description": "Number of syntax trees rust-analyzer keeps in memory"
271                 },
272                 "rust-analyzer.displayInlayHints": {
273                     "type": "boolean",
274                     "default": true,
275                     "description": "Display additional type information in the editor"
276                 },
277                 "rust-analyzer.maxInlayHintLength": {
278                     "type": "number",
279                     "default": 20,
280                     "description": "Maximum length for inlay hints"
281                 }
282             }
283         },
284         "problemPatterns": [
285             {
286                 "name": "rustc",
287                 "patterns": [
288                     {
289                         "regexp": "^(warning|warn|error)(?:\\[(.*?)\\])?: (.*)$",
290                         "severity": 1,
291                         "code": 2,
292                         "message": 3
293                     },
294                     {
295                         "regexp": "^[\\s->=]*(.*?):(\\d*):(\\d*)\\s*$",
296                         "file": 1,
297                         "line": 2,
298                         "column": 3
299                     }
300                 ]
301             }
302         ],
303         "problemMatchers": [
304             {
305                 "name": "rustc",
306                 "fileLocation": [
307                     "relative",
308                     "${workspaceRoot}"
309                 ],
310                 "pattern": "$rustc"
311             },
312             {
313                 "name": "rustc-watch",
314                 "fileLocation": [
315                     "relative",
316                     "${workspaceRoot}"
317                 ],
318                 "background": {
319                     "beginsPattern": "^\\[Running\\b",
320                     "endsPattern": "^\\[Finished running\\b"
321                 },
322                 "pattern": "$rustc"
323             }
324         ],
325         "colors": [
326             {
327                 "id": "ralsp.comment",
328                 "description": "Color for comments",
329                 "defaults": {
330                     "dark": "#6A9955",
331                     "light": "#008000",
332                     "highContrast": "#7CA668"
333                 }
334             },
335             {
336                 "id": "ralsp.string",
337                 "description": "Color for strings",
338                 "defaults": {
339                     "dark": "#CE9178",
340                     "light": "#A31515",
341                     "highContrast": "#CE9178"
342                 }
343             },
344             {
345                 "id": "ralsp.keyword",
346                 "description": "Color for keywords",
347                 "defaults": {
348                     "dark": "#569cd6",
349                     "light": "#0000FF",
350                     "highContrast": "#569CD6"
351                 }
352             },
353             {
354                 "id": "ralsp.keyword.control",
355                 "description": "Color for control keywords",
356                 "defaults": {
357                     "dark": "#C586C0",
358                     "light": "#AF00DB",
359                     "highContrast": "#C586C0"
360                 }
361             },
362             {
363                 "id": "ralsp.keyword.unsafe",
364                 "description": "Color for unsafe",
365                 "defaults": {
366                     "dark": "#FF3030",
367                     "light": "#FF1010",
368                     "highContrast": "#FF1010"
369                 }
370             },
371             {
372                 "id": "ralsp.function",
373                 "description": "Color for functions",
374                 "defaults": {
375                     "dark": "#DCDCAA",
376                     "light": "#795E26",
377                     "highContrast": "#DCDCAA"
378                 }
379             },
380             {
381                 "id": "ralsp.parameter",
382                 "description": "Color for parameters",
383                 "defaults": {
384                     "dark": "#9CDCFE",
385                     "light": "#001080",
386                     "highContrast": "#9CDCFE"
387                 }
388             },
389             {
390                 "id": "ralsp.builtin",
391                 "description": "Color for builtins",
392                 "defaults": {
393                     "dark": "#DD6718",
394                     "light": "#DD6718",
395                     "highContrast": "#DD6718"
396                 }
397             },
398             {
399                 "id": "ralsp.text",
400                 "description": "Color for text",
401                 "defaults": {
402                     "dark": "#D4D4D4",
403                     "light": "#000000",
404                     "highContrast": "#FFFFFF"
405                 }
406             },
407             {
408                 "id": "ralsp.attribute",
409                 "description": "Color for attributes",
410                 "defaults": {
411                     "dark": "#9FE9BF",
412                     "light": "#1F4B1F",
413                     "highContrast": "#108010"
414                 }
415             },
416             {
417                 "id": "ralsp.literal",
418                 "description": "Color for literals",
419                 "defaults": {
420                     "dark": "#BECEA8",
421                     "light": "#09885A",
422                     "highContrast": "#B5CEA8"
423                 }
424             },
425             {
426                 "id": "ralsp.literal.numeric",
427                 "description": "Color for numeric literals",
428                 "defaults": {
429                     "dark": "#BECEA8",
430                     "light": "#09885A",
431                     "highContrast": "#B5CEA8"
432                 }
433             },
434             {
435                 "id": "ralsp.literal.char",
436                 "description": "Color for character literals",
437                 "defaults": {
438                     "dark": "#BECEA8",
439                     "light": "#09885A",
440                     "highContrast": "#B5CEA8"
441                 }
442             },
443             {
444                 "id": "ralsp.literal.byte",
445                 "description": "Color for byte literals",
446                 "defaults": {
447                     "dark": "#BECEA8",
448                     "light": "#09885A",
449                     "highContrast": "#B5CEA8"
450                 }
451             },
452             {
453                 "id": "ralsp.macro",
454                 "description": "Color for macros",
455                 "defaults": {
456                     "dark": "#BFEBBF",
457                     "light": "#DD6718",
458                     "highContrast": "#ED7718"
459                 }
460             },
461             {
462                 "id": "ralsp.constant",
463                 "description": "Color for constants",
464                 "defaults": {
465                     "dark": "#569cd6",
466                     "light": "#267cb6",
467                     "highContrast": "#569cd6"
468                 }
469             },
470             {
471                 "id": "ralsp.type",
472                 "description": "Color for other types (traits, aliases..)",
473                 "defaults": {
474                     "dark": "#4EC9B0",
475                     "light": "#267F99",
476                     "highContrast": "#4EC9B0"
477                 }
478             },
479             {
480                 "id": "ralsp.type.builtin",
481                 "description": "Color for built-in types (&str, bool, u16, u32)",
482                 "defaults": {
483                     "dark": "#4EC9B0",
484                     "light": "#267F99",
485                     "highContrast": "#4EC9B0"
486                 }
487             },
488             {
489                 "id": "ralsp.type.lifetime",
490                 "description": "Color for `Self` param type",
491                 "defaults": {
492                     "dark": "#4EC9B0",
493                     "light": "#267F99",
494                     "highContrast": "#4EC9B0"
495                 }
496             },
497             {
498                 "id": "ralsp.type.self",
499                 "description": "Color for `Self` param type",
500                 "defaults": {
501                     "dark": "#4EC9B0",
502                     "light": "#267F99",
503                     "highContrast": "#4EC9B0"
504                 }
505             },
506             {
507                 "id": "ralsp.type.param",
508                 "description": "Color for type parameters",
509                 "defaults": {
510                     "dark": "#4EC9B0",
511                     "light": "#267F99",
512                     "highContrast": "#4EC9B0"
513                 }
514             },
515             {
516                 "id": "ralsp.field",
517                 "description": "Color for fields",
518                 "defaults": {
519                     "dark": "#4EC9B0",
520                     "light": "#267F99",
521                     "highContrast": "#4EC9B0"
522                 }
523             },
524             {
525                 "id": "ralsp.variable",
526                 "description": "Color for variables",
527                 "defaults": {
528                     "dark": "#4EC9B0",
529                     "light": "#267F99",
530                     "highContrast": "#4EC9B0"
531                 }
532             },
533             {
534                 "id": "ralsp.variable.mut",
535                 "description": "Color for mutable variables",
536                 "defaults": {
537                     "dark": "#4EC9B0",
538                     "light": "#267F99",
539                     "highContrast": "#4EC9B0"
540                 }
541             },
542             {
543                 "id": "ralsp.module",
544                 "description": "Color for modules",
545                 "defaults": {
546                     "dark": "#D4D4D4",
547                     "light": "#000000",
548                     "highContrast": "#FFFFFF"
549                 }
550             },
551             {
552                 "id": "ralsp.inlayHint",
553                 "description": "Color for inlay hints",
554                 "defaults": {
555                     "dark": "#A0A0A0F0",
556                     "light": "#747474",
557                     "highContrast": "#BEBEBE"
558                 }
559             }
560         ]
561     }
562 }