diff options
author | Aleksey Kladov <[email protected]> | 2020-05-23 15:39:04 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-05-23 15:39:04 +0100 |
commit | f4f5fca10175b8d5fdfa36563c103f81b2b0acd3 (patch) | |
tree | 456d16e30fb799f82f71cff4c7aa91b0248c0220 /.vscode/launch.json | |
parent | 4cc2ff6e390b6d8015ed1d266425459268f6e0b0 (diff) | |
parent | 1797b665a4dd82ba176b319c850a8875df327a5d (diff) |
Merge pull request #4538 from vsrs/vscode_tests
vscode client side tests
Diffstat (limited to '.vscode/launch.json')
-rw-r--r-- | .vscode/launch.json | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/.vscode/launch.json b/.vscode/launch.json index 6a2fff906..8ca27d878 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json | |||
@@ -71,6 +71,28 @@ | |||
71 | } | 71 | } |
72 | }, | 72 | }, |
73 | { | 73 | { |
74 | // Used for testing the extension with a local build of the LSP server (in `target/release`) | ||
75 | // with all other extendions loaded. | ||
76 | "name": "Run With Extensions", | ||
77 | "type": "extensionHost", | ||
78 | "request": "launch", | ||
79 | "runtimeExecutable": "${execPath}", | ||
80 | "args": [ | ||
81 | "--disable-extension", "matklad.rust-analyzer", | ||
82 | "--extensionDevelopmentPath=${workspaceFolder}/editors/code" | ||
83 | ], | ||
84 | "outFiles": [ | ||
85 | "${workspaceFolder}/editors/code/out/**/*.js" | ||
86 | ], | ||
87 | "preLaunchTask": "Build Server (Release) and Extension", | ||
88 | "skipFiles": [ | ||
89 | "<node_internals>/**/*.js" | ||
90 | ], | ||
91 | "env": { | ||
92 | "__RA_LSP_SERVER_DEBUG": "${workspaceFolder}/target/release/rust-analyzer" | ||
93 | } | ||
94 | }, | ||
95 | { | ||
74 | // Used to attach LLDB to a running LSP server. | 96 | // Used to attach LLDB to a running LSP server. |
75 | // NOTE: Might require root permissions. For this run: | 97 | // NOTE: Might require root permissions. For this run: |
76 | // | 98 | // |
@@ -87,5 +109,17 @@ | |||
87 | "rust" | 109 | "rust" |
88 | ] | 110 | ] |
89 | }, | 111 | }, |
112 | { | ||
113 | "name": "Run Unit Tests", | ||
114 | "type": "extensionHost", | ||
115 | "request": "launch", | ||
116 | "runtimeExecutable": "${execPath}", | ||
117 | "args": [ | ||
118 | "--extensionDevelopmentPath=${workspaceFolder}/editors/code", | ||
119 | "--extensionTestsPath=${workspaceFolder}/editors/code/out/tests/unit" ], | ||
120 | "sourceMaps": true, | ||
121 | "outFiles": [ "${workspaceFolder}/editors/code/out/tests/unit/**/*.js" ], | ||
122 | "preLaunchTask": "Pretest" | ||
123 | } | ||
90 | ] | 124 | ] |
91 | } | 125 | } |