diff options
| author | Lukas Wirth <me@lukaswirth.dev> | 2025-08-07 13:25:13 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-07 13:25:13 +0000 |
| commit | bc5df9b057a1ab9f8d9c387cde9a7dbab0e1462b (patch) | |
| tree | fa04a2d24a4226e08c75196033b434adae03dc2a | |
| parent | de3a71c1456a627346743c29b460df03f283e4c7 (diff) | |
| parent | 1a73720b8051a533b402ac67e35f84d405ccb28d (diff) | |
| download | rust-bc5df9b057a1ab9f8d9c387cde9a7dbab0e1462b.tar.gz rust-bc5df9b057a1ab9f8d9c387cde9a7dbab0e1462b.zip | |
Merge pull request #20400 from rust-lang/veykril/push-ksxzmxqymsto
Disable error log for position clamping, its too noisy due to ease of triggering
| -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) } |
