mirror of
https://github.com/microsoft/vscode.git
synced 2026-02-19 22:28:35 +08:00
* chore: bump electron@17.0.0 * Revert "chore: revert to electron@13 (#143851)" This reverts commit df645f14506142d6b20be6f6bda6bc40286ff739. * chore: bump electron@17.1.0 * Revert "ci: fix build with latest node-gyp" This reverts commit c3e948aa30f54b0ad20f1a99627949cda4ad0c9f. * chore: revert ci changes for node v16 * chore: update yarn.lock * chore: bump electron@17.1.1
Git static contributions and remote repository picker
Notice: This extension is bundled with Visual Studio Code. It can be disabled but not uninstalled.
Features
Git static contributions and remote repository picker.
API
The Git extension exposes an API, reachable by any other extension.
-
Copy
src/api/git-base.d.tsto your extension's sources; -
Include
git-base.d.tsin your extension's compilation. -
Get a hold of the API with the following snippet:
const gitBaseExtension = vscode.extensions.getExtension<GitBaseExtension>('vscode.git-base').exports; const git = gitBaseExtension.getAPI(1);