mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 16:57:46 +00:00
[ide-mode] Close all open diffs when the CLI gets closed (#5792)
This commit is contained in:
@@ -175,7 +175,14 @@ export class IdeClient {
|
||||
}
|
||||
}
|
||||
|
||||
disconnect() {
|
||||
async disconnect() {
|
||||
if (this.state.status === IDEConnectionStatus.Disconnected) {
|
||||
return;
|
||||
}
|
||||
for (const filePath of this.diffResponses.keys()) {
|
||||
await this.closeDiff(filePath);
|
||||
}
|
||||
this.diffResponses.clear();
|
||||
this.setState(
|
||||
IDEConnectionStatus.Disconnected,
|
||||
'IDE integration disabled. To enable it again, run /ide enable.',
|
||||
|
||||
Reference in New Issue
Block a user