mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 08:47:44 +00:00
refactor(vscode-ide-companion): clean up code and improve type safety
- Remove commented out error handling code in acpMessageHandler - Simplify session update handler by removing redundant comments - Clean up chat types interface definitions - Simplify null check in MessageRouter - Improve type safety in SettingsMessageHandler with ApprovalModeValue type
This commit is contained in:
@@ -233,21 +233,3 @@ export class AcpMessageHandler {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// [
|
||||
// {
|
||||
// received: 'reject_once',
|
||||
// code: 'invalid_enum_value',
|
||||
// options: [
|
||||
// 'proceed_once',
|
||||
// 'proceed_always',
|
||||
// 'proceed_always_server',
|
||||
// 'proceed_always_tool',
|
||||
// 'modify_with_editor',
|
||||
// 'cancel',
|
||||
// ],
|
||||
// path: [],
|
||||
// message:
|
||||
// "Invalid enum value. Expected 'proceed_once' | 'proceed_always' | 'proceed_always_server' | 'proceed_always_tool' | 'modify_with_editor' | 'cancel', received 'reject_once'",
|
||||
// },
|
||||
// ];
|
||||
|
||||
Reference in New Issue
Block a user