Skip to content

Commit d4c1cf1

Browse files
committed
Merge branch 'main' into show-git-commit
2 parents d1092d5 + 8a212be commit d4c1cf1

File tree

838 files changed

+7269
-6318
lines changed

Some content is hidden

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

838 files changed

+7269
-6318
lines changed

Cargo.lock

Lines changed: 308 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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ default-members = ["crates/zed"]
198198

199199
[workspace.package]
200200
publish = false
201-
edition = "2021"
201+
edition = "2024"
202202

203203
[workspace.dependencies]
204204

assets/keymaps/vim.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@
261261
"o": "vim::OtherEndRowAware",
262262
"d": "vim::VisualDelete",
263263
"x": "vim::VisualDelete",
264+
"delete": "vim::VisualDelete",
264265
"shift-d": "vim::VisualDeleteLine",
265266
"shift-x": "vim::VisualDeleteLine",
266267
"y": "vim::VisualYank",

crates/activity_indicator/src/activity_indicator.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ use editor::Editor;
33
use extension_host::ExtensionStore;
44
use futures::StreamExt;
55
use gpui::{
6-
actions, percentage, Animation, AnimationExt as _, App, Context, CursorStyle, Entity,
7-
EventEmitter, InteractiveElement as _, ParentElement as _, Render, SharedString,
8-
StatefulInteractiveElement, Styled, Transformation, Window,
6+
Animation, AnimationExt as _, App, Context, CursorStyle, Entity, EventEmitter,
7+
InteractiveElement as _, ParentElement as _, Render, SharedString, StatefulInteractiveElement,
8+
Styled, Transformation, Window, actions, percentage,
99
};
1010
use language::{BinaryStatus, LanguageRegistry, LanguageServerId};
1111
use project::{
@@ -14,9 +14,9 @@ use project::{
1414
};
1515
use smallvec::SmallVec;
1616
use std::{cmp::Reverse, fmt::Write, sync::Arc, time::Duration};
17-
use ui::{prelude::*, ButtonLike, ContextMenu, PopoverMenu, PopoverMenuHandle, Tooltip};
17+
use ui::{ButtonLike, ContextMenu, PopoverMenu, PopoverMenuHandle, Tooltip, prelude::*};
1818
use util::truncate_and_trailoff;
19-
use workspace::{item::ItemHandle, StatusItemView, Workspace};
19+
use workspace::{StatusItemView, Workspace, item::ItemHandle};
2020

2121
actions!(activity_indicator, [ShowErrorMessage]);
2222

crates/anthropic/src/anthropic.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ mod supported_countries;
22

33
use std::{pin::Pin, str::FromStr};
44

5-
use anyhow::{anyhow, Context as _, Result};
5+
use anyhow::{Context as _, Result, anyhow};
66
use chrono::{DateTime, Utc};
7-
use futures::{io::BufReader, stream::BoxStream, AsyncBufReadExt, AsyncReadExt, Stream, StreamExt};
7+
use futures::{AsyncBufReadExt, AsyncReadExt, Stream, StreamExt, io::BufReader, stream::BoxStream};
88
use http_client::http::{HeaderMap, HeaderValue};
99
use http_client::{AsyncBody, HttpClient, Method, Request as HttpRequest};
1010
use serde::{Deserialize, Serialize};

crates/askpass/src/askpass.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ use std::time::Duration;
55
use anyhow::Context as _;
66
use futures::channel::{mpsc, oneshot};
77
#[cfg(unix)]
8-
use futures::{io::BufReader, AsyncBufReadExt as _};
8+
use futures::{AsyncBufReadExt as _, io::BufReader};
99
#[cfg(unix)]
10-
use futures::{select_biased, AsyncWriteExt as _, FutureExt as _};
10+
use futures::{AsyncWriteExt as _, FutureExt as _, select_biased};
1111
use futures::{SinkExt, StreamExt};
1212
use gpui::{AsyncApp, BackgroundExecutor, Task};
1313
#[cfg(unix)]

crates/assets/src/assets.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,11 @@ impl Assets {
5757

5858
pub fn load_test_fonts(&self, cx: &App) {
5959
cx.text_system()
60-
.add_fonts(vec![self
61-
.load("fonts/plex-mono/ZedPlexMono-Regular.ttf")
62-
.unwrap()
63-
.unwrap()])
60+
.add_fonts(vec![
61+
self.load("fonts/plex-mono/ZedPlexMono-Regular.ttf")
62+
.unwrap()
63+
.unwrap(),
64+
])
6465
.unwrap()
6566
}
6667
}

crates/assistant/src/assistant.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use client::Client;
1414
use command_palette_hooks::CommandPaletteFilter;
1515
use feature_flags::FeatureFlagAppExt;
1616
use fs::Fs;
17-
use gpui::{actions, App, Global, ReadGlobal, UpdateGlobal};
17+
use gpui::{App, Global, ReadGlobal, UpdateGlobal, actions};
1818
use language_model::{
1919
LanguageModelId, LanguageModelProviderId, LanguageModelRegistry, LanguageModelResponseMessage,
2020
};

crates/assistant/src/assistant_configuration.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
use std::sync::Arc;
22

33
use collections::HashMap;
4-
use gpui::{canvas, AnyView, App, EventEmitter, FocusHandle, Focusable, Subscription};
4+
use gpui::{AnyView, App, EventEmitter, FocusHandle, Focusable, Subscription, canvas};
55
use language_model::{LanguageModelProvider, LanguageModelProviderId, LanguageModelRegistry};
6-
use ui::{prelude::*, ElevationIndex};
6+
use ui::{ElevationIndex, prelude::*};
77
use workspace::Item;
88

99
pub struct ConfigurationView {

crates/assistant/src/assistant_panel.rs

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,44 @@
1-
use crate::assistant_configuration::{ConfigurationView, ConfigurationViewEvent};
21
use crate::Assistant;
2+
use crate::assistant_configuration::{ConfigurationView, ConfigurationViewEvent};
33
use crate::{
4-
terminal_inline_assistant::TerminalInlineAssistant, DeployHistory, InlineAssistant, NewChat,
4+
DeployHistory, InlineAssistant, NewChat, terminal_inline_assistant::TerminalInlineAssistant,
55
};
6-
use anyhow::{anyhow, Result};
6+
use anyhow::{Result, anyhow};
77
use assistant_context_editor::{
8-
make_lsp_adapter_delegate, AssistantContext, AssistantPanelDelegate, ContextEditor,
9-
ContextEditorToolbarItem, ContextEditorToolbarItemEvent, ContextHistory, ContextId,
10-
ContextStore, ContextStoreEvent, InsertDraggedFiles, SlashCommandCompletionProvider,
11-
DEFAULT_TAB_TITLE,
8+
AssistantContext, AssistantPanelDelegate, ContextEditor, ContextEditorToolbarItem,
9+
ContextEditorToolbarItemEvent, ContextHistory, ContextId, ContextStore, ContextStoreEvent,
10+
DEFAULT_TAB_TITLE, InsertDraggedFiles, SlashCommandCompletionProvider,
11+
make_lsp_adapter_delegate,
1212
};
1313
use assistant_settings::{AssistantDockPosition, AssistantSettings};
1414
use assistant_slash_command::SlashCommandWorkingSet;
15-
use client::{proto, Client, Status};
15+
use client::{Client, Status, proto};
1616
use editor::{Editor, EditorEvent};
1717
use fs::Fs;
1818
use gpui::{
19-
prelude::*, Action, App, AsyncWindowContext, Entity, EventEmitter, ExternalPaths, FocusHandle,
20-
Focusable, InteractiveElement, IntoElement, ParentElement, Pixels, Render, Styled,
21-
Subscription, Task, UpdateGlobal, WeakEntity,
19+
Action, App, AsyncWindowContext, Entity, EventEmitter, ExternalPaths, FocusHandle, Focusable,
20+
InteractiveElement, IntoElement, ParentElement, Pixels, Render, Styled, Subscription, Task,
21+
UpdateGlobal, WeakEntity, prelude::*,
2222
};
2323
use language::LanguageRegistry;
2424
use language_model::{
2525
AuthenticateError, LanguageModelProviderId, LanguageModelRegistry, ZED_CLOUD_PROVIDER_ID,
2626
};
2727
use project::Project;
28-
use prompt_library::{open_prompt_library, PromptLibrary};
28+
use prompt_library::{PromptLibrary, open_prompt_library};
2929
use prompt_store::PromptBuilder;
30-
use search::{buffer_search::DivRegistrar, BufferSearchBar};
31-
use settings::{update_settings_file, Settings};
30+
use search::{BufferSearchBar, buffer_search::DivRegistrar};
31+
use settings::{Settings, update_settings_file};
3232
use smol::stream::StreamExt;
3333
use std::{ops::ControlFlow, path::PathBuf, sync::Arc};
34-
use terminal_view::{terminal_panel::TerminalPanel, TerminalView};
35-
use ui::{prelude::*, ContextMenu, PopoverMenu, Tooltip};
36-
use util::{maybe, ResultExt};
34+
use terminal_view::{TerminalView, terminal_panel::TerminalPanel};
35+
use ui::{ContextMenu, PopoverMenu, Tooltip, prelude::*};
36+
use util::{ResultExt, maybe};
3737
use workspace::DraggedTab;
3838
use workspace::{
39+
DraggedSelection, Pane, ShowConfiguration, ToggleZoom, Workspace,
3940
dock::{DockPosition, Panel, PanelEvent},
40-
pane, DraggedSelection, Pane, ShowConfiguration, ToggleZoom, Workspace,
41+
pane,
4142
};
4243
use zed_actions::assistant::{InlineAssist, OpenPromptLibrary, ToggleFocus};
4344

0 commit comments

Comments
 (0)