mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
Add context about user's vscode visible editor and opened tabs
This commit is contained in:
parent
890d340d7f
commit
2b9a1e2c7e
3 changed files with 16 additions and 3 deletions
4
package-lock.json
generated
4
package-lock.json
generated
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "claude-dev",
|
||||
"version": "1.0.41",
|
||||
"version": "1.0.5",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "claude-dev",
|
||||
"version": "1.0.41",
|
||||
"version": "1.0.5",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@anthropic-ai/sdk": "^0.24.3",
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
"name": "claude-dev",
|
||||
"displayName": "Claude Dev",
|
||||
"description": "Autonomous software engineer right in your IDE, capable of reading/writing files, executing commands, and more with your permission every step of the way.",
|
||||
"version": "1.0.41",
|
||||
"version": "1.0.5",
|
||||
"icon": "icon.png",
|
||||
"engines": {
|
||||
"vscode": "^1.84.0"
|
||||
|
|
|
|||
|
|
@ -73,6 +73,19 @@ SYSTEM INFORMATION
|
|||
|
||||
Operating System: ${osName()}
|
||||
Default Shell: ${defaultShell}
|
||||
VSCode Visible Files: ${
|
||||
vscode.window.visibleTextEditors
|
||||
?.map((editor) => editor.document?.uri?.fsPath)
|
||||
.filter(Boolean)
|
||||
.join(", ") || "(No files open)"
|
||||
}
|
||||
VSCode Opened Tabs: ${
|
||||
vscode.window.tabGroups.all
|
||||
.flatMap((group) => group.tabs)
|
||||
.map((tab) => (tab.input as vscode.TabInputText)?.uri?.fsPath)
|
||||
.filter(Boolean)
|
||||
.join(", ") || "(No tabs open)"
|
||||
}
|
||||
`
|
||||
|
||||
const tools: Tool[] = [
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue