r3inbowari / go-mod-explorer

Go Module Explorer for Visual Studio Code (beta)
https://marketplace.visualstudio.com/items?itemName=r3inbowari.gomodexplorer
MIT License
33 stars 6 forks source link

Feature request: support multiple go.mod files #27

Closed r3inbowari closed 1 year ago

r3inbowari commented 2 years ago

Support including multiple go.mod files for a project.

root treeview exmaple: + Modules Go SDK (version) [hash5...5] [build time] + Modules1 \<module name which in go.mod file> + Modules2 \<project-test> + Modulesn \<sub-modules-xxxx>

like this: image

more:

  1. All modules should be in the same layer.
  2. Collapse all modules by default.
  3. Still display the modules folder even modules is empty.
  4. When vscode is in workspace mode, all modules should be listed.
  5. When loading a child modules list, the intersection of the child and parent modules will be bundled.
r3inbowari commented 2 years ago

We can't load anything if the go.mod file contains wrong imports. And we may need to run go mod download before load packages. So we should add a download option for each modules.