-
-
Notifications
You must be signed in to change notification settings - Fork 319
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue that it is not possible to remove a remote package (#803)
Resolves #802 Issue: - Package references's setter implementation only allowed appending new elements and didn't support removing them as the `packageReferences` array is shared between both `localPackages` and `remotePackages`. Changes: - It checks that only the references are kept that are not part of the current type. - This is done by getting the object of the reference and checking the type of this reference. - Unit test was added to verify removal case Notes: - To correctly remove a package, there's a few other objects and references that need to be removed _(not just the element from `packageReferences`)_
- Loading branch information
Showing
2 changed files
with
53 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters