aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.vscode/launch.json26
1 files changed, 16 insertions, 10 deletions
diff --git a/.vscode/launch.json b/.vscode/launch.json
index 33fc3bdea..b1bd98d4a 100644
--- a/.vscode/launch.json
+++ b/.vscode/launch.json
@@ -4,8 +4,7 @@
4 // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 4 // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5 5
6 // NOTE: --disable-extensions 6 // NOTE: --disable-extensions
7 // Disable all installed extensions for increas performance of playground 7 // Disable all installed extensions to increase performance of the debug instance
8 // Disable all installed extensions to increase performance of the debug instance
9 // and prevent potential conflicts with other installed extensions. 8 // and prevent potential conflicts with other installed extensions.
10 9
11 "version": "0.2.0", 10 "version": "0.2.0",
@@ -23,10 +22,13 @@
23 "outFiles": [ 22 "outFiles": [
24 "${workspaceFolder}/editors/code/out/**/*.js" 23 "${workspaceFolder}/editors/code/out/**/*.js"
25 ], 24 ],
26 "preLaunchTask": "Build Extension" 25 "preLaunchTask": "Build Extension",
26 "skipFiles": [
27 "<node_internals>/**/*.js"
28 ]
27 }, 29 },
28 { 30 {
29 // Used for testing theextension with a local build of the LSP server (in `target/debug`). 31 // Used for testing the extension with a local build of the LSP server (in `target/debug`).
30 "name": "Run Extension (Dev Server)", 32 "name": "Run Extension (Dev Server)",
31 "type": "extensionHost", 33 "type": "extensionHost",
32 "request": "launch", 34 "request": "launch",
@@ -39,17 +41,21 @@
39 "${workspaceFolder}/editors/code/out/**/*.js" 41 "${workspaceFolder}/editors/code/out/**/*.js"
40 ], 42 ],
41 "preLaunchTask": "Build Extension", 43 "preLaunchTask": "Build Extension",
44 "skipFiles": [
45 "<node_internals>/**/*.js"
46 ],
42 "env": { 47 "env": {
43 "__RA_LSP_SERVER_DEBUG": "${workspaceFolder}/target/debug/ra_lsp_server" 48 "__RA_LSP_SERVER_DEBUG": "${workspaceFolder}/target/debug/ra_lsp_server"
44 } 49 }
45 }, 50 },
46 { 51 {
47 // Attaching LLDB by Pid to lsp server 52 // Used to attach LLDB to a running LSP server.
48 // NOTE: it requires root permission, also for better debugging 53 // NOTE: Might require root permissions. For this run:
49 // if you want more than just assembler representation for ex: 54 //
50 // walk in file, you need debugging symbols. 55 // `echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope`
51 // Project can build with it, for set - chane inside 56 //
52 // ./Cargo.toml field debug 57 // Don't forget to set `debug = 2` in `Cargo.toml` before building the server
58
53 "name": "Attach To Server", 59 "name": "Attach To Server",
54 "type": "lldb", 60 "type": "lldb",
55 "request": "attach", 61 "request": "attach",