From 1e675afccaaffe63aa74d365abc19c9b86a934e0 Mon Sep 17 00:00:00 2001 From: Tomasz Stefaniak Date: Tue, 5 Aug 2025 08:22:43 -0700 Subject: [PATCH] improv: watch logs --- .vscode/launch.json | 3 ++- .vscode/tasks.json | 26 +++++++++++++++++++++++++- package.json | 1 + 3 files changed, 28 insertions(+), 2 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index fd7277a69..884a92f91 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -21,7 +21,8 @@ "resolveSourceMapLocations": [ "${workspaceFolder}/**", "!**/node_modules/**" - ] + ], + "preLaunchTask": "watch-logs" }, { diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 2d8b31da8..0e4b46eb2 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -27,6 +27,30 @@ "showReuseMessage": true, "clear": false } + }, + { + "label": "watch-logs", + "type": "shell", + "command": "npm run watch:logs", + "isBackground": true, + "problemMatcher": { + "pattern": { + "regexp": "^$", + "file": 1, + "location": 2, + "message": 3 + }, + "background": { + "activeOnStart": true, + "beginsPattern": "^.*$", + "endsPattern": "^.*$" + } + }, + "presentation": { + "reveal": "always", + "panel": "new", + "focus": false + } } ] -} \ No newline at end of file +} diff --git a/package.json b/package.json index 45d2cfffa..2df5daab4 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ "repomix:sdk": "npx repomix node_modules/@continuedev/sdk --ignore **/api,cli-repomix.xml -o sdk-repomix.xml", "repomix:cli": "npx repomix --ignore sdk-repomix.xml -o cli-repomix.xml", "lint": "tsc --noEmit", + "watch:logs": "tail -f ~/.continue/logs/cn.log", "prepare": "npm run build", "semantic-release": "semantic-release", "semantic-release:dry-run": "semantic-release --dry-run"