Skip to content

Commit c7417b9

Browse files
committed
Merge branch 'main' into git-undo
2 parents d0c39a8 + fc86e7c commit c7417b9

165 files changed

Lines changed: 4443 additions & 3730 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Cargo.lock

Lines changed: 136 additions & 135 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ members = [
3434
"crates/db",
3535
"crates/deepseek",
3636
"crates/diagnostics",
37-
"crates/diff",
37+
"crates/buffer_diff",
3838
"crates/docs_preprocessor",
3939
"crates/editor",
4040
"crates/evals",
@@ -171,7 +171,6 @@ members = [
171171
"extensions/haskell",
172172
"extensions/html",
173173
"extensions/lua",
174-
"extensions/php",
175174
"extensions/perplexity",
176175
"extensions/proto",
177176
"extensions/purescript",
@@ -236,7 +235,7 @@ copilot = { path = "crates/copilot" }
236235
db = { path = "crates/db" }
237236
deepseek = { path = "crates/deepseek" }
238237
diagnostics = { path = "crates/diagnostics" }
239-
diff = { path = "crates/diff" }
238+
buffer_diff = { path = "crates/buffer_diff" }
240239
editor = { path = "crates/editor" }
241240
extension = { path = "crates/extension" }
242241
extension_host = { path = "crates/extension_host" }
@@ -423,6 +422,7 @@ ignore = "0.4.22"
423422
image = "0.25.1"
424423
indexmap = { version = "2.7.0", features = ["serde"] }
425424
indoc = "2"
425+
inventory = "0.3.19"
426426
itertools = "0.14.0"
427427
jsonwebtoken = "9.3"
428428
jupyter-protocol = { version = "0.6.0" }
@@ -502,6 +502,7 @@ simplelog = "0.12.2"
502502
smallvec = { version = "1.6", features = ["union"] }
503503
smol = "2.0"
504504
sqlformat = "0.2"
505+
streaming-iterator = "0.1"
505506
strsim = "0.11"
506507
strum = { version = "0.26.0", features = ["derive"] }
507508
subtle = "2.5.0"
@@ -523,7 +524,7 @@ tiny_http = "0.8"
523524
toml = "0.8"
524525
tokio = { version = "1" }
525526
tower-http = "0.4.4"
526-
tree-sitter = { version = "0.23", features = ["wasm"] }
527+
tree-sitter = { version = "0.24", features = ["wasm"] }
527528
tree-sitter-bash = "0.23"
528529
tree-sitter-c = "0.23"
529530
tree-sitter-cpp = "0.23"
@@ -552,16 +553,16 @@ unicode-segmentation = "1.10"
552553
unicode-script = "0.5.7"
553554
url = "2.2"
554555
uuid = { version = "1.1.2", features = ["v4", "v5", "v7", "serde"] }
555-
wasmparser = "0.215"
556-
wasm-encoder = "0.215"
557-
wasmtime = { version = "24", default-features = false, features = [
556+
wasmparser = "0.217"
557+
wasm-encoder = "0.217"
558+
wasmtime = { version = "25", default-features = false, features = [
558559
"async",
559560
"demangle",
560561
"runtime",
561562
"cranelift",
562563
"component-model",
563564
] }
564-
wasmtime-wasi = "24"
565+
wasmtime-wasi = "25"
565566
which = "6.0.0"
566567
wit-component = "0.201"
567568
zed_llm_client = "0.4"

assets/icons/file_icons/file_types.json

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,15 @@
2323
"c++": "cpp",
2424
"cc": "cpp",
2525
"cjs": "javascript",
26+
"cjsx": "react",
2627
"coffee": "coffeescript",
2728
"conf": "settings",
2829
"cpp": "cpp",
2930
"css": "css",
3031
"csv": "storage",
3132
"cxx": "cpp",
3233
"cts": "typescript",
34+
"ctsx": "react",
3335
"dart": "dart",
3436
"dat": "storage",
3537
"db": "storage",
@@ -113,14 +115,15 @@
113115
"lua": "lua",
114116
"m4a": "audio",
115117
"m4v": "video",
116-
"markdown": "document",
117-
"md": "document",
118+
"markdown": "markdown",
119+
"md": "markdown",
118120
"mdb": "storage",
119121
"mdf": "storage",
120122
"mdx": "document",
121123
"metadata": "code",
122124
"metal": "metal",
123125
"mjs": "javascript",
126+
"mjsx": "react",
124127
"mka": "audio",
125128
"mkv": "video",
126129
"ml": "ocaml",
@@ -130,6 +133,7 @@
130133
"mp3": "audio",
131134
"mp4": "video",
132135
"mts": "typescript",
136+
"mtsx": "react",
133137
"myd": "storage",
134138
"myi": "storage",
135139
"nim": "nim",
@@ -186,7 +190,18 @@
186190
"sh": "terminal",
187191
"sql": "storage",
188192
"sqlite": "storage",
189-
"svelte": "template",
193+
"stylelint.config.cjs": "stylelint",
194+
"stylelint.config.js": "stylelint",
195+
"stylelint.config.mjs": "stylelint",
196+
"stylelintignore": "stylelint",
197+
"stylelintrc": "stylelint",
198+
"stylelintrc.cjs": "stylelint",
199+
"stylelintrc.js": "stylelint",
200+
"stylelintrc.json": "stylelint",
201+
"stylelintrc.mjs": "stylelint",
202+
"stylelintrc.yaml": "stylelint",
203+
"stylelintrc.yml": "stylelint",
204+
"svelte": "svelte",
190205
"svg": "image",
191206
"swift": "swift",
192207
"tcl": "tcl",

assets/icons/zed_predict_bg.svg

Lines changed: 2 additions & 2 deletions
Loading

assets/icons/zed_predict_down.svg

Lines changed: 5 additions & 0 deletions
Loading

assets/icons/zed_predict_up.svg

Lines changed: 5 additions & 0 deletions
Loading

assets/keymaps/default-linux.json

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"ctrl-,": "zed::OpenSettings",
3232
"ctrl-q": "zed::Quit",
3333
"f11": "zed::ToggleFullScreen",
34-
"ctrl-alt-z": "zeta::RateCompletions",
34+
"ctrl-alt-z": "edit_prediction::RateCompletions",
3535
"ctrl-shift-i": "edit_prediction::ToggleMenu"
3636
}
3737
},
@@ -502,17 +502,22 @@
502502
"tab": "editor::ComposeCompletion"
503503
}
504504
},
505+
// Bindings for accepting edit predictions
506+
//
507+
// alt-l is provided as an alternative to tab/alt-tab. and will be displayed in the UI. This is
508+
// because alt-tab may not be available, as it is often used for window switching.
505509
{
506510
"context": "Editor && edit_prediction",
507511
"bindings": {
508-
// Changing the modifier currently breaks accepting while you also an LSP completions menu open
509-
"alt-enter": "editor::AcceptEditPrediction"
512+
"alt-tab": "editor::AcceptEditPrediction",
513+
"alt-l": "editor::AcceptEditPrediction"
510514
}
511515
},
512516
{
513517
"context": "Editor && edit_prediction && !edit_prediction_requires_modifier",
514518
"bindings": {
515-
"tab": "editor::AcceptEditPrediction"
519+
"tab": "editor::AcceptEditPrediction",
520+
"alt-l": "editor::AcceptEditPrediction"
516521
}
517522
},
518523
{

assets/keymaps/default-macos.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"cmd-m": "zed::Minimize",
4040
"fn-f": "zed::ToggleFullScreen",
4141
"ctrl-cmd-f": "zed::ToggleFullScreen",
42-
"ctrl-cmd-z": "zeta::RateCompletions",
42+
"ctrl-cmd-z": "edit_prediction::RateCompletions",
4343
"ctrl-cmd-i": "edit_prediction::ToggleMenu"
4444
}
4545
},
@@ -583,7 +583,6 @@
583583
{
584584
"context": "Editor && edit_prediction",
585585
"bindings": {
586-
// Changing the modifier currently breaks accepting while you also an LSP completions menu open
587586
"alt-tab": "editor::AcceptEditPrediction"
588587
}
589588
},

