Skip to content

Conversation

sjf
Copy link
Contributor

@sjf sjf commented Aug 6, 2025

Move the code for handling the webview protobus messages out of the Controller
and into the VscodeWebviewProvider because it is only used on vscode. (The standalone app uses the src/standalone/protobus-service.ts to handle ProtoBus requests.)

The aim is to remove dependencies on the vscode SDK from the src/core and make it clearer
from the layout of the codebase what is being used on each platform.

Remove vscode stubs for postMessage from src/standalone.

Remove unused code from the TestServer.

Update comments that refer to postMessageToWebview.

Move the code for handling the webview protobus messages out of the controller
and into the VscodeWebviewProvider because it is only applicable to vscode.

The standalone app uses the src/standalone/protobus-service.ts to handle ProtoBus requests.

Remove vscode stubs for postMessage.

Remove unused code from the `TestServer`.

Update comments that refer to `postMessageToWebview`.
Copy link

changeset-bot bot commented Aug 6, 2025

⚠️ No Changeset found

Latest commit: af68bd3

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@sjf sjf changed the title Refactoring: move postMessageToWebview into vscode specific code. Refactoring: move postMessageToWebview into vscode specific code Aug 6, 2025
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
Copy link
Contributor

github-actions bot commented Aug 6, 2025

Coverage Report

Extension Coverage

Base branch: 47%

PR branch: 48%

✅ Coverage increased or remained the same

Webview Coverage

Base branch: 17%

PR branch: 17%

✅ Coverage increased or remained the same

Overall Assessment

Test coverage has been maintained or improved

Last updated: 2025-08-06T15:09:23.707663

Copy link
Contributor

@tseglevskiy tseglevskiy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sjf sjf merged commit 1b5590e into main Aug 7, 2025
13 checks passed
@sjf sjf deleted the sjf-a6-pb branch August 14, 2025 12:54
dtrugman pushed a commit to dtrugman/cline that referenced this pull request Aug 24, 2025
Co-authored-by: matt <matt@roocode.com>
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
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.

2 participants