vscode/extensions/git-base
Tyler James Leonhardt d8453c0440
Rev built-in versions of vscode-nls to 5.1.0 (#157530)
* rev version of vscode-nls to 5.1.0

* and yarn lock
2022-08-08 18:43:45 +02:00
..
build
languages
resources/icons Extract remote source provider registry into the vscode.git-base extension (#137656) 2021-11-24 20:48:44 +01:00
src Debt - Prevent icon translations (#154094) 2022-07-04 14:37:52 +00:00
syntaxes
.vscodeignore Make git-base a web extension 2022-04-25 21:03:41 +02:00
cgmanifest.json Update grammars 2021-12-07 15:12:01 +01:00
extension-browser.webpack.config.js Make git-base a web extension 2022-04-25 21:03:41 +02:00
extension.webpack.config.js Make git-base a web extension 2022-04-25 21:03:41 +02:00
package.json Rev built-in versions of vscode-nls to 5.1.0 (#157530) 2022-08-08 18:43:45 +02:00
package.nls.json Extract remote source provider registry into the vscode.git-base extension (#137656) 2021-11-24 20:48:44 +01:00
README.md Add extension readme file 2021-12-02 17:07:55 +01:00
tsconfig.json Extract remote source provider registry into the vscode.git-base extension (#137656) 2021-11-24 20:48:44 +01:00
yarn.lock Rev built-in versions of vscode-nls to 5.1.0 (#157530) 2022-08-08 18:43:45 +02:00

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.

  1. Copy src/api/git-base.d.ts to your extension's sources;

  2. Include git-base.d.ts in your extension's compilation.

  3. 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);