2 // Use IntelliSense to learn about possible attributes.
3 // Hover to view descriptions of existing attributes.
4 // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
6 // NOTE: --disable-extensions
7 // Disable all installed extensions to increase performance of the debug instance
8 // and prevent potential conflicts with other installed extensions.
13 // Used for testing the extension with the installed LSP server.
14 "name": "Run Extension",
15 "type": "extensionHost",
17 "runtimeExecutable": "${execPath}",
19 // "--user-data-dir=${workspaceFolder}/target/code",
20 "--disable-extensions",
21 "--extensionDevelopmentPath=${workspaceFolder}/editors/code"
24 "${workspaceFolder}/editors/code/out/**/*.js"
26 "preLaunchTask": "Build Extension",
28 "<node_internals>/**/*.js"
32 // Used for testing the extension with a local build of the LSP server (in `target/debug`).
33 "name": "Run Extension (Dev Server)",
34 "type": "extensionHost",
36 "runtimeExecutable": "${execPath}",
38 "--disable-extensions",
39 "--extensionDevelopmentPath=${workspaceFolder}/editors/code"
42 "${workspaceFolder}/editors/code/out/**/*.js"
44 "preLaunchTask": "Build Extension",
46 "<node_internals>/**/*.js"
49 "__RA_LSP_SERVER_DEBUG": "${workspaceFolder}/target/debug/rust-analyzer"
53 // Used to attach LLDB to a running LSP server.
54 // NOTE: Might require root permissions. For this run:
56 // `echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope`
58 // Don't forget to set `debug = 2` in `Cargo.toml` before building the server
60 "name": "Attach To Server",
63 "program": "${workspaceFolder}/target/debug/rust-analyzer",
64 "pid": "${command:pickMyProcess}",