mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-20 02:08:47 +00:00
fix setting icon when creating from profile (#194048)
This commit is contained in:
committed by
GitHub
parent
37b60398e5
commit
c39a4b8db3
@@ -572,7 +572,7 @@ export class UserDataProfileImportExportService extends Disposable implements IU
|
||||
sticky: true,
|
||||
}, async progress => {
|
||||
const reportProgress = (message: string) => progress.report({ message: localize('create from profile', "Create Profile: {0}", message) });
|
||||
const profile = await this.doCreateProfile(profileTemplate, false, false, { useDefaultFlags: options?.useDefaultFlags }, reportProgress);
|
||||
const profile = await this.doCreateProfile(profileTemplate, false, false, { useDefaultFlags: options?.useDefaultFlags, icon: options?.icon }, reportProgress);
|
||||
if (profile) {
|
||||
reportProgress(localize('progress extensions', "Applying Extensions..."));
|
||||
await this.instantiationService.createInstance(ExtensionsResource).copy(this.userDataProfileService.currentProfile, profile, false);
|
||||
|
||||
Reference in New Issue
Block a user