refactor(vscode-ide-companion): translate Chinese comments to English

- Translate all Chinese comments in TypeScript files to English for better code readability
- Update documentation comments to be in English
- Maintain code functionality while improving internationalization

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
yiliang114
2025-11-25 23:41:24 +08:00
parent d5ede56e62
commit 3c09ad46ca
15 changed files with 216 additions and 214 deletions

View File

@@ -52,11 +52,11 @@ export class AcpConnection {
private nextRequestId = { value: 0 };
private backend: AcpBackend | null = null;
// 模块实例
// Module instances
private messageHandler: AcpMessageHandler;
private sessionManager: AcpSessionManager;
// 回调函数
// Callback functions
onSessionUpdate: (data: AcpSessionUpdate) => void = () => {};
onPermissionRequest: (data: AcpPermissionRequest) => Promise<{
optionId: string;
@@ -200,7 +200,7 @@ export class AcpConnection {
}
});
// 初始化协议
// Initialize protocol
const res = await this.sessionManager.initialize(
this.child,
this.pendingRequests,
@@ -249,7 +249,7 @@ export class AcpConnection {
}
});
} else {
// 响应
// Response
this.messageHandler.handleMessage(
message,
this.pendingRequests,