Rebuild rust-analyzer when launching in VS Code

This commit is contained in:
Jonas Schievink 2020-04-28 20:15:52 +02:00
parent c3c7edb9bc
commit 0ee12079bc
2 changed files with 9 additions and 2 deletions

4
.vscode/launch.json vendored
View file

@ -41,7 +41,7 @@
"outFiles": [
"${workspaceFolder}/editors/code/out/**/*.js"
],
"preLaunchTask": "Build Extension",
"preLaunchTask": "Build Server",
"skipFiles": [
"<node_internals>/**/*.js"
],
@ -62,7 +62,7 @@
"outFiles": [
"${workspaceFolder}/editors/code/out/**/*.js"
],
"preLaunchTask": "Build Extension",
"preLaunchTask": "Build Server (Release)",
"skipFiles": [
"<node_internals>/**/*.js"
],

7
.vscode/tasks.json vendored
View file

@ -22,5 +22,12 @@
"command": "cargo build --package rust-analyzer",
"problemMatcher": "$rustc"
},
{
"label": "Build Server (Release)",
"group": "build",
"type": "shell",
"command": "cargo build --release --package rust-analyzer",
"problemMatcher": "$rustc"
},
]
}