From 425e62a0e4fd962ce51ceeb109cdb998bd17ff55 Mon Sep 17 00:00:00 2001 From: Glyphack Date: Fri, 3 May 2024 12:02:46 +0200 Subject: [PATCH] feat: Add launch json for vscode dev --- .vscode/launch.json | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .vscode/launch.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 00000000..ecffed55 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,41 @@ +// A launch configuration that compiles the extension and then opens it inside a new window +{ + "version": "0.2.0", + "configurations": [ + { + "type": "extensionHost", + "request": "launch", + "name": "Launch Client", + "runtimeExecutable": "${execPath}", + "args": [ + "--extensionDevelopmentPath=${workspaceRoot}/client/vscode/" + ], + "outFiles": [ + "${workspaceRoot}/out/**/*.js", + ], + "env": { + "SERVER_PATH": "${workspaceRoot}/target/debug/enderpy-lsp" + }, + "cwd": "${workspaceFolder}/client/vscode", + "autoAttachChildProcesses": true, + "preLaunchTask": { + "type": "npm", + "script": "watch" + } + }, + { + "name": "Language Server E2E Test", + "type": "extensionHost", + "request": "launch", + "runtimeExecutable": "${execPath}", + "args": [ + "--extensionDevelopmentPath=${workspaceRoot}", + "--extensionTestsPath=${workspaceRoot}/client/out/test/index", + "${workspaceRoot}/client/testFixture" + ], + "outFiles": [ + "${workspaceRoot}/client/out/test/**/*.js" + ] + } + ] +} \ No newline at end of file