vscode/extensions/git
Ladislau Szomoru d0bba70758
Git - do not prompt when opening a worktree (#285107)
* Git - do not prompt when opening a worktree

* Pull request feedback
2025-12-26 13:37:44 +00:00
..
build
resources
src Git - do not prompt when opening a worktree (#285107) 2025-12-26 13:37:44 +00:00
.npmrc chore: add npmrc to extensions folder (#230214) 2024-10-01 12:43:01 +02:00
.vscodeignore chore: rm unreached ignore items when build extensions. (#227906) 2024-09-09 10:32:51 +00:00
extension.webpack.config.js Convert extension webpack scripts to modules 2025-08-07 17:20:22 -07:00
package-lock.json Update a few package-locks for mocha 2025-10-13 11:13:12 -07:00
package.json Git - update git worktree inlint action (#284737) 2025-12-22 05:46:55 -08:00
package.nls.json Git - add option to ignore whitespace for the blame information (#284260) 2025-12-18 15:53:58 +01:00
README.md
tsconfig.json SCM - plumbing to support artifacts in the repositories view (#274173) 2025-10-30 12:37:22 -07:00

Git integration for Visual Studio Code

Notice: This extension is bundled with Visual Studio Code. It can be disabled but not uninstalled.

Features

See Git support in VS Code to learn about the features of this extension.

API

The Git extension exposes an API, reachable by any other extension.

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

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

  3. Get a hold of the API with the following snippet:

    const gitExtension = vscode.extensions.getExtension<GitExtension>('vscode.git').exports;
    const git = gitExtension.getAPI(1);
    

    Note: To ensure that the vscode.git extension is activated before your extension, add extensionDependencies (docs) into the package.json of your extension:

    "extensionDependencies": [
    	"vscode.git"
    ]