Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve display/handling of pub packages in solution tree #53

Open
DanTup opened this issue Oct 15, 2014 · 0 comments
Open

Improve display/handling of pub packages in solution tree #53

DanTup opened this issue Oct 15, 2014 · 0 comments

Comments

@DanTup
Copy link
Contributor

DanTup commented Oct 15, 2014

Pub packages work a bit like NuGet packages in Dart; and live in the packages folder.

The list of packages is stored in pubspec.yaml in the dependencies section. This only lists the packages you directly add; dependencies of dependencies will live in the packages folder even though they're not in this file.

Currently, the folders inside the packages folder (one per package) are symlinks back to a "pub cache" (eg. C:\Users\Danny\AppData\Roaming\Pub\Cache) though this may change in the future.

Additionally, pub creates packages symlinks as subfolders of many other folders (eg. bin, web). This means rendering the entire tree will have a bunch of duplicated folders:

  • bin
  • - packages
  • web
  • - packages
  • packages
  • pubspec.yaml

I think it might be best for us to:

  1. Render the packages folder as the references folder in the current implementation (so it appears at top, and is "special", allowing for future functionality like a pub package search)
  2. Hide all further nested packages folders from the solution tree
  3. Indicate the difference between packages in pubspec.yaml vs those that just exist on disk (indirect dependencies)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant