Skip to content

Commit baabf3f

Browse files
Merge branch 'zed-industries:main' into commit_history
2 parents 3c21886 + 22d9b5d commit baabf3f

218 files changed

Lines changed: 6990 additions & 4556 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/config.toml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,6 @@ rustflags = [
2626
"-C",
2727
"target-feature=+crt-static", # This fixes the linking issue when compiling livekit on Windows
2828
]
29+
30+
[env]
31+
MACOSX_DEPLOYMENT_TARGET = "10.15.7"

‎Cargo.lock‎

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

‎Cargo.toml‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,11 +170,8 @@ members = [
170170
#
171171

172172
"extensions/emmet",
173-
"extensions/erlang",
174173
"extensions/glsl",
175-
"extensions/haskell",
176174
"extensions/html",
177-
"extensions/lua",
178175
"extensions/perplexity",
179176
"extensions/proto",
180177
"extensions/purescript",
@@ -454,7 +451,7 @@ livekit = { git = "https://github.com/zed-industries/livekit-rust-sdks", rev = "
454451
], default-features = false }
455452
log = { version = "0.4.16", features = ["kv_unstable_serde", "serde"] }
456453
markup5ever_rcdom = "0.3.0"
457-
mlua = { version = "0.10", features = ["lua54", "vendored"] }
454+
mlua = { version = "0.10", features = ["lua54", "vendored", "async", "send"] }
458455
nanoid = "0.4"
459456
nbformat = { version = "0.10.0" }
460457
nix = "0.29"

‎assets/icons/ai_edit.svg‎

Lines changed: 10 additions & 0 deletions
Loading

‎assets/icons/file_icons/luau.svg‎

Lines changed: 3 additions & 0 deletions
Loading

‎assets/keymaps/default-linux.json‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -475,9 +475,7 @@
475475
"ctrl-alt-delete": "editor::DeleteToNextSubwordEnd",
476476
"ctrl-alt-d": "editor::DeleteToNextSubwordEnd",
477477
"ctrl-alt-left": "editor::MoveToPreviousSubwordStart",
478-
// "ctrl-alt-b": "editor::MoveToPreviousSubwordStart",
479478
"ctrl-alt-right": "editor::MoveToNextSubwordEnd",
480-
"ctrl-alt-f": "editor::MoveToNextSubwordEnd",
481479
"ctrl-alt-shift-left": "editor::SelectToPreviousSubwordStart",
482480
"ctrl-alt-shift-b": "editor::SelectToPreviousSubwordStart",
483481
"ctrl-alt-shift-right": "editor::SelectToNextSubwordEnd",
@@ -747,7 +745,8 @@
747745
"context": "GitCommit > Editor",
748746
"bindings": {
749747
"enter": "editor::Newline",
750-
"ctrl-enter": "git::Commit"
748+
"ctrl-enter": "git::Commit",
749+
"alt-l": "git::GenerateCommitMessage"
751750
}
752751
},
753752
{
@@ -769,7 +768,8 @@
769768
"tab": "git_panel::FocusChanges",
770769
"shift-tab": "git_panel::FocusChanges",
771770
"ctrl-enter": "git::Commit",
772-
"alt-up": "git_panel::FocusChanges"
771+
"alt-up": "git_panel::FocusChanges",
772+
"alt-l": "git::GenerateCommitMessage"
773773
}
774774
},
775775
{

‎assets/keymaps/default-macos.json‎

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@
108108
"cmd-right": ["editor::MoveToEndOfLine", { "stop_at_soft_wraps": true }],
109109
"ctrl-e": ["editor::MoveToEndOfLine", { "stop_at_soft_wraps": false }],
110110
"end": ["editor::MoveToEndOfLine", { "stop_at_soft_wraps": true }],
111-
"cmd-up": "editor::MoveToStartOfExcerpt",
112-
"cmd-down": "editor::MoveToEndOfExcerpt",
111+
"cmd-up": "editor::MoveToBeginning",
112+
"cmd-down": "editor::MoveToEnd",
113113
"cmd-home": "editor::MoveToBeginning", // Typed via `cmd-fn-left`
114114
"cmd-end": "editor::MoveToEnd", // Typed via `cmd-fn-right`
115115
"shift-up": "editor::SelectUp",
@@ -124,8 +124,8 @@
124124
"alt-shift-right": "editor::SelectToNextWordEnd", // cursorWordRightSelect
125125
"ctrl-shift-up": "editor::SelectToStartOfParagraph",
126126
"ctrl-shift-down": "editor::SelectToEndOfParagraph",
127-
"cmd-shift-up": "editor::SelectToStartOfExcerpt",
128-
"cmd-shift-down": "editor::SelectToEndOfExcerpt",
127+
"cmd-shift-up": "editor::SelectToBeginning",
128+
"cmd-shift-down": "editor::SelectToEnd",
129129
"cmd-a": "editor::SelectAll",
130130
"cmd-l": "editor::SelectLine",
131131
"cmd-shift-i": "editor::Format",
@@ -172,6 +172,16 @@
172172
"alt-enter": "editor::OpenSelectionsInMultibuffer"
173173
}
174174
},
175+
{
176+
"context": "Editor && multibuffer",
177+
"use_key_equivalents": true,
178+
"bindings": {
179+
"cmd-up": "editor::MoveToStartOfExcerpt",
180+
"cmd-down": "editor::MoveToStartOfNextExcerpt",
181+
"cmd-shift-up": "editor::SelectToStartOfExcerpt",
182+
"cmd-shift-down": "editor::SelectToStartOfNextExcerpt"
183+
}
184+
},
175185
{
176186
"context": "Editor && mode == full && edit_prediction",
177187
"use_key_equivalents": true,
@@ -786,15 +796,17 @@
786796
"tab": "git_panel::FocusChanges",
787797
"shift-tab": "git_panel::FocusChanges",
788798
"alt-up": "git_panel::FocusChanges",
789-
"shift-escape": "git::ExpandCommitEditor"
799+
"shift-escape": "git::ExpandCommitEditor",
800+
"alt-tab": "git::GenerateCommitMessage"
790801
}
791802
},
792803
{
793804
"context": "GitCommit > Editor",
794805
"use_key_equivalents": true,
795806
"bindings": {
796807
"enter": "editor::Newline",
797-
"cmd-enter": "git::Commit"
808+
"cmd-enter": "git::Commit",
809+
"alt-tab": "git::GenerateCommitMessage"
798810
}
799811
},
800812
{

‎assets/settings/default.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,7 @@
845845
// "hunk_style": "transparent"
846846
// 2. Show unstaged hunks with a pattern background:
847847
// "hunk_style": "pattern"
848-
"hunk_style": "transparent"
848+
"hunk_style": "staged_border"
849849
},
850850
// Configuration for how direnv configuration should be loaded. May take 2 values:
851851
// 1. Load direnv configuration using `direnv export json` directly.
@@ -1055,7 +1055,6 @@
10551055
// }
10561056
//
10571057
"file_types": {
1058-
"Plain Text": ["txt"],
10591058
"JSONC": ["**/.zed/**/*.json", "**/zed/**/*.json", "**/Zed/**/*.json", "**/.vscode/**/*.json"],
10601059
"Shell Script": [".env.*"]
10611060
},
@@ -1175,6 +1174,7 @@
11751174
"format_on_save": "off",
11761175
"use_on_type_format": false,
11771176
"allow_rewrap": "anywhere",
1177+
"soft_wrap": "bounded",
11781178
"prettier": {
11791179
"allowed": true
11801180
}

