diff options
| author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2023-09-24 08:18:51 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-24 08:18:51 +0100 |
| commit | d955d66a3f8c82a2286739cbb2d2ec657119163f (patch) | |
| tree | 37154af2f005dae334a79559d5a6848bc9dcc112 /cli/lsp | |
| parent | b5ba5f157ed880568d5154e8443073dcf80098f8 (diff) | |
fix(lsp): show related information for tsc diagnostics (#20654)
Diffstat (limited to 'cli/lsp')
| -rw-r--r-- | cli/lsp/diagnostics.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/lsp/diagnostics.rs b/cli/lsp/diagnostics.rs index a04f490f7..fb998f880 100644 --- a/cli/lsp/diagnostics.rs +++ b/cli/lsp/diagnostics.rs @@ -646,10 +646,10 @@ fn to_lsp_related_information( related .iter() .filter_map(|ri| { - if let (Some(source), Some(start), Some(end)) = - (&ri.source, &ri.start, &ri.end) + if let (Some(file_name), Some(start), Some(end)) = + (&ri.file_name, &ri.start, &ri.end) { - let uri = lsp::Url::parse(source).unwrap(); + let uri = lsp::Url::parse(file_name).unwrap(); Some(lsp::DiagnosticRelatedInformation { location: lsp::Location { uri, |
