You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`dl-vsix` provides two methods for identifying extension(s) to download. Note that these options are mutually exclusive.
@@ -70,3 +96,41 @@ Multiple packages may be specified using a JSON file. Extension IDs are assumed
70
96
Each VSIX package should have an `extension/package.json` detailing extension information; if an extension has additional dependencies, they should be declared in an `"extensionDependencies"` field as a list of extension ID strings.
71
97
72
98
By default, `dl-vsix` will not trace these dependencies. To enable dependency tracing, use the `-f/--follow_deps` flag to trace the dependencies for each download extension & add them to the download queue if any are found.
99
+
100
+
## Download Caching
101
+
102
+
`dl-vsix` implements a simple download cache to help prevent repeated downloads of the latest version of an extension. The cache is FIFO based on file modification date, as creation date is not available on all platforms.
103
+
104
+
By default, this is located in the user's cache directory, as defined by [`platformdirs`](https://platformdirs.readthedocs.io/en/latest/). OS specific location information can be found under the [Platforms API documentation](https://platformdirs.readthedocs.io/en/latest/api.html#platforms). The cache directory can be overridden using the `DL_VSIX_CACHE_DIR` environment variable; note that changing this directory location does not erase existing contents, nor are existing contents transferred to this location.
105
+
106
+
Cache size defaults to `512` MB, and is configurable using the `DL_VSIX_CACHE_SIZE` environment variable. Cache pruning is only conducted either when the tool initializes, or a new download is inserted into the cache.
107
+
108
+
### CLI Interface
109
+
110
+
Cache utilities are accessible via the `dl_vsix cache` command:
111
+
<!-- [[[cog
112
+
import cog
113
+
from subprocess import PIPE, run
114
+
out = run(["dl_vsix", "cache", "--help"], stdout=PIPE, encoding="ascii")
0 commit comments