VS Code Submodule ClonerVS Code's long missing submodule cloner powered by isomorphic-git.
This extension provides a basic set of commands for cloning submodule content without requiring git command-line access. This is particularly useful on VS Code for the Web, although it should function similarly to a local Git client in desktop environments. The extension operates on one of the two modes:
APIs for querying and locating the submodules is WIP. For example, in out-of-tree clone mode, you can write a router to rewrite URIs to submodules to the virtual one. Related issues
What this is notThis extension is not intended to provide complete Git support. The usage is supposed to be read-only: you should not stage, checkout, or make commits in the cloned git submodules. You can always inspect the submodule with a git client, and wipe it whenever it gets corrupted, just like a naive git user. This extension is designed for use with the WebAssembly edition of agda-mode-vscode and may not open to all feature requests. For advanced usage, consider github1s, which has supported submodule browsing out of the box since 2021. On the use of CORS proxiesIn VS Code for the Web, we use isomorphic-git along with its default CORS proxy to clone repositories to workaround CORS limitations. Configure your own endpoint if you want to use it with private repos, or when security is a major concern. |