git api: expose gitPath

This commit is contained in:
Joao Moreno
2018-08-21 16:41:29 +02:00
parent ad4fecadeb
commit b00d1b40bc
2 changed files with 6 additions and 3 deletions

View File

@@ -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) { }
}

View File

@@ -6,8 +6,9 @@
import { Uri, SourceControlInputBox } from 'vscode';
declare module GitExtension {
export interface API {
export interface API {
readonly gitPath: string;
}
//#region Deprecated API