Comments (8)
@chroberino
Are you also missing the "Open in External App" file browser menu contribution after installing Open in External App extension?
I see the command in the palette, but not the menu entry...
from theia.
Right now theia.env.openExternal()
is called when the vscode.env.openExternal
is triggered. This calls windowStateExt.openUri(uri)
and its current implementation just redirects to the opener-service.ts
without providing any further information except the URI. The only handler that matches is the EditorPreview so the file is opened in Theia. I also didn't found a registered handler that can call external applications. In electron case such a handler should probably call shell.openPath(fsPath)
to redirect to the OS editors.
from theia.
Maybe we could also offer Open With... -> System Editor
in Theia?
from theia.
@chroberino Are you also missing the "Open in External App" file browser menu contribution after installing Open in External App extension? I see the command in the palette, but not the menu entry...
It's the same for me: I don't get this item in the context menu but only the entry in the command palette.
I have already created an issue for this: tjx666/open-in-external-app#63
from theia.
@chroberino
Menu contribution works in vs-code, so might be a problem with Thiea. We should investigate what goes wrong there.
@JonasHelming
It is not related to the vscode.env.openExternal
handling problem, but I did some experiments with the new OpenWithService
and could contribute a new built-in "open handler" that redirects to the operation system.
from theia.
Menu contribution works in vs-code, so might be a problem with Thiea. We should investigate what goes wrong there.
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 package.json
file of the "Open in External App" extension:
"contributes": {
"commands": [
{
"command": "openInExternalApp.open",
"title": "%cmd.open%"
},
{
"command": "openInExternalApp.openMultiple",
"title": "%cmd.openMultiple%"
}
],
"menus": {
"explorer/context": [
{
"when": "!explorerResourceIsFolder && isFileSystemResource",
"command": "openInExternalApp.open",
"alt": "openInExternalApp.openMultiple",
"group": "navigation@10"
}
],
"editor/title/context": [
{
"when": "isFileSystemResource",
"command": "openInExternalApp.open",
"alt": "openInExternalApp.openMultiple",
"group": "navigation@10"
}
]
}
}
https://github.com/tjx666/open-in-external-app/blob/main/package.json
Maybe this offers some obvious hints?
Maybe the when
condition is not true in Theia?
Maybe the alt
or group
confuses Theia?
from theia.
@chroberino
Okay, thanks! I will check why the contribution doesn't work.
from theia.
@chroberino
Yes, it looks like Theia is missing context key handling for isFileSystemResource
from theia.
Related Issues (20)
- `download:plugins` should respect Version
- Plugin host `onDidCreateFiles` isn't fired when running `Save As` command
- [vscode] API gap: Theia master vs. VS Code 1.89 HOT 1
- [vscode] Support WindowState active boolean introduced in VS Code 1.89
- [vscode] bump API compatibility version to 1.89.X
- [vscode] Evolution of dropMetatada and documentPaste Proposed APIs in VS Code 1.89
- [vscode] scmHistoryProvider proposed API evolutions in VS Code 1.89 HOT 1
- secondary-window page canβt maximize HOT 3
- Failed to customize the data folder HOT 3
- Some files can not be saved when losing and restoring network connection HOT 2
- Runaway ripgrep (rg) processes consume all available CPU HOT 8
- How can I dynamically register the menu? HOT 1
- Dynamically registered menus are ignored by the menu renderer HOT 1
- DragEnter and DragOver events are not working on main Panel
- README: link to the documentation is broken HOT 2
- Theia browser crashing on EKS after terminal is opened.
- Bogus help message from Theia Electron Main
- Debugger doesn't show error of setVariable if it failed
- Responsive Layout - Toolbar Design
- Plugin quick picks show separators as items
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from theia.