Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/vscode.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/vs/workbench/api/browser/mainThreadDialogs.ts')
-rw-r--r--src/vs/workbench/api/browser/mainThreadDialogs.ts9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/vs/workbench/api/browser/mainThreadDialogs.ts b/src/vs/workbench/api/browser/mainThreadDialogs.ts
index 1f8066b2c0d..e9ca6d75502 100644
--- a/src/vs/workbench/api/browser/mainThreadDialogs.ts
+++ b/src/vs/workbench/api/browser/mainThreadDialogs.ts
@@ -6,7 +6,6 @@
import { URI } from 'vs/base/common/uri';
import { MainThreadDiaglogsShape, MainContext, MainThreadDialogOpenOptions, MainThreadDialogSaveOptions } from '../common/extHost.protocol';
import { extHostNamedCustomer, IExtHostContext } from 'vs/workbench/services/extensions/common/extHostCustomers';
-import { forEach } from 'vs/base/common/collections';
import { IFileDialogService, IOpenDialogOptions, ISaveDialogOptions } from 'vs/platform/dialogs/common/dialogs';
@extHostNamedCustomer(MainContext.MainThreadDialogs)
@@ -51,7 +50,9 @@ export class MainThreadDialogs implements MainThreadDiaglogsShape {
};
if (options?.filters) {
result.filters = [];
- forEach(options.filters, entry => result.filters!.push({ name: entry.key, extensions: entry.value }));
+ for (const [key, value] of Object.entries(options.filters)) {
+ result.filters!.push({ name: key, extensions: value });
+ }
}
return result;
}
@@ -64,7 +65,9 @@ export class MainThreadDialogs implements MainThreadDiaglogsShape {
};
if (options?.filters) {
result.filters = [];
- forEach(options.filters, entry => result.filters!.push({ name: entry.key, extensions: entry.value }));
+ for (const [key, value] of Object.entries(options.filters)) {
+ result.filters.push({ name: key, extensions: value });
+ }
}
return result;
}