Skip to content

Commit

Permalink
chore: add compile command log, remove pretty formatting from other logs
Browse files Browse the repository at this point in the history
  • Loading branch information
WillLillis committed Nov 28, 2024
1 parent 932b274 commit cc6dd74
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion asm-lsp/bin/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ fn main_loop(connection: &Connection, config: &RootConfig, store: &ServerStore)
Message::Notification(notif) => {
handle_notification(notif, connection, &mut doc_store, config, store)?;
}
Message::Response(resp) => warn!("Unexpected client response: {resp:#?}"),
Message::Response(resp) => warn!("Unexpected client response: {resp:?}"),
}
}
Ok(())
Expand Down
8 changes: 4 additions & 4 deletions asm-lsp/handle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ pub fn handle_request(
&store.compile_commands,
);
info!(
"Selected compile command(s) for request: {:#?}",
"Selected compile command(s) for request: {:?}",
compile_cmds
);
handle_diagnostics(
Expand All @@ -171,7 +171,7 @@ pub fn handle_request(
);
}
}
method => warn!("Invalid request format: {method:#?}"),
method => warn!("Invalid request format: {method:?}"),
}

Ok(())
Expand Down Expand Up @@ -238,7 +238,7 @@ pub fn handle_notification(
&store.compile_commands,
);
info!(
"Selected compile command(s) for request: {:#?}",
"Selected compile command(s) for request: {:?}",
compile_cmds
);
handle_diagnostics(
Expand All @@ -253,7 +253,7 @@ pub fn handle_notification(
);
}
}
method => warn!("Invalid notification format: {method:#?}"),
method => warn!("Invalid notification format: {method:?}"),
}
Ok(())
}
Expand Down
1 change: 1 addition & 0 deletions asm-lsp/lsp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,7 @@ pub fn apply_compile_cmd(
uri: &Uri,
compile_cmd: &CompileCommand,
) {
info!("Attempting to apply compile command: {compile_cmd:?}");
// TODO: Consolidate this logic, a little tricky because we need to capture
// compile_cmd.arguments by reference, but we get an owned Vec out of args_from_cmd()...
if let Some(ref args) = compile_cmd.arguments {
Expand Down

0 comments on commit cc6dd74

Please sign in to comment.