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.
2 parents 7a8db55 + 5022fb6 commit caef0f4Copy full SHA for caef0f4
crates/rust-analyzer/src/lsp/from_proto.rs
@@ -40,12 +40,13 @@ pub(crate) fn offset(
40
})?;
41
let col = TextSize::from(line_col.col);
42
let clamped_len = col.min(line_range.len());
43
- if clamped_len < col {
44
- tracing::error!(
45
- "Position {line_col:?} column exceeds line length {}, clamping it",
46
- u32::from(line_range.len()),
47
- );
48
- }
+ // FIXME: The cause for this is likely our request retrying. Commented out as this log is just too chatty and very easy to trigger.
+ // if clamped_len < col {
+ // tracing::error!(
+ // "Position {line_col:?} column exceeds line length {}, clamping it",
+ // u32::from(line_range.len()),
+ // );
49
+ // }
50
Ok(line_range.start() + clamped_len)
51
}
52
0 commit comments