Skip to content

Commit c700a50

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

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

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

+1-8
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,7 @@ impl super::SyncRequestHandler for ExecuteCommand {
3434
.with_failure_code(ErrorCode::InvalidParams)?;
3535

3636
if command == SupportedCommand::Debug {
37-
let output = debug_information(session);
38-
notifier
39-
.notify::<types::notification::LogMessage>(types::LogMessageParams {
40-
message: output,
41-
typ: types::MessageType::INFO,
42-
})
43-
.with_failure_code(ErrorCode::InternalError)?;
44-
return Ok(None);
37+
return Ok(Some(serde_json::Value::String(debug_information(session))));
4538
}
4639

4740
// check if we can apply a workspace edit

0 commit comments

Comments
 (0)