Skip to content

Add server configuration dialog#234

Merged
alcarney merged 3 commits into
swyddfa:developfrom
alcarney:push-nzrzprmokkms
Mar 23, 2026
Merged

Add server configuration dialog#234
alcarney merged 3 commits into
swyddfa:developfrom
alcarney:push-nzrzprmokkms

Conversation

@alcarney
Copy link
Copy Markdown
Member

@alcarney alcarney commented Mar 23, 2026

Add a dialog to allow the server command to be changed at runtime.
image

And log more information to the Server panel.
image

This adds a `ClientState` enum used to track the state of the lsp client.

The previous `action_run_server` implementation couldn't detect that
the server was already running as the `self.server` worker only
tracked the state of the `start_server()` coroutine rather than the
server itself!

By tracking the state of the client directly this implementation now
ensures that the previous server is shutdown before starting the next
server.

This commit also replaces the `stderr_handler` with a regular Python
logger allowing for errors and debug info to also be reported. The
`StderrReceived` has also been removed in favour of the
`OutputWindowHandler` which formats log messages according to their
severity and sends it to the associated `OutputWindow`.
@alcarney alcarney force-pushed the push-nzrzprmokkms branch from 3fba1fa to 3b52751 Compare March 23, 2026 19:31
@alcarney alcarney merged commit a1d7e52 into swyddfa:develop Mar 23, 2026
11 of 12 checks passed
@alcarney alcarney deleted the push-nzrzprmokkms branch March 23, 2026 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant