Skip to content

Commit bbede2d

Browse files
committed
Add extension readme file
1 parent b395575 commit bbede2d

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

extensions/git-base/README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Git static contributions and remote repository picker
2+
3+
**Notice:** This extension is bundled with Visual Studio Code. It can be disabled but not uninstalled.
4+
5+
## Features
6+
7+
Git static contributions and remote repository picker.
8+
9+
## API
10+
11+
The Git extension exposes an API, reachable by any other extension.
12+
13+
1. Copy `src/api/git-base.d.ts` to your extension's sources;
14+
2. Include `git-base.d.ts` in your extension's compilation.
15+
3. Get a hold of the API with the following snippet:
16+
17+
```ts
18+
const gitBaseExtension = vscode.extensions.getExtension<GitBaseExtension>('vscode.git-base').exports;
19+
const git = gitBaseExtension.getAPI(1);
20+
```

0 commit comments

Comments
 (0)