Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

:lipstick:

Antonio Scandurrac22342e271ad
diff --git a/crates/copilot_button/src/copilot_button.rs b/crates/copilot_button/src/copilot_button.rs
index 7881ef04564..a597bb7e47c 100644
--- a/crates/copilot_button/src/copilot_button.rs
+++ b/crates/copilot_button/src/copilot_button.rs
@@ -1,6 +1,5 @@
-use std::sync::Arc;
-
use context_menu::{ContextMenu, ContextMenuItem};
+use copilot::{Copilot, Reinstall, SignOut, Status};
use editor::Editor;
use gpui::{
elements::*,
@@ -9,14 +8,13 @@ use gpui::{
ViewHandle, WindowContext,
};
use settings::{settings_file::SettingsFile, Settings};
+use std::sync::Arc;
use util::ResultExt;
use workspace::{
item::ItemHandle, notifications::simple_message_notification::OsOpen, StatusItemView, Toast,
Workspace,
};
-use copilot::{Copilot, Reinstall, SignOut, Status};
-
const COPILOT_SETTINGS_URL: &str = "https://github.com/settings/copilot";
const COPILOT_STARTING_TOAST_ID: usize = 1337;
const COPILOT_ERROR_TOAST_ID: usize = 1338;