Add Launch configuration for release build

This commit is contained in:
Jonas Schievink 2020-04-23 23:29:40 +02:00
parent 4f0cb81a2e
commit 80a42a0628

25
.vscode/launch.json vendored
View file

@ -11,7 +11,7 @@
"configurations": [
{
// Used for testing the extension with the installed LSP server.
"name": "Run Extension",
"name": "Run Installed Extension",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
@ -30,7 +30,7 @@
},
{
// Used for testing the extension with a local build of the LSP server (in `target/debug`).
"name": "Run Extension (Dev Server)",
"name": "Run Extension (Debug Build)",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
@ -49,6 +49,27 @@
"__RA_LSP_SERVER_DEBUG": "${workspaceFolder}/target/debug/rust-analyzer"
}
},
{
// Used for testing the extension with a local build of the LSP server (in `target/release`).
"name": "Run Extension (Release Build)",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"--disable-extensions",
"--extensionDevelopmentPath=${workspaceFolder}/editors/code"
],
"outFiles": [
"${workspaceFolder}/editors/code/out/**/*.js"
],
"preLaunchTask": "Build Extension",
"skipFiles": [
"<node_internals>/**/*.js"
],
"env": {
"__RA_LSP_SERVER_DEBUG": "${workspaceFolder}/target/release/rust-analyzer"
}
},
{
// Used to attach LLDB to a running LSP server.
// NOTE: Might require root permissions. For this run: