Use binary message RPC protocol for plugin API #41
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What it does
Refactors the plugin RPC protocol to make use of the new message-rpc introduced with eclipse-theia#11011/eclipse-theia#11228.
Refactor plugin-ext RpcProtocol API to reuse the new message-rpc protocol
QueuingChannelMultiplexer
that queues messages and sends them accumulated on the next process.tick (replaces the old Multiplexerimplementation)
Channel
instead ofMessageConnection
for creating new instances of RPCProtocolRpcMessageEncoder
/RpcMessageDecoder
to enable overwritting of already registered value encoders/decoders.RpcProtocol
to enable switching from a bidirectional RPC protocol to a client-only or server-only variant.Implement special message encoders and decoders for the plugin communication. (Replacement for the old
ObjectTransferrer
JSON replacers/revivers)Adapt
HostedPluginServer
andHostedPluginClient
API to send/receive messages in binary format instead of strings. This enables direct writethrough of the binary messages received from the hosted plugin process.Adapt
hosted-plugin-process
andplugin-host
to directly send binary messages viaIpcChannel
/BinaryMessagePipe
Remove incorrect (and unused) notification proxy identifiers and instantiation
Part of eclipse-theia#10684
Fixes eclipse-theia#9514
Co-authored-by: Lucas Koehler [email protected]
Contributed on behalf of STMicroelectronics
How to test
Review checklist
Reminder for reviewers