mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-30 12:40:44 +00:00
[ide-mode] Close all open diffs when the CLI gets closed (#5792)
This commit is contained in:
parent
5ec4ea9b4d
commit
3af4913ef3
7 changed files with 126 additions and 7 deletions
|
|
@ -18,6 +18,7 @@ import {
|
|||
ToolConfirmationOutcome,
|
||||
} from '@google/gemini-cli-core';
|
||||
import { useSessionStats } from '../contexts/SessionContext.js';
|
||||
import { runExitCleanup } from '../../utils/cleanup.js';
|
||||
import {
|
||||
Message,
|
||||
MessageType,
|
||||
|
|
@ -370,7 +371,8 @@ export const useSlashCommandProcessor = (
|
|||
}
|
||||
case 'quit':
|
||||
setQuittingMessages(result.messages);
|
||||
setTimeout(() => {
|
||||
setTimeout(async () => {
|
||||
await runExitCleanup();
|
||||
process.exit(0);
|
||||
}, 100);
|
||||
return { type: 'handled' };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue