From d766e6baa8d9299bc2e3dfd26cb5b1ca21c708eb Mon Sep 17 00:00:00 2001 From: Martin Aeschlimann Date: Mon, 14 Dec 2020 17:31:13 +0100 Subject: [PATCH] =revert changes to themes.contribution.ts --- .../contrib/themes/browser/themes.contribution.ts | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/vs/workbench/contrib/themes/browser/themes.contribution.ts b/src/vs/workbench/contrib/themes/browser/themes.contribution.ts index b9eb30ddbf1..ca1165af6ad 100644 --- a/src/vs/workbench/contrib/themes/browser/themes.contribution.ts +++ b/src/vs/workbench/contrib/themes/browser/themes.contribution.ts @@ -23,7 +23,6 @@ import { IQuickInputService, QuickPickInput } from 'vs/platform/quickinput/commo import { ConfigurationTarget } from 'vs/platform/configuration/common/configuration'; import { DEFAULT_PRODUCT_ICON_THEME_ID } from 'vs/workbench/services/themes/browser/productIconThemeData'; import { IGettingStartedService } from 'vs/workbench/services/gettingStarted/common/gettingStartedService'; -import { IProgressService, ProgressLocation } from 'vs/platform/progress/common/progress'; export class SelectColorThemeAction extends Action { @@ -298,20 +297,11 @@ class GenerateColorThemeAction extends Action { label: string, @IWorkbenchThemeService private readonly themeService: IWorkbenchThemeService, @IEditorService private readonly editorService: IEditorService, - @IProgressService readonly progressService: IProgressService ) { super(id, label); } - async run(): Promise { - await this.progressService.withProgress({ location: ProgressLocation.Dialog }, async (r) => { - r.report({ message: 'ssdf', total: 30 }); - return new Promise((s, e) => { - setTimeout(() => s(), 5000); - }); - }); - - + run(): Promise { let theme = this.themeService.getColorTheme(); let colors = Registry.as(ColorRegistryExtensions.ColorContribution).getColors(); let colorIds = colors.map(c => c.id).sort(); -- GitLab