You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current implementation handles server messages in various different
places. The sidebar does a lot of it. There are also many levels of
`send_message`, `send_request`, `send_chat_message`-type methods that
all do kind-of the same thing and (IMO) redundant and confusing.
- add `.deps` to gitignore.
- remove `deps` from git history
- remove the `EcaServerStatus` command and the corresponding server
status functionality. I don't think it adds anything and makes the
server more complex. We could always add it back in.
- remove `rpc.lua`, all of that functionality lives in `server.lua` now.
- remove `eca.status_bar`
- schedule some functions when we are in a fast event context, used in
logging and in UI functions that change the state of a buffer, for
example
- server has `on_start`, `on_initialized`, `on_stop` callbacks
- `server:stop()` sends a `shutdown` and `exit` request to ECA, or sends
SIGTERM
- `server:start()` uses `vim.system` instead of `jobstart` and
`chan_send`
- all message handling is done in `server.on_stdout()` which can
delegate to other handlers
- pathfinder can be injected into the server constructor
- `message_handler.lua` parses incoming message from the server
- `handle_content` still calls out to sidebar but that will be
refactored out later
- add tests
0 commit comments