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(
4040 } ) ?;
4141 let col = TextSize :: from ( line_col. col ) ;
4242 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+ // }
4950 Ok ( line_range. start ( ) + clamped_len)
5051}
5152
You can’t perform that action at this time.
0 commit comments