editor: Fix incorrect offset passed to acp completion provider (#38321)

Might fix | ZED-15G
Release Notes:

- N/A *or* Added/Fixed/Improved ...
This commit is contained in:
Lukas Wirth
2025-09-17 12:02:39 +00:00
committed by GitHub
parent 574b943081
commit a5c29176a3
3 changed files with 25 additions and 19 deletions
+1 -1
View File
@@ -3078,7 +3078,7 @@ impl ToOffset for usize {
fn to_offset(&self, snapshot: &BufferSnapshot) -> usize {
assert!(
*self <= snapshot.len(),
"offset {} is out of range, max allowed is {}",
"offset {} is out of range, snapshot length is {}",
self,
snapshot.len()
);