Change summary
crates/collab_ui/src/collab_ui.rs | 2 -
crates/collab_ui/src/panel_settings.rs | 33 ----------------------------
2 files changed, 35 deletions(-)
Detailed changes
@@ -11,7 +11,6 @@ use gpui::{
App, Pixels, PlatformDisplay, Size, WindowBackgroundAppearance, WindowBounds,
WindowDecorations, WindowKind, WindowOptions, point,
};
-use panel_settings::MessageEditorSettings;
pub use panel_settings::{CollaborationPanelSettings, NotificationPanelSettings};
use release_channel::ReleaseChannel;
use settings::Settings;
@@ -21,7 +20,6 @@ use workspace::AppState;
pub fn init(app_state: &Arc<AppState>, cx: &mut App) {
CollaborationPanelSettings::register(cx);
NotificationPanelSettings::register(cx);
- MessageEditorSettings::register(cx);
channel_view::init(cx);
collab_panel::init(cx);
@@ -18,16 +18,6 @@ pub struct NotificationPanelSettings {
pub default_width: Pixels,
}
-#[derive(Clone, Default, Debug)]
-// todo! are these settings even relevant any more?
-pub struct MessageEditorSettings {
- /// Whether to automatically replace emoji shortcodes with emoji characters.
- /// For example: typing `:wave:` gets replaced with `👋`.
- ///
- /// Default: false
- pub auto_replace_emoji_shortcode: bool,
-}
-
impl Settings for CollaborationPanelSettings {
fn from_defaults(content: &settings::SettingsContent, _cx: &mut ui::App) -> Self {
let panel = content.collaboration_panel.as_ref().unwrap();
@@ -80,26 +70,3 @@ impl Settings for NotificationPanelSettings {
) {
}
}
-
-impl Settings for MessageEditorSettings {
- fn from_defaults(content: &settings::SettingsContent, _cx: &mut ui::App) -> Self {
- let messages = content.message_editor.as_ref().unwrap();
- Self {
- auto_replace_emoji_shortcode: messages.auto_replace_emoji_shortcode.unwrap(),
- }
- }
-
- fn refine(&mut self, content: &settings::SettingsContent, _cx: &mut ui::App) {
- let Some(messages) = content.message_editor.as_ref() else {
- return;
- };
- self.auto_replace_emoji_shortcode
- .merge_from(&messages.auto_replace_emoji_shortcode);
- }
-
- fn import_from_vscode(
- _vscode: &settings::VsCodeSettings,
- _current: &mut settings::SettingsContent,
- ) {
- }
-}