JSON encode/decode ProtoBus messages in the webview when not in Vscode #5362
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.
1. Modified gRPC Client Generation (
scripts/generate-protobus-setup.mjs
)This is part of the effort to make Cline work as a standalone application outside of VSCode, ensuring proper message serialization across different runtime environments.
2. Modified gRPC Client Generation (
scripts/generate-protobus-setup.mjs
)3. Updated Standalone Utils (
src/standalone/utils.ts
){ longs: Number }
when loading the protobuf descriptorImportant
Add JSON encoding/decoding for gRPC messages in standalone mode, while using protobuf objects in VSCode, with updates to
ProtoBusClient
andgenerate-protobus-setup.mjs
.ProtoBusClient
,makeUnaryRequest
andmakeStreamingRequest
now useencode
anddecode
methods for JSON handling in standalone mode.encode
anddecode
methods added toProtoBusClient
to conditionally JSON encode/decode messages based onwindow.__is_standalone__
.generate-protobus-setup.mjs
to usemakeUnaryRequest
andmakeStreamingRequest
with JSON encoding/decoding.options
toprotoLoader.loadFileDescriptorSetFromBuffer
inutils.ts
to encode int64 fields as numbers.This description was created by
for 4954f15. You can customize this summary. It will automatically update as commits are pushed.