From 3aa3ee8b895d10e9c791e48f19e905ec6311e839 Mon Sep 17 00:00:00 2001 From: Dhruv Manilawala Date: Sat, 12 Apr 2025 10:19:28 +0530 Subject: [PATCH] [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. --- crates/red_knot_server/src/server/api/requests/diagnostic.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/red_knot_server/src/server/api/requests/diagnostic.rs b/crates/red_knot_server/src/server/api/requests/diagnostic.rs index 7dc95e0af2..8b3d03d34b 100644 --- a/crates/red_knot_server/src/server/api/requests/diagnostic.rs +++ b/crates/red_knot_server/src/server/api/requests/diagnostic.rs @@ -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, }