Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Comments

Use atom.packages.getAvailablePackageNames#894

Merged
winstliu merged 2 commits intomasterfrom
wl-remove-package-cache
Dec 16, 2016
Merged

Use atom.packages.getAvailablePackageNames#894
winstliu merged 2 commits intomasterfrom
wl-remove-package-cache

Conversation

@winstliu
Copy link
Contributor

@winstliu winstliu commented Dec 16, 2016

Because it's already there for us! Why use our own implementation?

Fixes #817

TODO:

  • Specs

Because it's already there for us!  Why use our own implementation?
Now that we don't have our own implementation of
getAvailablePackageNames anymore we don't have to test for it!
@winstliu
Copy link
Contributor Author

Turns out there was already a spec testing for this behavior! The only problem was that the assertion was wrong...

@winstliu
Copy link
Contributor Author

Feeling pretty confident about this change (minimally invasive, uses core APIs that rely on the filesystem), so I'm going to merge it. This might be a bit slower than the current implementation since it hits the filesystem every time but it should be fine. My (not-very-scientific) tests don't show any noticeable slowdown.

@winstliu winstliu merged commit 32cf2b4 into master Dec 16, 2016
@winstliu winstliu deleted the wl-remove-package-cache branch December 16, 2016 03:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant