introduce git APIState

fixes #77787
This commit is contained in:
Joao Moreno
2019-07-25 15:38:03 +02:00
parent 30eaedc93a
commit 23d8322547
3 changed files with 40 additions and 13 deletions

View File

@@ -176,7 +176,11 @@ export interface Repository {
log(options?: LogOptions): Promise<Commit[]>;
}
export type APIState = 'uninitialized' | 'initialized';
export interface API {
readonly state: APIState;
readonly onDidChangeState: Event<APIState>;
readonly git: Git;
readonly repositories: Repository[];
readonly onDidOpenRepository: Event<Repository>;