mirror of
https://github.com/Microsoft/vscode
synced 2024-11-05 18:29:38 +00:00
5216c04428
* chore: update electron@29.1.0 * chore: update typings to 20.x * chore: bump electron@29.1.5 * ci: fix crash in compiling extensions-ci * chore: disable .d.ts check for build/ $ ../node_modules/.bin/tsc -p tsconfig.build.json node_modules/@types/chokidar/index.d.ts:21:14 - error TS2420: Class 'import("/Users/demohan/github/vscode/build/node_modules/@types/chokidar/index").FSWatcher' incorrectly implements interface 'import("fs").FSWatcher'. Type 'FSWatcher' is missing the following properties from type 'FSWatcher': ref, unref 21 export class FSWatcher extends EventEmitter implements fs.FSWatcher { ~~~~~~~~~ node_modules/chokidar/types/index.d.ts:8:14 - error TS2420: Class 'import("/Users/demohan/github/vscode/build/node_modules/chokidar/types/index").FSWatcher' incorrectly implements interface 'import("fs").FSWatcher'. Type 'FSWatcher' is missing the following properties from type 'FSWatcher': ref, unref 8 export class FSWatcher extends EventEmitter implements fs.FSWatcher { ~~~~~~~~~ Found 2 errors in 2 files. Errors Files 1 node_modules/@types/chokidar/index.d.ts:21 1 node_modules/chokidar/types/index.d.ts:8 Refs |
||
---|---|---|
.. | ||
build | ||
languages | ||
resources/icons | ||
src | ||
syntaxes | ||
.vscodeignore | ||
cgmanifest.json | ||
extension-browser.webpack.config.js | ||
extension.webpack.config.js | ||
package.json | ||
package.nls.json | ||
README.md | ||
tsconfig.json | ||
yarn.lock |
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.ts
to your extension's sources; - Include
git-base.d.ts
in 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);