‎crates/activity_indicator/src/activity_indicator.rs‎

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ use gpui::{
99
};
1010
use language::{LanguageRegistry, LanguageServerBinaryStatus, LanguageServerId};
1111
use lsp::LanguageServerName;
12-
use project::{EnvironmentErrorMessage, LanguageServerProgress, Project, WorktreeId};
12+
use project::{
13+
EnvironmentErrorMessage, LanguageServerProgress, LspStoreEvent, Project,
14+
ProjectEnvironmentEvent, WorktreeId,
15+
};
1316
use smallvec::SmallVec;
1417
use std::{cmp::Reverse, fmt::Write, sync::Arc, time::Duration};
1518
use ui::{prelude::*, ButtonLike, ContextMenu, PopoverMenu, PopoverMenuHandle, Tooltip};
@@ -73,7 +76,22 @@ impl ActivityIndicator {
7376
})
7477
.detach();
7578

76-
cx.observe(&project, |_, _, cx| cx.notify()).detach();
79+
cx.subscribe(
80+
&project.read(cx).lsp_store(),
81+
|_, _, event, cx| match event {
82+
LspStoreEvent::LanguageServerUpdate { .. } => cx.notify(),
83+
_ => {}
84+
},
85+
)
86+
.detach();
87+
88+
cx.subscribe(
89+
&project.read(cx).environment().clone(),
90+
|_, _, event, cx| match event {
91+
ProjectEnvironmentEvent::ErrorsUpdated => cx.notify(),
92+
},
93+
)
94+
.detach();
7795

7896
if let Some(auto_updater) = auto_updater.as_ref() {
7997
cx.observe(auto_updater, |_, _, cx| cx.notify()).detach();
@@ -204,7 +222,7 @@ impl ActivityIndicator {
204222
message: error.0.clone(),
205223
on_click: Some(Arc::new(move |this, window, cx| {
206224
this.project.update(cx, |project, cx| {
207-
project.remove_environment_error(cx, worktree_id);
225+
project.remove_environment_error(worktree_id, cx);
208226
});
209227
window.dispatch_action(Box::new(workspace::OpenLog), cx);
210228
})),

‎crates/assistant/src/assistant_configuration.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ impl ConfigurationView {
110110
.bg(cx.theme().colors().surface_background)
111111
.border_1()
112112
.border_color(cx.theme().colors().border_variant)
113-
.rounded_md()
113+
.rounded_sm()
114114
.when(configuration_view.is_none(), |this| {
115115
this.child(div().child(Label::new(format!(
116116
"No configuration view for {}",

0 commit comments

Comments
 (0)