aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Daniel Smith <rdnlsmith@gmail.com> 2018-10-26 11:44:43 -0400
committerGravatar Daniel Smith <rdnlsmith@gmail.com> 2018-10-26 11:44:43 -0400
commit32f83805bf3c6c11a9e79d914ec2cc8ec7de1a9b (patch)
treeeaeda85fed14f8fe7d41307b4f7e0c8377790a38
parent1a1006e4b4aedeb0271b547cbbb66e76afdcffbe (diff)
Enable extension testing via F5 in VS Code
-rw-r--r--.gitignore4
-rw-r--r--.vscode/launch.json20
2 files changed, 23 insertions, 1 deletions
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