-
Notifications
You must be signed in to change notification settings - Fork 6.9k
Use npm moduleopen
to open URLs in the external browser (instead of the host bridge)
#5013
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
|
open
to open URLs in the external browseropen
to open URLs in the external browser
open
to open URLs in the external browsersimple-open-http
to open URLs in the external browser (instead of the host bridge)
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:56:49.824945 |
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.
I haven't tried the simple-open-url package before. but looking at their README.md:
This tool is used for a limited cross platform env usage, if you run command only on one platform, use the native open commands instead.
What error were you getting when you try to import open
?
I tried replacing it with open
and it worked for me if I update the path package to use the node protocol node:path
We do need to run on multiple platforms.
I was just not able to get the import to work, any thing I tried to use from the |
|
simple-open-http
to open URLs in the external browser (instead of the host bridge)open
to open URLs in the external browser (instead of the host bridge)
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.
verified the sign in flow still works
# Conflicts: # src/utils/env.ts # Conflicts: # src/utils/env.ts
Log failures of ProtoBus RPCs
Update esbuild.js to ES6 and move to esbuild.mjs
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
… the host bridge) (cline#5013) * Use npm `open` to open URLs in the external browser # Conflicts: # src/utils/env.ts # Conflicts: # src/utils/env.ts * Change log statement * Use the simple-open-url module to open URLs in the system browser. Log failures of ProtoBus RPCs * Remove vscode hostbridge handler for openExternal * Rm unused imports * Switch back to `open` module. Update esbuild.js to ES6 and move to esbuild.mjs * Update src/utils/env.ts Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com> * remove IS_DEV from e2e setup build --------- Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com> Co-authored-by: abeatrix <beatrix@cline.bot>
cline-core can open the URLs directly without using the host bridge.
Use the npm module
open
.Remove the
openExternal
implementation from the vscode-impls.Update esbuild.js to ES6. I was not able to import the
open
module without making this change because of an imcompatibility between the module which is in CJS and the extension which is in ES6.Related Issue
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
Replace host bridge URL opening with npm
open
module and update build to ES6.open
module for opening URLs inopenExternal()
inenv.ts
.openExternal
RPC method fromenv.proto
.openInBrowser()
inopenInBrowser.ts
to use newopenExternal()
.esbuild.js
toesbuild.mjs
and update to ES6 imports to supportopen
module.package.json
scripts to useesbuild.mjs
.openExternal.ts
fromvscode-impls.js
and related files.grpc-handler.ts
.This description was created by
for 4957c87. You can customize this summary. It will automatically update as commits are pushed.