mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-08 15:55:15 +01:00
This reverts commit 44e3fbaa01.
This commit is contained in:
committed by
GitHub
parent
5c6c8c42ae
commit
6567f3da69
@@ -1277,17 +1277,6 @@ export class ExtensionsWorkbenchService extends Disposable implements IExtension
|
||||
if (locale === language) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Uninstall existing language pacjk extensions
|
||||
const languagePackExtensions = this.local.filter(e => e.local && e.gallery && this.languagePackService.getLocale(e.gallery));
|
||||
if (languagePackExtensions.length) {
|
||||
await Promise.all(languagePackExtensions.map(e => this.uninstall(e)));
|
||||
}
|
||||
|
||||
// Install the extension
|
||||
await this.install(extension, { isMachineScoped: false });
|
||||
|
||||
// Set the locale
|
||||
return this.localeService.setLocale({ id: locale, galleryExtension: extension.gallery, extensionId: extension.identifier.id, label: extension.displayName });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user