]> git.lizzy.rs Git - rust.git/blob - .vscode/tasks.json
Merge #4222
[rust.git] / .vscode / tasks.json
1 // See https://go.microsoft.com/fwlink/?LinkId=733558
2 // for the documentation about the tasks.json format
3 {
4   "version": "2.0.0",
5   "tasks": [
6     {
7       "label": "Build Extension in Background",
8       "group": "build",
9       "type": "npm",
10       "script": "watch",
11       "path": "editors/code/",
12       "problemMatcher": {
13         "base": "$tsc-watch",
14         "fileLocation": ["relative", "${workspaceFolder}/editors/code/"]
15       },
16       "isBackground": true,
17     },
18     {
19       "label": "Build Extension",
20       "group": "build",
21       "type": "npm",
22       "script": "build",
23       "path": "editors/code/",
24       "problemMatcher": {
25         "base": "$tsc",
26         "fileLocation": ["relative", "${workspaceFolder}/editors/code/"]
27       },
28     },
29     {
30       "label": "Build Server",
31       "group": "build",
32       "type": "shell",
33       "command": "cargo build --package rust-analyzer",
34       "problemMatcher": "$rustc"
35     },
36     {
37       "label": "Build Server (Release)",
38       "group": "build",
39       "type": "shell",
40       "command": "cargo build --release --package rust-analyzer",
41       "problemMatcher": "$rustc"
42     },
43
44     {
45       "label": "Build Server and Extension",
46       "dependsOn": ["Build Server", "Build Extension"],
47       "problemMatcher": "$rustc"
48     },
49     {
50       "label": "Build Server (Release) and Extension",
51       "dependsOn": ["Build Server (Release)", "Build Extension"],
52       "problemMatcher": "$rustc"
53     }
54   ]
55 }