Skip to content

Open dialog filter does not except a file extension of tar.gz #23316

@cazfletch

Description

@cazfletch

Preflight Checklist

  • I have read the Contributing Guidelines for this project.
  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for an issue that matches the one I want to file, without success.

Issue Details

I saw this issue in vscode version 1.39

I am creating a vscode extension with the following code

 const openDialogOptions: vscode.OpenDialogOptions = {
        canSelectFiles: true,
        canSelectFolders: false,
        canSelectMany: false,
        openLabel: 'Select',
        filters: { Packages: ['tar.gz', 'tgz'] }
    };

 const fileBrowser: vscode.Uri[] = await vscode.window.showOpenDialog(openDialogOptions);

When trying out the extension the open file dialog box appears but a tar.gz file will be greyed out but tgz files won't be greyed out

  • Electron Version:

4.2.10

  • Operating System:
  • Last Known Working Electron version:

Expected Behavior

I expect to be able to select both tgz and tar.gz files from an open file dialog box

Actual Behavior

I can't select tar.gz files

To Reproduce

see this vscode issue microsoft/vscode#94277

Screenshots

Additional Information

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions