Merge branch 'main' into feat/support-insight-command

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
tanzhenxin 2026-02-26 21:05:41 +08:00
commit a172696b86
150 changed files with 9730 additions and 2047 deletions

View file

@ -84,7 +84,11 @@ export class AcpFileSystemService implements FileSystemService {
limit: 1,
});
// Check if content starts with BOM character (U+FEFF)
return response.content.charCodeAt(0) === 0xfeff;
// Use codePointAt for better Unicode support and check content length first
return (
response.content.length > 0 &&
response.content.codePointAt(0) === 0xfeff
);
} catch {
// Fall through to fallback if ACP read fails
}