Skip to content

Commit

Permalink
Add a show_err_msg invocation to the warning about being unable to ta…
Browse files Browse the repository at this point in the history
…ke a snapshot
  • Loading branch information
snowsignal committed Jun 11, 2024
1 parent 09c9c15 commit 94efad9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ impl super::SyncRequestHandler for ExecuteCommand {
let mut edit_tracker = WorkspaceEditTracker::new(session.resolved_client_capabilities());
for Argument { uri, version } in arguments {
let Some(snapshot) = session.take_snapshot(uri.clone()) else {
tracing::warn!("Document at {uri} could not be opened");
tracing::error!("Document at {uri} could not be opened");
show_err_msg!("Ruff does not recognize this file");
return Ok(None);
};
match command {
Expand Down

0 comments on commit 94efad9

Please sign in to comment.