-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Hostbridge diff diagnostics #5368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…s functionality from direct VS Code API calls to the hostbridge layer to enable multi-host support (VS Code + IntelliJ).
|
Coverage ReportExtension CoverageBase branch: 47% PR branch: 48% ✅ Coverage increased or remained the same Webview CoverageBase branch: 17% PR branch: 17% ✅ Coverage increased or remained the same Overall Assessment✅ Test coverage has been maintained or improved Last updated: 2025-08-06T01:19:52.490231 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great except for the comment about the before and after diagnostics, but lets just submit this and fix it in a second PR.
Description
Migrate the diff edit diagnostics functionality from direct VS Code API calls to hostbridge.
Changes:
getDiagnostics
RPC toDiffService
inproto/host/diff.proto
src/hosts/vscode/hostbridge/diff/getDiagnostics.ts
VscodeDiffViewProvider
to usegetAllDiagnostics()
via hostbridge instead of directvscode.languages.getDiagnostics()
@problems
mention functionality to use hostbridge abstractionThe diagnostics functionality now flows through:
Client → HostProvider.diff.getDiagnostics() → gRPC → VS Code Implementation → Response
, enabling other platforms to implement the same interface.Test Procedure
@problems
in chat triggers hostbridge call and displays workspace diagnostics correctlyVerified hostbridge flow: Console logs showed complete gRPC request/response cycle with proper diagnostic data transformation between proto and VS Code formats. Both functionalities work identically to before, but now use hostbridge instead of direct VS Code APIs.
Type of Change
Pre-flight Checklist
npm test
) and code is formatted and linted (npm run format && npm run lint
)npm run changeset
(required for user-facing changes)Screenshots
Important
Refactor diagnostics functionality to use hostbridge for cross-platform compatibility, adding a new RPC and updating related classes and functions.
getDiagnostics
RPC toDiffService
inproto/host/workspace.proto
.src/hosts/vscode/hostbridge/workspace/getDiagnostics.ts
.VscodeDiffViewProvider
andExternalDiffViewProvider
to usegetDiagnostics()
via hostbridge.@problems
mention functionality to use hostbridge abstraction.getNewDiagnostics()
anddiagnosticsToProblemsString()
insrc/hosts/vscode/diagnostics.ts
.getWorkspaceProblemsString()
insrc/integrations/diagnostics/index.ts
for cross-host compatibility.This description was created by
for 5271789. You can customize this summary. It will automatically update as commits are pushed.