Skip to content

Commit 73a7707

Browse files
committed
Updated tasks and launch files
- The file structures have been updated to abide with the latest config syntax - Updated build commands in package.json - Deleted tasks.json.old
1 parent a325ae2 commit 73a7707

File tree

4 files changed

+29
-57
lines changed

4 files changed

+29
-57
lines changed

.vscode/launch.json

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,25 @@
1-
// A launch configuration that compiles the extension and then opens it inside a new window
21
{
3-
"version": "0.1.0",
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
46
"configurations": [
57
{
68
"name": "Launch Extension",
79
"type": "extensionHost",
810
"request": "launch",
9-
"runtimeExecutable": "${execPath}",
1011
"args": [
1112
"--extensionDevelopmentPath=${workspaceFolder}"
1213
],
13-
"stopOnEntry": false,
14-
"sourceMaps": true,
1514
"outFiles": [
1615
"${workspaceFolder}/out/src/**/*.js"
1716
],
18-
"preLaunchTask": "npm"
17+
"preLaunchTask": "npm: watch",
1918
},
2019
{
2120
"name": "Launch Tests",
2221
"type": "extensionHost",
2322
"request": "launch",
24-
"runtimeExecutable": "${execPath}",
2523
"env": {
2624
"CODE_TESTS_WORKSPACE": "./"
2725
},
@@ -31,11 +29,10 @@
3129
"--extensionDevelopmentPath=${workspaceFolder}",
3230
"--extensionTestsPath=${workspaceFolder}/out/test"
3331
],
34-
"stopOnEntry": false,
35-
"sourceMaps": true,
3632
"outFiles": [
3733
"${workspaceFolder}/out/test/**/*.js"
38-
]
39-
}
34+
],
35+
"preLaunchTask": "npm: compile",
36+
},
4037
]
4138
}

.vscode/tasks.json

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,29 @@
55
// ${fileDirname}: the current opened file's dirname
66
// ${fileExtname}: the current opened file's extension
77
// ${cwd}: the current working directory of the spawned process
8-
98
// A task runner that calls a custom npm script that compiles the extension.
109
{
1110
"version": "2.0.0",
12-
13-
// we want to run npm
14-
"command": "npm",
15-
16-
// we run the custom script "compile" as defined in package.json
17-
"args": ["run", "compile", "--loglevel", "silent"],
18-
19-
// The tsc compiler is started in watching mode
20-
"isBackground": true,
21-
22-
// use the standard tsc in watch mode problem matcher to find compile problems in the output.
23-
"problemMatcher": "$tsc-watch",
2411
"tasks": [
2512
{
26-
"label": "npm",
13+
"label": "npm: watch",
14+
"type": "shell",
15+
"command": "npm",
16+
"args": [
17+
"run",
18+
"watch",
19+
"--loglevel",
20+
"silent"
21+
],
22+
"isBackground": true,
23+
"problemMatcher": "$tsc-watch",
24+
"group": {
25+
"kind": "build",
26+
"isDefault": true
27+
}
28+
},
29+
{
30+
"label": "npm: compile",
2731
"type": "shell",
2832
"command": "npm",
2933
"args": [

.vscode/tasks.json.old

Lines changed: 0 additions & 30 deletions
This file was deleted.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,9 @@
180180
]
181181
},
182182
"scripts": {
183-
"vscode:prepublish": "tsc -p ./",
184-
"compile": "tsc -watch -p ./",
183+
"vscode:prepublish": "npm run compile",
184+
"compile": "tsc -p ./",
185+
"watch": "tsc -watch -p ./",
185186
"postinstall": "node ./node_modules/vscode/bin/install",
186187
"test": "CODE_TESTS_WORKSPACE='./' node ./node_modules/vscode/bin/test",
187188
"test:grammar": "vscode-tmgrammar-snap -s source.fortran.free -g ./syntaxes/fortran_free-form.tmLanguage.json -t \"./test/resources/*.f90\"",

0 commit comments

Comments
 (0)