Skip to content
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

Open With... not working on folders #13838

Open
bhufmann opened this issue Jun 21, 2024 · 3 comments
Open

Open With... not working on folders #13838

bhufmann opened this issue Jun 21, 2024 · 3 comments
Labels
proposal feature proposals (potential future features)

Comments

@bhufmann
Copy link

Bug Description:

Open With -> Trace Viewer of the Theia Trace Viewer doesn't work anymore starting with Theia version 1.50.0. This feature allowed users to open traces that are files as well as traces that are folders. The limitation should be put back or alternatively make OpenWidthHandler configurable for files or folders or both (default files only):

this.openWithService.registerHandler({
            id: this.id + '-open-with',
            label: this.label,
            providerName: 'Theia Trace Viewer',
            appliesToFiles: true, // <----- suggestion
            appliesToFolders: true, // <----- suggestion
            canHandle: (uri: URI) => this.canHandle(uri),
            open: (uri: URI) => this.open(uri)
        });

Steps to Reproduce:

  1. Build and run the Theia trace viewer with PR Theia release 1.50 eclipse-cdt-cloud/theia-trace-extension#1087
  2. Right mouse-click on a folder
  3. "Open With..." is not shown

Additional Information

@JonasHelming
Copy link
Contributor

@msujew

@msujew msujew added the proposal feature proposals (potential future features) label Jun 24, 2024
@msujew
Copy link
Member

msujew commented Jun 24, 2024

Sure, that sounds pretty reasonable to me. @bhufmann Interested in contributing something for this?

@bhufmann
Copy link
Author

I'm not really familiar with Theia internals. It would be probably faster if you @msujew implement it :-)

I had a quick look, and thought it would be just updating getHandler() and check if the URI points to folder and check if the handler is configured for folders and then include it or not. What is a quick way to check if the uri points to a file or folder? Please let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proposal feature proposals (potential future features)
Projects
None yet
Development

No branches or pull requests

3 participants