Rename copilot_button crate to copilot_ui

This commit is contained in:
Piotr Osiewicz 2024-01-05 16:36:26 +01:00
parent 0670a6f838
commit 0602953af4
8 changed files with 13 additions and 10 deletions

4
Cargo.lock generated
View File

@ -1688,7 +1688,7 @@ dependencies = [
] ]
[[package]] [[package]]
name = "copilot_button" name = "copilot_ui"
version = "0.1.0" version = "0.1.0"
dependencies = [ dependencies = [
"anyhow", "anyhow",
@ -9537,7 +9537,7 @@ dependencies = [
"collections", "collections",
"command_palette", "command_palette",
"copilot", "copilot",
"copilot_button", "copilot_ui",
"ctor", "ctor",
"db", "db",
"diagnostics", "diagnostics",

View File

@ -16,7 +16,7 @@ members = [
"crates/collections", "crates/collections",
"crates/command_palette", "crates/command_palette",
"crates/copilot", "crates/copilot",
"crates/copilot_button", "crates/copilot_ui",
"crates/db", "crates/db",
"crates/refineable", "crates/refineable",
"crates/refineable/derive_refineable", "crates/refineable/derive_refineable",

View File

@ -1,11 +1,11 @@
[package] [package]
name = "copilot_button" name = "copilot_ui"
version = "0.1.0" version = "0.1.0"
edition = "2021" edition = "2021"
publish = false publish = false
[lib] [lib]
path = "src/copilot_button.rs" path = "src/copilot_ui.rs"
doctest = false doctest = false
[dependencies] [dependencies]

View File

@ -1,5 +1,4 @@
mod sign_in; use crate::sign_in::CopilotCodeVerification;
use anyhow::Result; use anyhow::Result;
use copilot::{Copilot, SignOut, Status}; use copilot::{Copilot, SignOut, Status};
use editor::{scroll::autoscroll::Autoscroll, Editor}; use editor::{scroll::autoscroll::Autoscroll, Editor};
@ -13,7 +12,6 @@ use language::{
File, Language, File, Language,
}; };
use settings::{update_settings_file, Settings, SettingsStore}; use settings::{update_settings_file, Settings, SettingsStore};
use sign_in::CopilotCodeVerification;
use std::{path::Path, sync::Arc}; use std::{path::Path, sync::Arc};
use util::{paths, ResultExt}; use util::{paths, ResultExt};
use workspace::{ use workspace::{

View File

@ -0,0 +1,5 @@
mod copilot_button;
mod sign_in;
pub use copilot_button::*;
pub use sign_in::*;

View File

@ -30,7 +30,7 @@ command_palette = { path = "../command_palette" }
client = { path = "../client" } client = { path = "../client" }
# clock = { path = "../clock" } # clock = { path = "../clock" }
copilot = { path = "../copilot" } copilot = { path = "../copilot" }
copilot_button = { path = "../copilot_button" } copilot_ui = { path = "../copilot_ui" }
diagnostics = { path = "../diagnostics" } diagnostics = { path = "../diagnostics" }
db = { path = "../db" } db = { path = "../db" }
editor = { path = "../editor" } editor = { path = "../editor" }

View File

@ -123,7 +123,7 @@ pub fn initialize_workspace(app_state: Arc<AppState>, cx: &mut AppContext) {
// workspace.set_titlebar_item(collab_titlebar_item.into_any(), cx); // workspace.set_titlebar_item(collab_titlebar_item.into_any(), cx);
let copilot = let copilot =
cx.new_view(|cx| copilot_button::CopilotButton::new(app_state.fs.clone(), cx)); cx.new_view(|cx| copilot_ui::CopilotButton::new(app_state.fs.clone(), cx));
let diagnostic_summary = let diagnostic_summary =
cx.new_view(|cx| diagnostics::items::DiagnosticIndicator::new(workspace, cx)); cx.new_view(|cx| diagnostics::items::DiagnosticIndicator::new(workspace, cx));
let activity_indicator = let activity_indicator =