From 80a42a0628f7655c3299fbf4c5a15e31990b35d3 Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Thu, 23 Apr 2020 23:29:40 +0200 Subject: Add Launch configuration for release build --- .vscode/launch.json | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) (limited to '.vscode') diff --git a/.vscode/launch.json b/.vscode/launch.json index ca70fb209..3f74d7566 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -11,7 +11,7 @@ "configurations": [ { // Used for testing the extension with the installed LSP server. - "name": "Run Extension", + "name": "Run Installed Extension", "type": "extensionHost", "request": "launch", "runtimeExecutable": "${execPath}", @@ -30,7 +30,7 @@ }, { // Used for testing the extension with a local build of the LSP server (in `target/debug`). - "name": "Run Extension (Dev Server)", + "name": "Run Extension (Debug Build)", "type": "extensionHost", "request": "launch", "runtimeExecutable": "${execPath}", @@ -49,6 +49,27 @@ "__RA_LSP_SERVER_DEBUG": "${workspaceFolder}/target/debug/rust-analyzer" } }, + { + // Used for testing the extension with a local build of the LSP server (in `target/release`). + "name": "Run Extension (Release Build)", + "type": "extensionHost", + "request": "launch", + "runtimeExecutable": "${execPath}", + "args": [ + "--disable-extensions", + "--extensionDevelopmentPath=${workspaceFolder}/editors/code" + ], + "outFiles": [ + "${workspaceFolder}/editors/code/out/**/*.js" + ], + "preLaunchTask": "Build 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: -- cgit v1.2.3