Skip to content

Commit

Permalink
added a much-needed run config for spawning the Agent (#4276)
Browse files Browse the repository at this point in the history
  • Loading branch information
steveyegge committed May 23, 2024
1 parent d6e5397 commit fb7cc93
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,20 @@
"skipFiles": ["<node_internals>/**"],
"type": "node"
},
{
"type": "node",
"request": "launch",
"name": "Launch Agent port 3113",
"program": "${workspaceFolder}/agent/dist/index.js",
"runtimeArgs": ["--enable-source-maps", "--preserve-symlinks"],
"preLaunchTask": "Build Agent",
"env": {
"CODY_AGENT_DEBUG_REMOTE": "true",
"CODY_AGENT_DEBUG_PORT": "3113"
},
"sourceMaps": true,
"skipFiles": ["<node_internals>/**"]
},
{
"type": "node",
"request": "launch",
Expand Down
8 changes: 8 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@
"problemMatcher": "$tsc-watch",
"options": { "cwd": "vscode" },
"isBackground": true
},
{
"type": "shell",
"label": "Build Agent",
"command": "pnpm install && pnpm build",
"options": {
"cwd": "${workspaceFolder}/agent"
}
}
]
}

0 comments on commit fb7cc93

Please sign in to comment.