From cbffb6cf1a4519e92cc08b39a3d0e70b89d26ffe Mon Sep 17 00:00:00 2001 From: Arno Hovhannisyan Date: Tue, 11 Jun 2019 13:49:39 +0400 Subject: [PATCH] #668 * Throw error * Try to fix issues with getting missing --- src/service/pluginService.ts | 4 +++- src/sync.ts | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/service/pluginService.ts b/src/service/pluginService.ts index e6bab29e..9cb80c96 100644 --- a/src/service/pluginService.ts +++ b/src/service/pluginService.ts @@ -84,7 +84,9 @@ export class PluginService { const localList = this.CreateExtensionList(); return remoteList.filter( - ext => !ignoredExtensions.includes(ext.name) && !localList.includes(ext) + ext => + !ignoredExtensions.includes(ext.name) && + !localList.map(e => e.name).includes(ext.name) ); } diff --git a/src/sync.ts b/src/sync.ts index 122e81d0..773f062e 100644 --- a/src/sync.ts +++ b/src/sync.ts @@ -535,11 +535,11 @@ export class Sync { content, ignoredExtensions ); - } catch (uncompletedExtensions) { + } catch (err) { vscode.window.showErrorMessage( localize("cmd.downloadSettings.error.removeExtFail") ); - deletedExtensions = uncompletedExtensions; + throw new Error(err); } }