mirror of
https://github.com/microsoft/vscode.git
synced 2026-06-02 05:35:30 +01:00
Enhance settings profiles management (#155966)
* fix #154178 * - Support renaming profile - Refactor profile actions * fix compilation * fix label
This commit is contained in:
committed by
GitHub
parent
6567f3da69
commit
d902fec1d2
@@ -59,7 +59,7 @@ class ProfileExtensionsCleaner extends Disposable {
|
||||
this.onDidChangeProfiles({ added: this.userDataProfilesService.profiles, removed: [], all: this.userDataProfilesService.profiles });
|
||||
}
|
||||
|
||||
private async onDidChangeProfiles({ added, removed, all }: DidChangeProfilesEvent): Promise<void> {
|
||||
private async onDidChangeProfiles({ added, removed, all }: Omit<DidChangeProfilesEvent, 'updated'>): Promise<void> {
|
||||
try {
|
||||
await Promise.all(removed.map(profile => profile.extensionsResource ? this.removeExtensionsFromProfile(profile.extensionsResource) : Promise.resolve()));
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user