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 Installed 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 (Debug Build)",
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 for testing the extension with a local build of the LSP server (in `target/release`).
54 "name": "Run Extension (Release Build)",
55 "type": "extensionHost",
57 "runtimeExecutable": "${execPath}",
59 "--disable-extensions",
60 "--extensionDevelopmentPath=${workspaceFolder}/editors/code"
63 "${workspaceFolder}/editors/code/out/**/*.js"
65 "preLaunchTask": "Build Extension",
67 "<node_internals>/**/*.js"
70 "__RA_LSP_SERVER_DEBUG": "${workspaceFolder}/target/release/rust-analyzer"
74 // Used to attach LLDB to a running LSP server.
75 // NOTE: Might require root permissions. For this run:
77 // `echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope`
79 // Don't forget to set `debug = 2` in `Cargo.toml` before building the server
81 "name": "Attach To Server",
84 "program": "${workspaceFolder}/target/debug/rust-analyzer",
85 "pid": "${command:pickMyProcess}",