aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.vscode/launch.json25
1 files changed, 23 insertions, 2 deletions
diff --git a/.vscode/launch.json b/.vscode/launch.json
index ca70fb209..3f74d7566 100644
--- a/.vscode/launch.json
+++ b/.vscode/launch.json
@@ -11,7 +11,7 @@
11 "configurations": [ 11 "configurations": [
12 { 12 {
13 // Used for testing the extension with the installed LSP server. 13 // Used for testing the extension with the installed LSP server.
14 "name": "Run Extension", 14 "name": "Run Installed Extension",
15 "type": "extensionHost", 15 "type": "extensionHost",
16 "request": "launch", 16 "request": "launch",
17 "runtimeExecutable": "${execPath}", 17 "runtimeExecutable": "${execPath}",
@@ -30,7 +30,7 @@
30 }, 30 },
31 { 31 {
32 // Used for testing the extension with a local build of the LSP server (in `target/debug`). 32 // Used for testing the extension with a local build of the LSP server (in `target/debug`).
33 "name": "Run Extension (Dev Server)", 33 "name": "Run Extension (Debug Build)",
34 "type": "extensionHost", 34 "type": "extensionHost",
35 "request": "launch", 35 "request": "launch",
36 "runtimeExecutable": "${execPath}", 36 "runtimeExecutable": "${execPath}",
@@ -50,6 +50,27 @@
50 } 50 }
51 }, 51 },
52 { 52 {
53 // Used for testing the extension with a local build of the LSP server (in `target/release`).
54 "name": "Run Extension (Release Build)",
55 "type": "extensionHost",
56 "request": "launch",
57 "runtimeExecutable": "${execPath}",
58 "args": [
59 "--disable-extensions",
60 "--extensionDevelopmentPath=${workspaceFolder}/editors/code"
61 ],
62 "outFiles": [
63 "${workspaceFolder}/editors/code/out/**/*.js"
64 ],
65 "preLaunchTask": "Build Extension",
66 "skipFiles": [
67 "<node_internals>/**/*.js"
68 ],
69 "env": {
70 "__RA_LSP_SERVER_DEBUG": "${workspaceFolder}/target/release/rust-analyzer"
71 }
72 },
73 {
53 // Used to attach LLDB to a running LSP server. 74 // Used to attach LLDB to a running LSP server.
54 // NOTE: Might require root permissions. For this run: 75 // NOTE: Might require root permissions. For this run:
55 // 76 //