mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 18:49:00 +01:00
git api: expose gitPath
This commit is contained in:
@@ -12,7 +12,9 @@ import { Api } from './api';
|
||||
@Api('0.1.0')
|
||||
export class ApiImpl implements GitExtension.API {
|
||||
|
||||
constructor(model: Model) {
|
||||
// console.log(model);
|
||||
get gitPath(): string {
|
||||
return this._model.git.path;
|
||||
}
|
||||
|
||||
constructor(private _model: Model) { }
|
||||
}
|
||||
|
||||
3
extensions/git/src/api/git.d.ts
vendored
3
extensions/git/src/api/git.d.ts
vendored
@@ -6,8 +6,9 @@
|
||||
import { Uri, SourceControlInputBox } from 'vscode';
|
||||
|
||||
declare module GitExtension {
|
||||
export interface API {
|
||||
|
||||
export interface API {
|
||||
readonly gitPath: string;
|
||||
}
|
||||
|
||||
//#region Deprecated API
|
||||
|
||||
Reference in New Issue
Block a user