mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-21 04:41:16 -05:00
Add delay before calling close command
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
"name": "claude-dev",
|
"name": "claude-dev",
|
||||||
"displayName": "Claude Dev",
|
"displayName": "Claude Dev",
|
||||||
"description": "Autonomous coding agent right in your IDE, capable of creating/editing files, executing commands, and more with your permission every step of the way.",
|
"description": "Autonomous coding agent right in your IDE, capable of creating/editing files, executing commands, and more with your permission every step of the way.",
|
||||||
"version": "1.5.28",
|
"version": "1.5.29",
|
||||||
"icon": "icon.png",
|
"icon": "icon.png",
|
||||||
"engines": {
|
"engines": {
|
||||||
"vscode": "^1.84.0"
|
"vscode": "^1.84.0"
|
||||||
|
|||||||
@@ -882,12 +882,13 @@ export class ClaudeDev {
|
|||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(`Could not open editor for ${absolutePath}: ${error}`)
|
console.log(`Could not open editor for ${absolutePath}: ${error}`)
|
||||||
}
|
}
|
||||||
|
await delay(50)
|
||||||
// Wait for the in-memory document to become the active editor (sometimes vscode timing issues happen and this would accidentally close claude dev!)
|
// Wait for the in-memory document to become the active editor (sometimes vscode timing issues happen and this would accidentally close claude dev!)
|
||||||
await pWaitFor(
|
await pWaitFor(
|
||||||
() => {
|
() => {
|
||||||
return vscode.window.activeTextEditor?.document === inMemoryDocument
|
return vscode.window.activeTextEditor?.document === inMemoryDocument
|
||||||
},
|
},
|
||||||
{ timeout: 5000, interval: 100 }
|
{ timeout: 5000, interval: 50 }
|
||||||
)
|
)
|
||||||
|
|
||||||
if (vscode.window.activeTextEditor?.document === inMemoryDocument) {
|
if (vscode.window.activeTextEditor?.document === inMemoryDocument) {
|
||||||
|
|||||||
Reference in New Issue
Block a user