feat(lsp): improve shutdown lifecycle and response handling
- Add explicit shutdown and exit requests to LSP client - Rename initialized message to initialized notification - Handle initialize → send initialized notification - Handle shutdown → send exit notification fix(lsp): delay client teardown to allow graceful shutdown - Close LSP client and response handlers after timeout (GLib) feat(vte): major terminal widget improvements - Switch to spawn_async with full environment inheritance - Improve PROMPT_COMMAND handling for cwd tracking (OSC7) - Enable scrollback, disable audible bell, enable scroll-on-output - Add clipboard shortcuts (Ctrl+Shift+C/V), middle-click paste - Track current directory changes and update UI label - Add proper signal wiring and cleanup on destroy feat(ui): improve Plugins dialog behavior - Make dialog non-modal and centered on parent window - Auto-hide on focus loss and Ctrl+Shift+P shortcut - Ensure proper destroy-with-parent behavior refactor: add type hints and minor cleanup - Add explicit typing for VteWidget fields - Improve signal naming consistency - Minor formatting and cleanup in folding and LSP modules
This commit is contained in:
@@ -15,6 +15,8 @@ from ..dto.code.lsp.lsp_messages import definition_request
|
||||
from ..dto.code.lsp.lsp_messages import implementation_request
|
||||
from ..dto.code.lsp.lsp_messages import references_request
|
||||
from ..dto.code.lsp.lsp_messages import symbols_request
|
||||
from ..dto.code.lsp.lsp_messages import shutdown_request
|
||||
from ..dto.code.lsp.lsp_messages import exit_request
|
||||
|
||||
|
||||
|
||||
@@ -36,9 +38,15 @@ class LSPClientEvents:
|
||||
self._init_params["initializationOptions"] = self._init_opts
|
||||
self.send_request("initialize", self._init_params)
|
||||
|
||||
def send_initialized_message(self):
|
||||
def send_initialized_notification(self):
|
||||
self.send_notification("initialized")
|
||||
|
||||
def send_shutdown_request(self):
|
||||
self.send_request("shutdown")
|
||||
|
||||
def send_exit_notification(self):
|
||||
self.send_notification("exit")
|
||||
|
||||
def _lsp_did_open(self, data: dict):
|
||||
method = "textDocument/didOpen"
|
||||
params = didopen_notification["params"]
|
||||
|
||||
Reference in New Issue
Block a user