-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
vscode.env.openExternal opens a given file in Theia rather than in an external app #13535
Comments
@chroberino |
Right now |
Maybe we could also offer |
It's the same for me: I don't get this item in the context menu but only the entry in the command palette. |
@chroberino @JonasHelming |
I am far from being a deep-water-diver in Eclipse Theia. I am rather just learning to swim... But I can quickly contribute to following snippet as an insight from the
https://github.com/tjx666/open-in-external-app/blob/main/package.json Maybe this offers some obvious hints? |
@chroberino |
@chroberino |
@dhuebner Is this solved with your PR? |
@JonasHelming |
Bug Description:
I guess
vscode.env.openExternal
in Theia should do the same as in VS Code, i.e. use the OS' default application for opening a given URI. I was trying to use this call in a VS Code extension and observed that in Theia files are always be opened within Theia (while in VS Code they open in external apps).Steps to Reproduce:
Create a VS Code extension:
package.json
of your VS Code extension create a command like{ "command": "myextension.open-in-external-app", "title": "Open in External App" }
vscode.env.openExternal
, aiming to open the currently chosen file in its default app (as configured in the OS).When using your VS Code extension in Theia select a file in the Explorer and pick the "Open in External App" command from the command palette
Unexpectedly, the file will be opened within Theia, not in an external app.
As an easy alternative (without any coding efforts) you could also reproduce this issue with the Open in External App extension: If you don't give it any specific configuration, it will utilize
vscode.env.openExternal
striving to open a given file URI in its default application. However, the result is the same as described above, the file will not be opened in an external app but within Theia.Additional Information
The text was updated successfully, but these errors were encountered: