Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
* Throw error

* Try to fix issues with getting missing
  • Loading branch information
auxves authored and shanalikhan committed Jun 11, 2019
1 parent 8e129ff commit cbffb6c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/service/pluginService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
);
}

Expand Down
4 changes: 2 additions & 2 deletions src/sync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit cbffb6c

Please sign in to comment.