From 32f83805bf3c6c11a9e79d914ec2cc8ec7de1a9b Mon Sep 17 00:00:00 2001 From: Daniel Smith Date: Fri, 26 Oct 2018 11:44:43 -0400 Subject: Enable extension testing via F5 in VS Code --- .gitignore | 4 +++- .vscode/launch.json | 20 ++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 .vscode/launch.json diff --git a/.gitignore b/.gitignore index e3f7ea2..d318741 100644 --- a/.gitignore +++ b/.gitignore @@ -93,7 +93,9 @@ ipch/ *.sap # Visual Studio Code folders -.vscode/ +# Keep launch.json +.vscode/* +!.vscode/launch.json # TFS 2012 Local Workspace $tf/ diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..b3b912d --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,20 @@ +// From https://github.com/Tyriar/vscode-theme-sapphire/blob/master/.vscode/launch.json +// A launch configuration that compiles the extension and then opens it inside a new window +{ + "version": "0.2.0", + "configurations": [ + { + "name": "Extension", + "type": "extensionHost", + "request": "launch", + "runtimeExecutable": "${execPath}", + "args": [ + "--extensionDevelopmentPath=${workspaceFolder}" + ], + "outFiles": [ + "${workspaceFolder}/out/**/*.js" + ], + "preLaunchTask": "npm: start" + } + ] +} \ No newline at end of file -- cgit v1.2.3