-
Notifications
You must be signed in to change notification settings - Fork 6.9k
Move vscode.commands.executeCommand("vscode.open") to Hostbridge #5173
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
- Remove success boolean field from OpenFileResponse proto - Use gRPC exceptions for error handling instead of success/failure booleans - Simplify hostbridge implementation to just move existing vscode.open code
|
Coverage ReportExtension CoverageBase branch: 46% PR branch: 47% ✅ 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-07-26T07:13:19.476834 |
…ne#5173) * feat: add openFile host bridge for vscode.open command * fix: simplify openFile hostbridge to follow gRPC best practices: - Remove success boolean field from OpenFileResponse proto - Use gRPC exceptions for error handling instead of success/failure booleans - Simplify hostbridge implementation to just move existing vscode.open code * fix: remove create wrapper from openFile call * fix proto merge conflict
Related Issue
Issue: #XXXX
Description
Simple migration of vscode.commands.executeCommand("vscode.open", ...) calls to hostbridge pattern.
This change:
Test Procedure
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
Additional Notes
Important
Refactor
vscode.open
command to use hostbridge pattern inopenImage
function, updatingwindow.proto
and maintaining functionality.vscode.commands.executeCommand("vscode.open")
toopenFile
function inopenFile.ts
.openImage()
inopen-file.ts
to useHostProvider.window.openFile()
.openFile
,getOpenTabs
, andgetVisibleTabs
RPC methods towindow.proto
.This description was created by
for 53f680d. You can customize this summary. It will automatically update as commits are pushed.