diff --git a/jscomp/bsb/templates/basic-reason/.vscode/tasks.json b/jscomp/bsb/templates/basic-reason/.vscode/tasks.json new file mode 100644 index 0000000000..cd55dd25d1 --- /dev/null +++ b/jscomp/bsb/templates/basic-reason/.vscode/tasks.json @@ -0,0 +1,42 @@ +{ + "version": "${bsb:proj-version}", + "command": "npm", + "options": { + "cwd": "${workspaceRoot}" + }, + "type": "shell", + "args": ["run", "start"], + "presentation": { + "echo": true, + "reveal": "always", + "focus": false, + "panel": "shared" + }, + "isBackground": true, + "problemMatcher": { + "fileLocation": "absolute", + "owner": "ocaml", + "background": { + "activeOnStart": false, + "beginsPattern": ">>>> Start compiling", + "endsPattern": ">>>> Finish compiling" + }, + "pattern": [ + { + "regexp": + "^File \"(.*)\", line (\\d+)(?:, characters (\\d+)-(\\d+))?:$", + "file": 1, + "line": 2, + "column": 3, + "endColumn": 4 + }, + { + "regexp": + "^(?:(?:Parse\\s+)?(Warning|[Ee]rror)(?:\\s+\\d+)?:)?\\s+(.*)$", + "severity": 1, + "message": 2, + "loop": true + } + ] + } + } diff --git a/jscomp/bsb/templates/basic-reason/tasks.json b/jscomp/bsb/templates/basic-reason/tasks.json deleted file mode 100644 index 9dda7365fe..0000000000 --- a/jscomp/bsb/templates/basic-reason/tasks.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "version": "${bsb:proj-version}", - "command": "npm", - "options": { - "cwd": "${workspaceRoot}" - }, - "isShellCommand": true, - "args": [ - "run", - "watch" - ], - "showOutput": "always", - "isBackground": true, - "problemMatcher": { - "fileLocation": "absolute", - "owner": "ocaml", - "watching": { - "activeOnStart": false, - "beginsPattern": ">>>> Start compiling", - "endsPattern": ">>>> Finish compiling" - }, - "pattern": [ - { - "regexp": "^File \"(.*)\", line (\\d+)(?:, characters (\\d+)-(\\d+))?:$", - "file": 1, - "line": 2, - "column": 3, - "endColumn": 4 - }, - { - "regexp": "^(?:(?:Parse\\s+)?(Warning|[Ee]rror)(?:\\s+\\d+)?:)?\\s+(.*)$", - "severity": 1, - "message": 2, - "loop": true - } - ] - } -} \ No newline at end of file