Skip to content

Commit 3aa3ee8

Browse files
authored
[red-knot] Use concise message for the server (#17367)
## Summary This is mainly a follow-up from #17357 to use the `concise_message` method for the red-knot server which I noticed recently while testing the overload implementation.
1 parent f0c3abd commit 3aa3ee8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/red_knot_server/src/server/api/requests/diagnostic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ fn to_lsp_diagnostic(
9999
code: Some(NumberOrString::String(diagnostic.id().to_string())),
100100
code_description: None,
101101
source: Some("red-knot".into()),
102-
message: diagnostic.primary_message().to_string(),
102+
message: diagnostic.concise_message().to_string(),
103103
related_information: None,
104104
data: None,
105105
}

0 commit comments

Comments
 (0)