A simple checkbox tree in the Explorer view for managing Git cone-mode
sparse-checkout, aimed at writers/non-technical users who just want to pick
which top-level folders of a repo they need checked out.
Features
Adds a Sparse Checkout view to the Explorer showing your repo's folders.
Check a folder to check it out (git sparse-checkout set --cone), uncheck
to remove it. Checking a folder includes its entire subtree.
Brand-new folders that haven't been committed yet also show up in the tree
(labeled "new, not committed"). They're checked by default so their
contents can be staged/committed from the Source Control view right away;
uncheck one if you don't want it added to the sparse-checkout selection.
Changes apply automatically a moment after you stop clicking — no separate
"Apply" step.
A refresh button picks up changes made outside the view (e.g. from the
terminal).
Turn sparse-checkout off entirely with Disable Sparse Checkout and Check
Out All Files, which warns you how many additional files that will write
to disk before doing anything. Turn it back on again from the same view
with Enable Sparse Checkout.
Requirements
Git must be installed and available on PATH.
The first workspace folder must be the root of a Git repository.
Known Issues
Cone-mode sparse-checkout can't exclude a subfolder of an already-checked
parent folder. If you need finer control, uncheck the parent and check the
specific subfolders you want instead.
Only folders are shown; individual file-level sparse-checkout patterns are
not supported.
Release Notes
See CHANGELOG.md (in this repo) for the full history of changes.
Following extension guidelines
Ensure that you've read through the extensions guidelines and follow the best practices for creating your extension.