Skip to content

Commit ab63d88

Browse files
committed
Update server to return the debug info as string
1 parent b6b1947 commit ab63d88

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/ruff_server/src/server/api/requests/execute_command.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ impl super::SyncRequestHandler for ExecuteCommand {
3737
let output = debug_information(session);
3838
notifier
3939
.notify::<types::notification::LogMessage>(types::LogMessageParams {
40-
message: output,
40+
message: output.clone(),
4141
typ: types::MessageType::INFO,
4242
})
4343
.with_failure_code(ErrorCode::InternalError)?;
44-
return Ok(None);
44+
return Ok(Some(serde_json::Value::String(output)));
4545
}
4646

4747
// check if we can apply a workspace edit

0 commit comments

Comments
 (0)