feat: add diff view component

This commit is contained in:
2026-11-06 08:01:23 +07:00
parent f272f80d09
commit 7214c70ea7
11 changed files with 1067 additions and 35 deletions
+3
View File
@@ -10,6 +10,7 @@ gpui-native-core = { workspace = true, optional = true }
gpui-native-theme = { workspace = true }
gpui-native-utils = { workspace = true }
tree-sitter = "0.25"
similar = "2"
tree-sitter-rust = { version = "0.24", optional = true }
tree-sitter-typescript = { version = "0.23", optional = true }
tree-sitter-javascript = { version = "0.23", optional = true }
@@ -22,6 +23,7 @@ gpui = { workspace = true, features = ["test-support"] }
default = ["full"]
full = [
"code_view",
"diff_view",
"rust",
"typescript",
"javascript",
@@ -32,6 +34,7 @@ code_view = [
"gpui-native-core/scroll_area",
"gpui-native-core/scrollbar",
]
diff_view = ["code_view"]
rust = ["dep:tree-sitter-rust"]
typescript = ["dep:tree-sitter-typescript"]
javascript = ["dep:tree-sitter-javascript"]