From 8ee40ccbe963a0a5e3e998c1652378e1035dc40d Mon Sep 17 00:00:00 2001 From: vsrs Date: Wed, 20 May 2020 21:03:49 +0300 Subject: vscode client side tests --- .vscode/launch.json | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) (limited to '.vscode/launch.json') diff --git a/.vscode/launch.json b/.vscode/launch.json index 6a2fff906..8ca27d878 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -70,6 +70,28 @@ "__RA_LSP_SERVER_DEBUG": "${workspaceFolder}/target/release/rust-analyzer" } }, + { + // Used for testing the extension with a local build of the LSP server (in `target/release`) + // with all other extendions loaded. + "name": "Run With Extensions", + "type": "extensionHost", + "request": "launch", + "runtimeExecutable": "${execPath}", + "args": [ + "--disable-extension", "matklad.rust-analyzer", + "--extensionDevelopmentPath=${workspaceFolder}/editors/code" + ], + "outFiles": [ + "${workspaceFolder}/editors/code/out/**/*.js" + ], + "preLaunchTask": "Build Server (Release) and Extension", + "skipFiles": [ + "/**/*.js" + ], + "env": { + "__RA_LSP_SERVER_DEBUG": "${workspaceFolder}/target/release/rust-analyzer" + } + }, { // Used to attach LLDB to a running LSP server. // NOTE: Might require root permissions. For this run: @@ -87,5 +109,17 @@ "rust" ] }, + { + "name": "Run Unit Tests", + "type": "extensionHost", + "request": "launch", + "runtimeExecutable": "${execPath}", + "args": [ + "--extensionDevelopmentPath=${workspaceFolder}/editors/code", + "--extensionTestsPath=${workspaceFolder}/editors/code/out/tests/unit" ], + "sourceMaps": true, + "outFiles": [ "${workspaceFolder}/editors/code/out/tests/unit/**/*.js" ], + "preLaunchTask": "Pretest" + } ] } -- cgit v1.2.3