[red-knot] Use concise message for the server (#17367)

## Summary

This is mainly a follow-up from
https://github.com/astral-sh/ruff/pull/17357 to use the
`concise_message` method for the red-knot server which I noticed
recently while testing the overload implementation.
This commit is contained in:
Dhruv Manilawala 2025-04-12 10:19:28 +05:30 committed by GitHub
parent f0c3abd198
commit 3aa3ee8b89
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ fn to_lsp_diagnostic(
code: Some(NumberOrString::String(diagnostic.id().to_string())),
code_description: None,
source: Some("red-knot".into()),
message: diagnostic.primary_message().to_string(),
message: diagnostic.concise_message().to_string(),
related_information: None,
data: None,
}