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:
yiliang114
2025-12-09 00:15:44 +08:00
parent ef3d7b92d0
commit 828b760820
5 changed files with 6 additions and 87 deletions

View File

@@ -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'",
// },
// ];