Skip to content

Commit b6e4220

Browse files
committed
Refactor to current vscode extension syntax
Signed-off-by: Mike Centola <[email protected]>
1 parent 2d036f0 commit b6e4220

File tree

13 files changed

+754
-467
lines changed

13 files changed

+754
-467
lines changed

.vscode/launch.json

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,34 @@
11
// A launch configuration that launches the extension inside a new window
22
{
3-
"version": "0.1.1",
3+
"version": "0.2.0",
44
"configurations": [
55
{
6-
"name": "Launch Extension",
6+
"name": "Run Extension",
77
"type": "extensionHost",
88
"request": "launch",
99
"runtimeExecutable": "${execPath}",
1010
"args": [
1111
"--disable-extensions",
1212
"--extensionDevelopmentPath=${workspaceFolder}"
1313
],
14-
"stopOnEntry": false,
15-
"sourceMaps": true,
1614
"outFiles": [
1715
"${workspaceFolder}/out/**/*.js"
1816
],
19-
"preLaunchTask": "npm: watch"
17+
"preLaunchTask": "${defaultBuildTask}"
18+
},
19+
{
20+
"name": "Extension Tests",
21+
"type": "extensionHost",
22+
"request": "launch",
23+
"runtimeExecutable": "${execPath}",
24+
"args": [
25+
"--extensionDevelopmentPath=${workspaceFolder}",
26+
"--extensionsTestsPath=${workspaceFolder}/out/test/suite/index"
27+
],
28+
"outFiles": [
29+
"${workspaceFolder}/out/**/*.js"
30+
],
31+
"preLaunchTask": "${defaultBuildTask"
2032
}
2133
]
2234
}

.vscode/settings.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"files.exclude": {
3+
"out": false // set this to true to hide the "out" folder with the compiled JS files
4+
},
5+
"search.exclude": {
6+
"out": true // set this to false to include "out" folder in search results
7+
},
8+
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
9+
"typescript.tsc.autoDetect": "off"
10+
}

.vscode/tasks.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"type": "npm",
6+
"script": "watch",
7+
"problemMatcher": "$tsc-watch",
8+
"isBackground": true,
9+
"presentation": {
10+
"reveal": "never"
11+
},
12+
"group": {
13+
"kind": "build",
14+
"isDefault": true
15+
}
16+
}
17+
]
18+
}

0 commit comments

Comments
 (0)