We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I found this bug when reviewing #9184. Although a filter is correctly configured:
theia/packages/vsx-registry/src/browser/vsx-extensions-contribution.ts
Lines 164 to 169 in 14df86f
It has no effect, as we always use the * filter. This code should be changed:
*
theia/packages/filesystem/src/electron-browser/file-dialog/electron-file-dialog-service.ts
Lines 96 to 99 in edc346b
Expected:
diff --git a/packages/filesystem/src/electron-browser/file-dialog/electron-file-dialog-service.ts b/packages/filesystem/src/electron-browser/file-dialog/electron-file-dialog-service.ts index 10729331d5..eff76250aa 100644 --- a/packages/filesystem/src/electron-browser/file-dialog/electron-file-dialog-service.ts +++ b/packages/filesystem/src/electron-browser/file-dialog/electron-file-dialog-service.ts @@ -93,9 +93,11 @@ export class ElectronFileDialogService extends DefaultFileDialogService { protected toDialogOptions(uri: URI, props: SaveFileDialogProps | OpenFileDialogProps, dialogTitle: string): electron.FileDialogProps { const title = props.title || dialogTitle; const defaultPath = FileUri.fsPath(uri); - const filters: FileFilter[] = [{ name: 'All Files', extensions: ['*'] }]; + const filters: FileFilter[] = []; if (props.filters) { filters.push(...Object.keys(props.filters).map(key => ({ name: key, extensions: props.filters![key] }))); + } else { + filters.push({ name: 'All Files', extensions: ['*'] }); } return { title, defaultPath, filters }; }
The text was updated successfully, but these errors were encountered:
@kittaakos this looks like a good first issue to get my feet wet. Can I help with this issue?
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Bug Description:
I found this bug when reviewing #9184. Although a filter is correctly configured:
theia/packages/vsx-registry/src/browser/vsx-extensions-contribution.ts
Lines 164 to 169 in 14df86f
It has no effect, as we always use the
*
filter. This code should be changed:theia/packages/filesystem/src/electron-browser/file-dialog/electron-file-dialog-service.ts
Lines 96 to 99 in edc346b
Expected:
Steps to Reproduce:
Additional Information
The text was updated successfully, but these errors were encountered: