diff options
| author | Lukas Wirth <lukas@zed.dev> | 2025-08-07 15:14:22 +0200 |
|---|---|---|
| committer | Lukas Wirth <lukas@zed.dev> | 2025-08-07 15:14:22 +0200 |
| commit | 1a73720b8051a533b402ac67e35f84d405ccb28d (patch) | |
| tree | 69b816d03cec07806f5a3d6fe1b208b49f37a086 /src/tools/rust-analyzer | |
| parent | efbe625e35df7c2a7fa59b94a783f6f160828167 (diff) | |
| download | rust-1a73720b8051a533b402ac67e35f84d405ccb28d.tar.gz rust-1a73720b8051a533b402ac67e35f84d405ccb28d.zip | |
Disable error log for position clamping, its too noisy due to ease of triggering
Diffstat (limited to 'src/tools/rust-analyzer')
| -rw-r--r-- | src/tools/rust-analyzer/crates/rust-analyzer/src/lsp/from_proto.rs | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/tools/rust-analyzer/crates/rust-analyzer/src/lsp/from_proto.rs b/src/tools/rust-analyzer/crates/rust-analyzer/src/lsp/from_proto.rs index 02757616d4f..333826a1790 100644 --- a/src/tools/rust-analyzer/crates/rust-analyzer/src/lsp/from_proto.rs +++ b/src/tools/rust-analyzer/crates/rust-analyzer/src/lsp/from_proto.rs @@ -40,12 +40,13 @@ pub(crate) fn offset( })?; let col = TextSize::from(line_col.col); let clamped_len = col.min(line_range.len()); - if clamped_len < col { - tracing::error!( - "Position {line_col:?} column exceeds line length {}, clamping it", - u32::from(line_range.len()), - ); - } + // 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()), + // ); + // } Ok(line_range.start() + clamped_len) } |
