Files
vscode/.vscode/tasks.json

465 lines
9.6 KiB
JSON

{
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "watch-client-transpiled",
"label": "Core - Transpile",
"isBackground": true,
"presentation": {
"reveal": "never",
"group": "buildWatchers",
"close": false
},
"problemMatcher": {
"owner": "esbuild",
"applyTo": "closedDocuments",
"fileLocation": [
"relative",
"${workspaceFolder}/src"
],
"pattern": {
"regexp": "^(.+?):(\\d+):(\\d+): ERROR: (.+)$",
"file": 1,
"line": 2,
"column": 3,
"message": 4
},
"background": {
"beginsPattern": "Starting transpilation\\.\\.\\.",
"endsPattern": "Finished transpilation with"
}
}
},
{
"type": "npm",
"script": "watch-clientd",
"label": "Core - Typecheck",
"isBackground": true,
"presentation": {
"reveal": "never",
"group": "buildWatchers",
"close": false
},
"problemMatcher": {
"owner": "typescript",
"applyTo": "closedDocuments",
"fileLocation": [
"absolute"
],
"pattern": {
"regexp": "Error: ([^(]+)\\((\\d+|\\d+,\\d+|\\d+,\\d+,\\d+,\\d+)\\): (.*)$",
"file": 1,
"location": 2,
"message": 3
},
"background": {
"beginsPattern": "Starting compilation\\.\\.\\.",
"endsPattern": "Finished compilation with"
}
}
},
{
"type": "npm",
"script": "watch-extensionsd",
"label": "Ext - Build",
"isBackground": true,
"presentation": {
"reveal": "never",
"group": "buildWatchers",
"close": false
},
"problemMatcher": {
"owner": "typescript",
"applyTo": "closedDocuments",
"fileLocation": [
"relative",
"${workspaceFolder}"
],
"pattern": {
"regexp": "\\] ([^(]+)\\((\\d+,\\d+)\\): (.*)$",
"file": 1,
"location": 2,
"message": 3
},
"background": {
"beginsPattern": "Starting compilation",
"endsPattern": "Finished compilation"
}
}
},
{
"label": "VS Code - Build",
"dependsOn": [
"Core - Transpile",
"Core - Typecheck",
"Ext - Build"
],
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": []
},
{
"type": "npm",
"script": "kill-watch-client-transpiled",
"label": "Kill Core - Transpile",
"group": "build",
"presentation": {
"reveal": "never",
"group": "buildKillers",
"close": true
},
"problemMatcher": "$tsc"
},
{
"type": "npm",
"script": "kill-watch-clientd",
"label": "Kill Core - Typecheck",
"group": "build",
"presentation": {
"reveal": "never",
"group": "buildKillers",
"close": true
},
"problemMatcher": "$tsc"
},
{
"type": "npm",
"script": "kill-watch-extensionsd",
"label": "Kill Ext - Build",
"group": "build",
"presentation": {
"reveal": "never",
"group": "buildKillers",
"close": true
},
"problemMatcher": "$tsc"
},
{
"label": "Kill VS Code - Build",
"dependsOn": [
"Kill Core - Transpile",
"Kill Core - Typecheck",
"Kill Ext - Build"
],
"group": "build",
"problemMatcher": []
},
{
"label": "Restart VS Code - Build",
"dependsOn": [
"Kill VS Code - Build",
"VS Code - Build"
],
"group": "build",
"dependsOrder": "sequence",
"problemMatcher": []
},
{
"label": "Kill VS Code - Build, Npm, VS Code - Build",
"dependsOn": [
"Kill VS Code - Build",
"npm: install",
"VS Code - Build"
],
"group": "build",
"dependsOrder": "sequence",
"problemMatcher": []
},
{
"type": "npm",
"script": "watch-webd",
"label": "Web Ext - Build",
"group": "build",
"isBackground": true,
"presentation": {
"reveal": "never"
},
"problemMatcher": {
"owner": "typescript",
"applyTo": "closedDocuments",
"fileLocation": [
"absolute"
],
"pattern": {
"regexp": "Error: ([^(]+)\\((\\d+|\\d+,\\d+|\\d+,\\d+,\\d+,\\d+)\\): (.*)$",
"file": 1,
"location": 2,
"message": 3
},
"background": {
"beginsPattern": "Starting compilation",
"endsPattern": "Finished compilation"
}
}
},
{
"type": "npm",
"script": "kill-watch-webd",
"label": "Kill Web Ext - Build",
"group": "build",
"presentation": {
"reveal": "never"
},
"problemMatcher": "$tsc"
},
{
"label": "Run tests",
"type": "shell",
"command": "./scripts/test.sh",
"windows": {
"command": ".\\scripts\\test.bat"
},
"group": "test",
"presentation": {
"echo": true,
"reveal": "always"
}
},
{
"label": "Run Dev",
"type": "shell",
"command": "./scripts/code.sh",
"windows": {
"command": ".\\scripts\\code.bat"
},
"problemMatcher": []
},
{
"label": "Run Dev Agents",
"type": "shell",
"command": "./scripts/code.sh",
"windows": {
"command": ".\\scripts\\code.bat"
},
"args": [
"--agents",
"--user-data-dir=${userHome}/.vscode-oss-sessions-dev",
"--extensions-dir=${userHome}/.vscode-oss-sessions-dev/extensions"
],
"problemMatcher": []
},
{
"label": "Transpile Client",
"type": "npm",
"script": "transpile-client",
"problemMatcher": []
},
{
"label": "Run and Compile Agents - OSS",
"dependsOn": ["Transpile Client", "Run Dev Agents"],
"dependsOrder": "sequence",
"inSessions": true,
"problemMatcher": []
},
{
"label": "Run and Compile Code - OSS",
"dependsOn": ["Transpile Client", "Run Dev"],
"dependsOrder": "sequence",
"inSessions": true,
"problemMatcher": []
},
{
"type": "npm",
"script": "electron",
"label": "Download electron"
},
{
"type": "gulp",
"task": "hygiene",
"problemMatcher": []
},
{
"type": "shell",
"command": "./scripts/code-server.sh",
"windows": {
"command": ".\\scripts\\code-server.bat"
},
"args": [
"--no-launch",
"--connection-token",
"dev-token",
"--port",
"8080"
],
"label": "Run code server",
"isBackground": true,
"problemMatcher": {
"pattern": {
"regexp": ""
},
"background": {
"beginsPattern": ".*node .*",
"endsPattern": "Web UI available at .*"
}
},
"presentation": {
"reveal": "never"
}
},
{
"type": "shell",
"command": "./scripts/code-web.sh",
"windows": {
"command": ".\\scripts\\code-web.bat"
},
"args": [
"--port",
"8080",
"--browser",
"none"
],
"label": "Run code web",
"isBackground": true,
"problemMatcher": {
"pattern": {
"regexp": ""
},
"background": {
"beginsPattern": ".*node .*",
"endsPattern": "Listening on .*"
}
},
"presentation": {
"reveal": "never"
}
},
{
"type": "npm",
"script": "eslint",
"problemMatcher": {
"source": "eslint",
"base": "$eslint-stylish"
}
},
{
"type": "shell",
"command": "node build/lib/preLaunch.ts",
"label": "Ensure Prelaunch Dependencies",
"presentation": {
"reveal": "silent",
"close": true
}
},
{
"type": "npm",
"script": "tsec-compile-check",
"problemMatcher": [
{
"base": "$tsc",
"applyTo": "allDocuments",
"owner": "tsec"
}
],
"group": "build",
"label": "npm: tsec-compile-check",
"detail": "node_modules/tsec/bin/tsec -p src/tsconfig.json --noEmit"
},
{
"label": "Launch Monaco Editor Vite",
"type": "shell",
"command": "npm run dev",
"options": {
"cwd": "./build/vite/"
},
"isBackground": true,
"problemMatcher": {
"owner": "vite",
"fileLocation": "absolute",
"pattern": {
"regexp": "^(.+?):(\\d+):(\\d+):\\s+(error|warning)\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
},
"background": {
"activeOnStart": true,
"beginsPattern": ".*VITE.*",
"endsPattern": "(Local|Network):.*"
}
}
},
{
"label": "Launch MCP Server",
"type": "shell",
"command": "cd test/mcp && npm run compile && npm run start-http",
"isBackground": true,
"problemMatcher": [
"$tsc"
]
},
{
"label": "Component Explorer Server",
"type": "shell",
"command": "npx component-explorer serve -p ./test/componentFixtures/component-explorer.json -vv --kill-if-running",
"isBackground": true,
"inSessions": true,
"problemMatcher": {
"owner": "component-explorer",
"fileLocation": "absolute",
"pattern": {
"regexp": "^\\s*at\\s+(.+?):(\\d+):(\\d+)\\s*$",
"file": 1,
"line": 2,
"column": 3
},
"background": {
"activeOnStart": false,
"beginsPattern": ".*Setting up sessions.*",
"endsPattern": " current: (?<componentExplorerUrl>.*) \\(current\\)"
}
}
},
{
"label": "Install & Watch",
"type": "shell",
"command": "npm ci && npm run watch",
"windows": {
"command": "cmd /c \"npm ci && npm run watch\""
},
"inSessions": true,
"runOptions": {
"runOn": "worktreeCreated"
}
},
{
"label": "Serve Out (rspack)",
"type": "npm",
"script": "serve-out-rspack",
"isBackground": true,
"problemMatcher": {
"owner": "rspack",
"fileLocation": "absolute",
"pattern": {
"regexp": "^(.+?):(\\d+):(\\d+):\\s+(error|warning)\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
},
"background": {
"activeOnStart": true,
"beginsPattern": ".*compiling.*",
"endsPattern": ".*compiled.*successfully.*"
}
}
},
{
"label": "Echo E2E Status",
"type": "shell",
"command": "pwsh",
"args": [
"-NoProfile",
"-Command",
"Write-Output \"134 passed, 0 failed, 1 skipped, 135 total\"; Start-Sleep -Seconds 2; Write-Output \"[PASS] E2E Tests\"; Write-Output \"Watching for changes...\""
],
"isBackground": false
}
]
}