mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-01 06:11:43 +00:00
Use $/logTrace
for server trace logs in Zed and VS Code (#12564)
## Summary This pull request adds support for logging via `$/logTrace` RPC messages. It also enables that code path for when a client is Zed editor or VS Code (as there's no way for us to generically tell whether a client prefers `$/logTrace` over stderr. Related to: #12523 ## Test Plan I've built Ruff from this branch and tested it manually with Zed. --------- Co-authored-by: Dhruv Manilawala <dhruvmanila@gmail.com>
This commit is contained in:
parent
381bd1ff4a
commit
fb9f566f56
2 changed files with 55 additions and 6 deletions
|
@ -90,6 +90,7 @@ impl Server {
|
|||
.log_level
|
||||
.unwrap_or(crate::trace::LogLevel::Info),
|
||||
global_settings.tracing.log_file.as_deref(),
|
||||
init_params.client_info.as_ref(),
|
||||
);
|
||||
|
||||
let mut workspace_for_url = |url: lsp_types::Url| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue