Show diagnostic codes (#29296)
Closes #28135 Closes #4388 Closes #28136 Release Notes: - diagnostics: Show the diagnostic code if available --------- Co-authored-by: Neo Nie <nihgwu@live.com> Co-authored-by: Zed AI <ai+claude-3.7@zed.dev>
This commit is contained in:
parent
8836c6fb42
commit
9d10489607
13 changed files with 517 additions and 327 deletions
|
@ -8613,6 +8613,10 @@ impl LspStore {
|
|||
diagnostic: Diagnostic {
|
||||
source: diagnostic.source.clone(),
|
||||
code: diagnostic.code.clone(),
|
||||
code_description: diagnostic
|
||||
.code_description
|
||||
.as_ref()
|
||||
.map(|d| d.href.clone()),
|
||||
severity: diagnostic.severity.unwrap_or(DiagnosticSeverity::ERROR),
|
||||
message: diagnostic.message.trim().to_string(),
|
||||
group_id,
|
||||
|
@ -8631,6 +8635,10 @@ impl LspStore {
|
|||
diagnostic: Diagnostic {
|
||||
source: diagnostic.source.clone(),
|
||||
code: diagnostic.code.clone(),
|
||||
code_description: diagnostic
|
||||
.code_description
|
||||
.as_ref()
|
||||
.map(|c| c.href.clone()),
|
||||
severity: DiagnosticSeverity::INFORMATION,
|
||||
message: info.message.trim().to_string(),
|
||||
group_id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue