mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-24 17:28:40 +00:00
Filter out supporting diagnostics that contain no messages
This commit is contained in:
parent
2749001477
commit
3e4fe09d00
1 changed files with 1 additions and 1 deletions
|
@ -912,7 +912,7 @@ impl Project {
|
|||
});
|
||||
if let Some(infos) = &diagnostic.related_information {
|
||||
for info in infos {
|
||||
if info.location.uri == params.uri {
|
||||
if info.location.uri == params.uri && !info.message.is_empty() {
|
||||
let range = range_from_lsp(info.location.range);
|
||||
diagnostics.push(DiagnosticEntry {
|
||||
range,
|
||||
|
|
Loading…
Reference in a new issue