Skip to content

Split the wire protocol into its own package - #3

Merged
thomasjm merged 1 commit into
masterfrom
protocol-package
Nov 12, 2026
Merged

thomasjm merged 1 commit into
masterfrom
protocol-package

Conversation

@thomasjm

Copy link
Copy Markdown
Contributor

Render.Protocol moves into its own package so the codedown runner can depend on the protocol
types instead of hand-copying them. The runner currently duplicates half of them, and the copies
have drifted: phase is a Maybe Text there, encoding and stream are Text rather than
enums, and the outgoing commands are built as raw aeson objects.

The package depends only on base, aeson, containers and text, so a client doesn't pull in lsp,
the C sources, or this repo's snapshot.

Also adds Notification, notificationTaskId and parseNotification, so a client can read a
notification from the method it arrived on and route it without parsing the params twice.

@thomasjm
thomasjm force-pushed the protocol-package branch 3 times, most recently from ba69bb2 to e23a26a Compare November 12, 2026 09:29
@thomasjm
thomasjm merged commit b985695 into master Nov 12, 2026
0 of 3 checks passed
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