mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-12 05:08:52 +00:00
Add Launch configuration for release build
This commit is contained in:
parent
4f0cb81a2e
commit
80a42a0628
1 changed files with 23 additions and 2 deletions
25
.vscode/launch.json
vendored
25
.vscode/launch.json
vendored
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue