mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-10 21:58:30 +00:00
Trim trailing whitespace in server debug message (#11895)
This commit is contained in:
parent
e7c4d28c5e
commit
f8f0053a6c
1 changed files with 2 additions and 3 deletions
|
@ -139,14 +139,13 @@ fn debug_information(session: &Session) -> String {
|
||||||
.map(|path| format!("{}", path.display()))
|
.map(|path| format!("{}", path.display()))
|
||||||
.unwrap_or_else(|_| "<unavailable>".to_string());
|
.unwrap_or_else(|_| "<unavailable>".to_string());
|
||||||
format!(
|
format!(
|
||||||
r#"executable = {executable}
|
"executable = {executable}
|
||||||
version = {version}
|
version = {version}
|
||||||
encoding = {encoding:?}
|
encoding = {encoding:?}
|
||||||
open_document_count = {doc_count}
|
open_document_count = {doc_count}
|
||||||
active_workspace_count = {workspace_count}
|
active_workspace_count = {workspace_count}
|
||||||
configuration_files = {config_files:?}
|
configuration_files = {config_files:?}
|
||||||
{client_capabilities}
|
{client_capabilities}",
|
||||||
"#,
|
|
||||||
version = crate::version(),
|
version = crate::version(),
|
||||||
encoding = session.encoding(),
|
encoding = session.encoding(),
|
||||||
client_capabilities = session.resolved_client_capabilities(),
|
client_capabilities = session.resolved_client_capabilities(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue