Repository: lapce/lapce
File: lapce-data/src/proxy.rs (Rust)

Code before:
                    LapceUICommand::PublishDiagnostics(diagnostics),
                    Target::Widget(self.tab_id),
                );
            }
            WorkDoneProgress { progress } => {
                let _ = self.event_sink.submit_command(
                    LAPCE_UI_COMMAND,
                    LapceUICommand::WorkDoneProgress(progress),
                    Target::Widget(self.tab_id),
                );
            }
            LogMessage {
                message: LogMessageParams { message, typ },
            } => match typ {
                MessageType::ERROR => {
                    log::error!("{}", message)
                }
                MessageType::WARNING => {
                    log::warn!("{}", message)
                }
                MessageType::INFO => {
                    log::info!("{}", message)
                }
                MessageType::LOG => {
                    log::debug!("{}", message)
                }
                _ => {}
            },
            ShowMessage { title, message } => {
                let _ = self.event_sink.submit_command(
                    LAPCE_UI_COMMAND,
                    LapceUICommand::NewMessage {
                        kind: message.typ,
                        title,
                        message: message.message,
                    },
                    Target::Widget(self.tab_id),
                );
            }
            HomeDir { path } => {
                let _ = self.event_sink.submit_command(
                    LAPCE_UI_COMMAND,
                    LapceUICommand::HomeDir(path),
                    Target::Widget(self.tab_id),
                );
            }
            VoltInstalled { volt, icon } => {
                let _ = self.event_sink.submit_command(
                    LAPCE_UI_COMMAND,
                    LapceUICommand::VoltInstalled(volt, icon),
                    Target::Widget(self.tab_id),

Review comment (bug):
```suggestion
                MessageType::ERROR => {
                    log::error!("{message}")
                }
                MessageType::WARNING => {
                    log::warn!("{message}")
                }
                MessageType::INFO => {
                    log::info!("{message}")
                }
                MessageType::LOG => {
                    log::debug!("{message}")
                }
```

Code after:
                    LapceUICommand::PublishDiagnostics(diagnostics),
                    Target::Widget(self.tab_id),
                );
            }
            WorkDoneProgress { progress } => {
                let _ = self.event_sink.submit_command(
                    LAPCE_UI_COMMAND,
                    LapceUICommand::WorkDoneProgress(progress),
                    Target::Widget(self.tab_id),
                );
            }
            LogMessage {
                message: LogMessageParams { message, typ },
            } => match typ {
                MessageType::ERROR => {
                    log::error!("{message}")
                }
                MessageType::WARNING => {
                    log::warn!("{message}")
                }
                MessageType::INFO => {
                    log::info!("{message}")
                }
                MessageType::LOG => {
                    log::debug!("{message}")
                }
                _ => {}
            },
            ShowMessage { title, message } => {
                let _ = self.event_sink.submit_command(
                    LAPCE_UI_COMMAND,
                    LapceUICommand::NewMessage {
                        kind: message.typ,
                        title,
                        message: message.message,
                    },
                    Target::Widget(self.tab_id),
                );
            }
            HomeDir { path } => {
                let _ = self.event_sink.submit_command(
                    LAPCE_UI_COMMAND,
                    LapceUICommand::HomeDir(path),
                    Target::Widget(self.tab_id),
                );
            }
            VoltInstalled { volt, icon } => {
                let _ = self.event_sink.submit_command(
                    LAPCE_UI_COMMAND,
                    LapceUICommand::VoltInstalled(volt, icon),
                    Target::Widget(self.tab_id),