mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-20 00:04:14 +08:00
* Revert "chore: update to electron 16 (#137241)" This reverts commit 01df559c184549248fcfbcecc5a616462e00c252. This reverts commit 46301339b71e7f99187edd262b809e8788bcb358 * ci: fix remote compiler for sdl-scan * chore: fix remote/.yarnrc * chore: fix build/npm/postinstall.js * chore: rm crash reporter from shared process * chore: rm crash reporter from ext host * chore: fix build/lib/layersChecker.ts * :chore: preserve some more changes * fix tests Co-authored-by: Benjamin Pasero <benjamin.pasero@microsoft.com>
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);