mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 04:11:10 -05:00
feat: Added VS Code debugging support with webview build
This commit is contained in:
5
.changeset/plenty-suits-visit.md
Normal file
5
.changeset/plenty-suits-visit.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"roo-cline": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
debug from vscode and changed output channel to Roo-Cline
|
||||||
17
.vscode/launch.json
vendored
17
.vscode/launch.json
vendored
@@ -9,9 +9,20 @@
|
|||||||
"name": "Run Extension",
|
"name": "Run Extension",
|
||||||
"type": "extensionHost",
|
"type": "extensionHost",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
|
"runtimeExecutable": "${execPath}",
|
||||||
|
"args": [
|
||||||
|
"--extensionDevelopmentPath=${workspaceFolder}",
|
||||||
|
],
|
||||||
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
|
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
|
||||||
"preLaunchTask": "${defaultBuildTask}"
|
"preLaunchTask": "compile",
|
||||||
}
|
"env": {
|
||||||
|
"NODE_ENV": "development",
|
||||||
|
"VSCODE_DEBUG_MODE": "true"
|
||||||
|
},
|
||||||
|
"resolveSourceMapLocations": [
|
||||||
|
"${workspaceFolder}/**",
|
||||||
|
"!**/node_modules/**"
|
||||||
|
]
|
||||||
|
},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
15
.vscode/tasks.json
vendored
15
.vscode/tasks.json
vendored
@@ -3,6 +3,21 @@
|
|||||||
{
|
{
|
||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"tasks": [
|
"tasks": [
|
||||||
|
{
|
||||||
|
"label": "compile",
|
||||||
|
"type": "npm",
|
||||||
|
"script": "compile",
|
||||||
|
"dependsOn": ["npm: build:webview"],
|
||||||
|
"group": {
|
||||||
|
"kind": "build",
|
||||||
|
"isDefault": true
|
||||||
|
},
|
||||||
|
"presentation": {
|
||||||
|
"reveal": "silent",
|
||||||
|
"panel": "shared"
|
||||||
|
},
|
||||||
|
"problemMatcher": ["$tsc", "$eslint-stylish"]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"label": "watch",
|
"label": "watch",
|
||||||
"dependsOn": ["npm: build:webview", "npm: watch:tsc", "npm: watch:esbuild"],
|
"dependsOn": ["npm: build:webview", "npm: watch:tsc", "npm: watch:esbuild"],
|
||||||
|
|||||||
@@ -21,10 +21,10 @@ let outputChannel: vscode.OutputChannel
|
|||||||
// This method is called when your extension is activated
|
// This method is called when your extension is activated
|
||||||
// Your extension is activated the very first time the command is executed
|
// Your extension is activated the very first time the command is executed
|
||||||
export function activate(context: vscode.ExtensionContext) {
|
export function activate(context: vscode.ExtensionContext) {
|
||||||
outputChannel = vscode.window.createOutputChannel("Cline")
|
outputChannel = vscode.window.createOutputChannel("Roo-Cline")
|
||||||
context.subscriptions.push(outputChannel)
|
context.subscriptions.push(outputChannel)
|
||||||
|
|
||||||
outputChannel.appendLine("Cline extension activated")
|
outputChannel.appendLine("Roo-Cline extension activated")
|
||||||
|
|
||||||
// Get default commands from configuration
|
// Get default commands from configuration
|
||||||
const defaultCommands = vscode.workspace
|
const defaultCommands = vscode.workspace
|
||||||
@@ -165,5 +165,5 @@ export function activate(context: vscode.ExtensionContext) {
|
|||||||
|
|
||||||
// This method is called when your extension is deactivated
|
// This method is called when your extension is deactivated
|
||||||
export function deactivate() {
|
export function deactivate() {
|
||||||
outputChannel.appendLine("Cline extension deactivated")
|
outputChannel.appendLine("Roo-Cline extension deactivated")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user