microsoft / vscode-gradle

Manage Gradle Projects, run Gradle tasks and provide better Gradle file authoring experience in VS Code
https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-gradle
MIT License
129 stars 54 forks source link

Enable/Disable download sources upon project import #1627

Open mamilic opened 2 weeks ago

mamilic commented 2 weeks ago

When importing large gradle projects such as, https://github.com/spring-projects/spring-boot it takes a long time to import.

Describe the solution you'd like It would be nice to have preference setting to specify whether docs should be synced upon import. If possible, the sources could be downloaded on demand, whenever user navigates to dependecies, sources could be downloaded.

jdneo commented 1 week ago

I have the same feeling that this might have big impact on project import. Some preference should be added to Gradle Build Server to disable the source jar download during import.

The thing needs to be figured out is that how to 'lazy' download these source jars on demand.

mamilic commented 1 day ago

Hi @jdneo , the question is a little bit tricky, actually what I see here is that user can be prompted to download resources if needed when one of the files are opened from library. Other side of this is how to actually do it programatically,

Have no experience in this, though this is just my feeling, you can be the judge whether this is possible. 😄