ruff/crates/ruff_server/src
Dhruv Manilawala 798fa47c2e Server: Remove log notification for printDebugInformation command (#16617)
## Summary

For context, the initial implementation started out by sending a log
notification to the client to include this information in the client
channel. This is a bit ineffective because it doesn't allow the client
to display this information in a more obvious way. In addition to that,
it isn't obvious from a users perspective as to where the information is
being printed unless they actually open the output channel.

The change was to actually return this formatted string that contains
the information and let the client handle how it should display this
information. For example, in the Ruff VS Code extension we open a split
window and show this information which is similar to what rust-analyzer
does.

The notification request was kept as a precaution in case there are
users who are actually utilizing this way. If they exists, it should a
minority as it requires the user to actually dive into the code to
understand how to hook into this notification. With 0.10, we're removing
the old way as it only clobbers the output channel with a long message.

fixes: #16225

## Test Plan

Tested it out locally that the information is not being logged to the
output channel of VS Code.
2025-03-13 15:37:37 +01:00
..
edit Insert the cells from the start position (#15398) 2025-01-10 13:11:56 +00:00
server Server: Remove log notification for printDebugInformation command (#16617) 2025-03-13 15:37:37 +01:00
session Escape template filenames in glob patterns (#16407) 2025-03-03 09:29:58 -05:00
edit.rs Add support for extensionless Python files for server (#13326) 2024-09-12 00:35:26 +05:30
fix.rs Directly include Settings struct for the server (#16042) 2025-02-10 10:20:01 +05:30
format.rs Add per-file-target-version option (#16257) 2025-02-24 08:47:13 -05:00
lib.rs Refactor workspace logic into workspace.rs (#16295) 2025-02-21 08:37:29 +00:00
lint.rs Add new rule RUF059: Unused unpacked assignment (#16449) 2025-03-03 10:51:36 +01:00
logging.rs Avoid unnecessary info at non-trace server log level (#16389) 2025-02-26 13:31:17 +05:30
message.rs Fix LSP show message macro to allow format args (#15487) 2025-01-15 08:11:49 +00:00
resolve.rs Root exclusions in the server to project root (#16043) 2025-02-10 04:57:14 +00:00
server.rs Refactor workspace logic into workspace.rs (#16295) 2025-02-21 08:37:29 +00:00
session.rs Refactor workspace logic into workspace.rs (#16295) 2025-02-21 08:37:29 +00:00
workspace.rs Refactor workspace logic into workspace.rs (#16295) 2025-02-21 08:37:29 +00:00