From 0f6851cc68b00a5e241a74b5d23d2c10e0646172 Mon Sep 17 00:00:00 2001 From: Arno Date: Mon, 10 Jun 2019 15:25:39 +0400 Subject: [PATCH 1/2] Throw error --- src/sync.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } } From 82a5d7b37ab2abc8d744effa87714e4cc3a1586e Mon Sep 17 00:00:00 2001 From: Arno Date: Tue, 11 Jun 2019 11:50:27 +0400 Subject: [PATCH 2/2] Try to fix issues with getting missing --- src/service/pluginService.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) ); }