提交 d766e6ba 编写于 作者: M Martin Aeschlimann

=revert changes to themes.contribution.ts

上级 c197be4e
...@@ -23,7 +23,6 @@ import { IQuickInputService, QuickPickInput } from 'vs/platform/quickinput/commo ...@@ -23,7 +23,6 @@ import { IQuickInputService, QuickPickInput } from 'vs/platform/quickinput/commo
import { ConfigurationTarget } from 'vs/platform/configuration/common/configuration'; import { ConfigurationTarget } from 'vs/platform/configuration/common/configuration';
import { DEFAULT_PRODUCT_ICON_THEME_ID } from 'vs/workbench/services/themes/browser/productIconThemeData'; import { DEFAULT_PRODUCT_ICON_THEME_ID } from 'vs/workbench/services/themes/browser/productIconThemeData';
import { IGettingStartedService } from 'vs/workbench/services/gettingStarted/common/gettingStartedService'; import { IGettingStartedService } from 'vs/workbench/services/gettingStarted/common/gettingStartedService';
import { IProgressService, ProgressLocation } from 'vs/platform/progress/common/progress';
export class SelectColorThemeAction extends Action { export class SelectColorThemeAction extends Action {
...@@ -298,20 +297,11 @@ class GenerateColorThemeAction extends Action { ...@@ -298,20 +297,11 @@ class GenerateColorThemeAction extends Action {
label: string, label: string,
@IWorkbenchThemeService private readonly themeService: IWorkbenchThemeService, @IWorkbenchThemeService private readonly themeService: IWorkbenchThemeService,
@IEditorService private readonly editorService: IEditorService, @IEditorService private readonly editorService: IEditorService,
@IProgressService readonly progressService: IProgressService
) { ) {
super(id, label); super(id, label);
} }
async run(): Promise<any> { run(): Promise<any> {
await this.progressService.withProgress({ location: ProgressLocation.Dialog }, async (r) => {
r.report({ message: 'ssdf', total: 30 });
return new Promise<void>((s, e) => {
setTimeout(() => s(), 5000);
});
});
let theme = this.themeService.getColorTheme(); let theme = this.themeService.getColorTheme();
let colors = Registry.as<IColorRegistry>(ColorRegistryExtensions.ColorContribution).getColors(); let colors = Registry.as<IColorRegistry>(ColorRegistryExtensions.ColorContribution).getColors();
let colorIds = colors.map(c => c.id).sort(); let colorIds = colors.map(c => c.id).sort();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册