Skip to content

Commit

Permalink
Rebuild rust-analyzer when launching in VS Code
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-schievink committed Apr 28, 2020
1 parent c3c7edb commit 0ee1207
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 41,7 @@
"outFiles": [
"${workspaceFolder}/editors/code/out/**/*.js"
],
"preLaunchTask": "Build Extension",
"preLaunchTask": "Build Server",
"skipFiles": [
"<node_internals>/**/*.js"
],
Expand All @@ -62,7 62,7 @@
"outFiles": [
"${workspaceFolder}/editors/code/out/**/*.js"
],
"preLaunchTask": "Build Extension",
"preLaunchTask": "Build Server (Release)",
"skipFiles": [
"<node_internals>/**/*.js"
],
Expand Down
7 changes: 7 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
]
}

0 comments on commit 0ee1207

Please sign in to comment.