Skip to content

Commit

Permalink
Merge pull request #10607 from weirdan/lsp-issue-type-in-description
Browse files Browse the repository at this point in the history
[LSP] Add issue type in description
  • Loading branch information
weirdan authored Jan 28, 2024
2 parents 294220c + 4b2cd0f commit 45f3218
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Psalm/Internal/LanguageServer/LanguageServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 45f3218

Please sign in to comment.