feat(lua): expose hash field in text change

This commit is contained in:
əlemi 2024-08-14 18:07:26 +02:00
parent 2d20887509
commit 24f5bdf2a7
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -196,6 +196,7 @@ impl LuaUserData for CodempTextChange {
fields.add_field_method_get("content", |_, this| Ok(this.content.clone()));
fields.add_field_method_get("first", |_, this| Ok(this.start));
fields.add_field_method_get("last", |_, this| Ok(this.end));
fields.add_field_method_get("hash", |_, this| Ok(this.hash));
}
fn add_methods<'lua, M: LuaUserDataMethods<'lua, Self>>(methods: &mut M) {