fix: ack is not async. misnamed textchange fields.

This commit is contained in:
cschen 2024-10-26 19:13:37 +02:00
parent 3956d4a27d
commit fb8076dbf5
2 changed files with 6 additions and 7 deletions

View file

@ -72,9 +72,8 @@ impl BufferController {
} }
#[pyo3(name = "ack")] #[pyo3(name = "ack")]
fn pyack(&self, py: Python, v: Vec<u64>) -> PyResult<()> { fn pyack(&self, py: Python, v: Vec<i64>) -> () {
let this = self.clone(); self.ack(v)
a_sync_allow_threads!(py, this.ack(v))
} }
#[pyo3(name = "send")] #[pyo3(name = "send")]

View file

@ -279,14 +279,14 @@ impl TextChange {
) -> PyResult<Self> { ) -> PyResult<Self> {
if let Some(kwds) = kwds { if let Some(kwds) = kwds {
Ok(Self { Ok(Self {
start_idx, start_idx: start,
end_idx, end_idx: end,
content, content,
}) })
} else { } else {
Ok(Self { Ok(Self {
start_idx, start_idx: start,
end_idx, end_idx: end,
content, content,
}) })
} }