File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
src/tools/rust-analyzer/crates/rust-analyzer/src/lsp Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -40,12 +40,13 @@ pub(crate) fn offset(
40
40
} ) ?;
41
41
let col = TextSize :: from ( line_col. col ) ;
42
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
- }
43
+ // FIXME: The cause for this is likely our request retrying. Commented out as this log is just too chatty and very easy to trigger.
44
+ // if clamped_len < col {
45
+ // tracing::error!(
46
+ // "Position {line_col:?} column exceeds line length {}, clamping it",
47
+ // u32::from(line_range.len()),
48
+ // );
49
+ // }
49
50
Ok ( line_range. start ( ) + clamped_len)
50
51
}
51
52
You can’t perform that action at this time.
0 commit comments