Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dannymcgee committed May 23, 2024
1 parent fef8650 commit 8fc6224
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/server/src/ipc/notify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use lsp_types::{
DidCloseTextDocumentParams, DidOpenTextDocumentParams, NumberOrString,
};

use crate::ipc::GetUri;
use super::GetUri;

pub fn register_events(app: &mut App) {
app.add_event::<DocumentOpen>()
Expand Down Expand Up @@ -47,19 +47,19 @@ pub(super) fn dispatch(world: &mut World, n: Notification) -> anyhow::Result<()>

match &n.method[..] {
DidOpenTextDocument::METHOD => {
let params: DidOpenTextDocumentParams = n.extract(DidOpenTextDocument::METHOD)?;
let params = n.extract(DidOpenTextDocument::METHOD)?;
world.send_event(DocumentOpen(params));
}
DidChangeTextDocument::METHOD => {
let params: DidChangeTextDocumentParams = n.extract(DidChangeTextDocument::METHOD)?;
let params = n.extract(DidChangeTextDocument::METHOD)?;
world.send_event(DocumentChange(params));
}
DidCloseTextDocument::METHOD => {
let params = n.extract(DidCloseTextDocument::METHOD)?;
world.send_event(DocumentClose(params));
}
DidChangeConfiguration::METHOD => {
let params: DidChangeConfigurationParams = n.extract(DidChangeConfiguration::METHOD)?;
let params = n.extract(DidChangeConfiguration::METHOD)?;
world.send_event(ConfigChange(params));
}
Cancel::METHOD => {
Expand Down

0 comments on commit 8fc6224

Please sign in to comment.