assets/keymaps/vim.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -694,5 +694,22 @@
694694
"shift-x": "git::StageAll",
695695
"shift-u": "git::UnstageAll"
696696
}
697+
},
698+
{
699+
"context": "Editor && edit_prediction && !edit_prediction_requires_modifier",
700+
"bindings": {
701+
// This is identical to the binding in the base keymap, but the vim bindings above to
702+
// "vim::Tab" shadow it, so it needs to be bound again.
703+
"tab": "editor::AcceptEditPrediction"
704+
}
705+
},
706+
{
707+
"context": "os != macos && Editor && edit_prediction",
708+
"bindings": {
709+
// alt-l is provided as an alternative to tab/alt-tab. and will be displayed in the UI. This
710+
// is because alt-tab may not be available, as it is often used for window switching on Linux
711+
// and Windows.
712+
"alt-l": "editor::AcceptEditPrediction"
713+
}
697714
}
698715
]

assets/settings/default.json

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,6 @@
168168
/// Whether to show the signature help after completion or a bracket pair inserted.
169169
/// If `auto_signature_help` is enabled, this setting will be treated as enabled also.
170170
"show_signature_help_after_edits": false,
171-
/// Whether to show the edit predictions next to the completions provided by a language server.
172-
/// Only has an effect if edit prediction provider supports it.
173-
"show_edit_predictions_in_menu": true,
174171
// Whether to show wrap guides (vertical rulers) in the editor.
175172
// Setting this to true will show a guide at the 'preferred_line_length' value
176173
// if 'soft_wrap' is set to 'preferred_line_length', and will show any
@@ -795,11 +792,11 @@
795792
],
796793
// When to show edit predictions previews in buffer.
797794
// This setting takes two possible values:
798-
// 1. Display inline when there are no language server completions available.
799-
// "inline_preview": "auto"
800-
// 2. Display inline when holding modifier key (alt by default).
801-
// "inline_preview": "when_holding_modifier"
802-
"inline_preview": "auto"
795+
// 1. Display inline when holding modifier key (alt by default).
796+
// "mode": "auto"
797+
// 2. Display inline when there are no language server completions available.
798+
// "mode": "eager_preview"
799+
"mode": "auto"
803800
},
804801
// Settings specific to journaling
805802
"journal": {

0 commit comments

Comments
 (0)