From 4b2cd0f23f350db439fd6c2f11ccaa189a3aad9d Mon Sep 17 00:00:00 2001 From: Bruce Weirdan Date: Sun, 28 Jan 2024 16:36:03 +0100 Subject: [PATCH] [LSP] Add issue type in description Fixes psalm/psalm-vscode-plugin#287 --- src/Psalm/Internal/LanguageServer/LanguageServer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Psalm/Internal/LanguageServer/LanguageServer.php b/src/Psalm/Internal/LanguageServer/LanguageServer.php index 7062885e790..54d15a4aa7c 100644 --- a/src/Psalm/Internal/LanguageServer/LanguageServer.php +++ b/src/Psalm/Internal/LanguageServer/LanguageServer.php @@ -721,7 +721,7 @@ public function emitVersionedIssues(array $files, ?int $version = null): void $diagnostics = array_map( function (IssueData $issue_data): Diagnostic { //$check_name = $issue->check_name; - $description = $issue_data->message; + $description = '[' . $issue_data->type . '] ' . $issue_data->message; $severity = $issue_data->severity; $start_line = max($issue_data->line_from, 1);