We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4126a79 commit 67f41b9Copy full SHA for 67f41b9
helix-term/src/handlers/diagnostics.rs
@@ -282,7 +282,7 @@ fn handle_pull_diagnostics_response(
282
for (url, report) in related_documents.into_iter().flatten() {
283
let result_id = match report {
284
lsp::DocumentDiagnosticReportKind::Full(report) => {
285
- let Ok(uri) = Uri::try_from(url) else {
+ let Ok(uri) = Uri::try_from(&url) else {
286
continue;
287
};
288
@@ -292,7 +292,7 @@ fn handle_pull_diagnostics_response(
292
lsp::DocumentDiagnosticReportKind::Unchanged(report) => Some(report.result_id),
293
294
295
- if let Some(doc) = editor.document_mut(document_id) {
+ if let Some(doc) = editor.document_by_path_mut(url.path()) {
296
doc.previous_diagnostic_id = result_id;
297
}
298
0 commit comments