mirror of
https://github.com/hexedtech/codemp.git
synced 2025-03-26 05:01:32 +01:00
properly export the event object to the python glue
Some checks failed
test / test-unit (push) Has been cancelled
test / test-doc (push) Has been cancelled
test / test-build (js, 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-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 (js, ubuntu-latest) (push) Has been cancelled
test / test-build (js, windows-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 (py, ubuntu-latest) (push) Has been cancelled
test / test-build (py, windows-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
Some checks failed
test / test-unit (push) Has been cancelled
test / test-doc (push) Has been cancelled
test / test-build (js, 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-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 (js, ubuntu-latest) (push) Has been cancelled
test / test-build (js, windows-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 (py, ubuntu-latest) (push) Has been cancelled
test / test-build (py, windows-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
This commit is contained in:
parent
3c996bbdd2
commit
02d7e71180
2 changed files with 28 additions and 3 deletions
28
dist/py/src/codemp/codemp.pyi
vendored
28
dist/py/src/codemp/codemp.pyi
vendored
|
@ -1,4 +1,4 @@
|
||||||
from typing import Tuple, Optional, Callable
|
from typing import Optional, Callable
|
||||||
|
|
||||||
def version() -> str: ...
|
def version() -> str: ...
|
||||||
|
|
||||||
|
@ -61,8 +61,32 @@ class Client:
|
||||||
def current_user(self) -> User: ...
|
def current_user(self) -> User: ...
|
||||||
def refresh(self) -> Promise[None]: ...
|
def refresh(self) -> Promise[None]: ...
|
||||||
|
|
||||||
|
class FileTreeUpdated:
|
||||||
|
"""
|
||||||
|
Fired when the file tree changes.
|
||||||
|
Contains the modified buffer path (deleted, created or renamed)
|
||||||
|
"""
|
||||||
|
path: str
|
||||||
|
|
||||||
|
class UserJoin:
|
||||||
|
"""
|
||||||
|
Fired when a user joins the workspace
|
||||||
|
"""
|
||||||
|
name: str
|
||||||
|
|
||||||
|
class UserLeave:
|
||||||
|
"""
|
||||||
|
Fired when a user leaves the workspace
|
||||||
|
"""
|
||||||
|
name: str
|
||||||
|
|
||||||
class Event:
|
class Event:
|
||||||
pass
|
"""
|
||||||
|
Workspace events to notify users of changes happening in the workspace.
|
||||||
|
"""
|
||||||
|
FileTreeUpdated: FileTreeUpdated
|
||||||
|
UserJoin: UserJoin
|
||||||
|
UserLeave: UserLeave
|
||||||
|
|
||||||
class Workspace:
|
class Workspace:
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -3,7 +3,7 @@ pub mod controllers;
|
||||||
pub mod workspace;
|
pub mod workspace;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
api::{BufferUpdate, Config, Cursor, Selection, TextChange, User},
|
api::{BufferUpdate, Config, Cursor, Event, Selection, TextChange, User},
|
||||||
buffer::Controller as BufferController,
|
buffer::Controller as BufferController,
|
||||||
cursor::Controller as CursorController,
|
cursor::Controller as CursorController,
|
||||||
Client, Workspace,
|
Client, Workspace,
|
||||||
|
@ -391,6 +391,7 @@ fn codemp(m: &Bound<'_, PyModule>) -> PyResult<()> {
|
||||||
m.add_class::<User>()?;
|
m.add_class::<User>()?;
|
||||||
|
|
||||||
m.add_class::<Workspace>()?;
|
m.add_class::<Workspace>()?;
|
||||||
|
m.add_class::<Event>()?;
|
||||||
m.add_class::<Client>()?;
|
m.add_class::<Client>()?;
|
||||||
m.add_class::<Config>()?;
|
m.add_class::<Config>()?;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue