mirror of
https://github.com/hexedtech/codemp.git
synced 2024-11-23 07:44:48 +01:00
Merge pull request #73 from hexedtech/fix/python/getter-for-nested-elements
Some checks failed
test / test-unit (push) Has been cancelled
test / test-beta (beta) (push) Has been cancelled
test / test-beta (nightly) (push) Has been cancelled
test / test-functional (push) Has been cancelled
test / test-build (java, macos-latest) (push) Has been cancelled
test / test-build (java, ubuntu-latest) (push) Has been cancelled
test / test-build (java, windows-latest) (push) Has been cancelled
test / test-build (js, macos-latest) (push) Has been cancelled
test / test-build (js, ubuntu-latest) (push) Has been cancelled
test / test-build (lua, macos-latest) (push) Has been cancelled
test / test-build (lua, ubuntu-latest) (push) Has been cancelled
test / test-build (lua, windows-latest) (push) Has been cancelled
test / test-build (py, macos-latest) (push) Has been cancelled
test / test-build (js, windows-latest) (push) Has been cancelled
test / test-build (py, ubuntu-latest) (push) Has been cancelled
test / test-build (py, windows-latest) (push) Has been cancelled
Some checks failed
test / test-unit (push) Has been cancelled
test / test-beta (beta) (push) Has been cancelled
test / test-beta (nightly) (push) Has been cancelled
test / test-functional (push) Has been cancelled
test / test-build (java, macos-latest) (push) Has been cancelled
test / test-build (java, ubuntu-latest) (push) Has been cancelled
test / test-build (java, windows-latest) (push) Has been cancelled
test / test-build (js, macos-latest) (push) Has been cancelled
test / test-build (js, ubuntu-latest) (push) Has been cancelled
test / test-build (lua, macos-latest) (push) Has been cancelled
test / test-build (lua, ubuntu-latest) (push) Has been cancelled
test / test-build (lua, windows-latest) (push) Has been cancelled
test / test-build (py, macos-latest) (push) Has been cancelled
test / test-build (js, windows-latest) (push) Has been cancelled
test / test-build (py, ubuntu-latest) (push) Has been cancelled
test / test-build (py, windows-latest) (push) Has been cancelled
adds getters for complex nested elements.
This commit is contained in:
commit
f724215d5e
2 changed files with 4 additions and 4 deletions
4
dist/py/src/codemp/codemp.pyi
vendored
4
dist/py/src/codemp/codemp.pyi
vendored
|
@ -91,8 +91,8 @@ class TextChange:
|
||||||
Editor agnostic representation of a text change, it translate between internal
|
Editor agnostic representation of a text change, it translate between internal
|
||||||
codemp text operations and editor operations
|
codemp text operations and editor operations
|
||||||
"""
|
"""
|
||||||
start: int
|
start_idx: int
|
||||||
end: int
|
end_idx: int
|
||||||
content: str
|
content: str
|
||||||
|
|
||||||
def __new__(cls, *, start: int, end: int, content: str, **kwargs): ...
|
def __new__(cls, *, start: int, end: int, content: str, **kwargs): ...
|
||||||
|
|
|
@ -7,7 +7,7 @@ use pyo3::prelude::*;
|
||||||
/// An event that occurred about a user's cursor.
|
/// An event that occurred about a user's cursor.
|
||||||
#[derive(Clone, Debug, Default)]
|
#[derive(Clone, Debug, Default)]
|
||||||
#[cfg_attr(feature = "js", napi_derive::napi(object))]
|
#[cfg_attr(feature = "js", napi_derive::napi(object))]
|
||||||
#[cfg_attr(feature = "py", pyclass)]
|
#[cfg_attr(feature = "py", pyclass(get_all))]
|
||||||
#[cfg_attr(feature = "serialize", derive(serde::Serialize, serde::Deserialize))]
|
#[cfg_attr(feature = "serialize", derive(serde::Serialize, serde::Deserialize))]
|
||||||
// #[cfg_attr(feature = "py", pyo3(crate = "reexported::pyo3"))]
|
// #[cfg_attr(feature = "py", pyo3(crate = "reexported::pyo3"))]
|
||||||
pub struct Cursor {
|
pub struct Cursor {
|
||||||
|
@ -20,7 +20,7 @@ pub struct Cursor {
|
||||||
/// A cursor selection span.
|
/// A cursor selection span.
|
||||||
#[derive(Clone, Debug, Default)]
|
#[derive(Clone, Debug, Default)]
|
||||||
#[cfg_attr(feature = "js", napi_derive::napi(object))]
|
#[cfg_attr(feature = "js", napi_derive::napi(object))]
|
||||||
#[cfg_attr(feature = "py", pyclass)]
|
#[cfg_attr(feature = "py", pyclass(get_all))]
|
||||||
#[cfg_attr(feature = "serialize", derive(serde::Serialize, serde::Deserialize))]
|
#[cfg_attr(feature = "serialize", derive(serde::Serialize, serde::Deserialize))]
|
||||||
// #[cfg_attr(feature = "py", pyo3(crate = "reexported::pyo3"))]
|
// #[cfg_attr(feature = "py", pyo3(crate = "reexported::pyo3"))]
|
||||||
pub struct Selection {
|
pub struct Selection {
|
||||||
|
|
Loading…
Reference in a new issue