mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
show message in client's UI if workspace fails to load
This commit is contained in:
parent
e7241274ef
commit
73b892aaa3
3 changed files with 32 additions and 8 deletions
|
@ -15,6 +15,24 @@ pub enum RawMessage {
|
|||
Response(RawResponse),
|
||||
}
|
||||
|
||||
impl From<RawRequest> for RawMessage {
|
||||
fn from(raw: RawRequest) -> RawMessage {
|
||||
RawMessage::Request(raw)
|
||||
}
|
||||
}
|
||||
|
||||
impl From<RawNotification> for RawMessage {
|
||||
fn from(raw: RawNotification) -> RawMessage {
|
||||
RawMessage::Notification(raw)
|
||||
}
|
||||
}
|
||||
|
||||
impl From<RawResponse> for RawMessage {
|
||||
fn from(raw: RawResponse) -> RawMessage {
|
||||
RawMessage::Response(raw)
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize, Clone)]
|
||||
pub struct RawRequest {
|
||||
pub id: u64,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue