mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-06 08:07:49 +00:00
Git blobs were always decoded as UTF-8, so files in GBK or other legacy encodings showed every line as changed in the gutter, diff, blame and commit views, and staging/committing could re-encode them wrongly. Blob text is now decoded and encoded with the file's encoding: the open document's encoding, else detection on the working file with the project default as fallback, else detection on the blob. Covers line hunks, file-at-revision, blame, stage patch/hunks, commit, conflict versions, diff text, and the agent worktree's file_at, partial commit and patch helpers. Text that cannot be represented in the target encoding is reported as an error instead of being written lossily. Fixes #243 未在 Windows 实机验证。
28 lines
678 B
TOML
28 lines
678 B
TOML
[package]
|
|
name = "ide-agent"
|
|
description = "Coding agents over the Agent Client Protocol: tasks, sessions, worktrees and their timelines"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
|
|
[dependencies]
|
|
encoding_rs.workspace = true
|
|
ide-vfs.workspace = true
|
|
ide-core.workspace = true
|
|
ide-jsonrpc.workspace = true
|
|
ide-vcs.workspace = true
|
|
ide-tools = { path = "../ide-tools" }
|
|
serde.workspace = true
|
|
serde_json.workspace = true
|
|
specta.workspace = true
|
|
tokio.workspace = true
|
|
toml.workspace = true
|
|
tracing.workspace = true
|
|
parking_lot.workspace = true
|
|
dunce.workspace = true
|
|
uuid.workspace = true
|
|
which = "8"
|
|
|
|
[dev-dependencies]
|
|
tempfile.workspace = true
|