Skip to content

Opening a .class file on a remote window doesn't show decompiled source #4114

@apimentasoto

Description

@apimentasoto

The custom editor for java class files is not used when opening .class files on a remote window.

I use the remote development extension for WSL.

The glob used as selector for the editor won't match the scheme of remote files.

"selector": [
          {
            "filenamePattern": "file:/**/*.class"
          }
]

Got it working adding a pattern which matches remote files:

"selector": [
                    {
                        "filenamePattern": "file:/**/*.class"
                    },
                    {
                        "filenamePattern": "vscode-remote:/**/*.class"
                    }
]

I'm new to remote development so I have no idea if I should be seeing this scheme in the first place. In any case would be nice to have .class files open the decompiled source by default - currently there is no error message or any indication that something's missing - just the 'cannot open binary file' page.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions