mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 18:19:12 +01:00
31 lines
886 B
TypeScript
31 lines
886 B
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
import { Uri, SourceControlInputBox } from 'vscode';
|
|
|
|
declare module GitExtension {
|
|
|
|
export interface API {
|
|
readonly gitPath: string;
|
|
}
|
|
|
|
//#region Deprecated API
|
|
export interface InputBox {
|
|
value: string;
|
|
}
|
|
|
|
export interface Repository {
|
|
readonly rootUri: Uri;
|
|
readonly inputBox: InputBox;
|
|
}
|
|
//#endregion
|
|
}
|
|
|
|
export interface GitExtension {
|
|
getRepositories(): Promise<GitExtension.Repository[]>;
|
|
getGitPath(): Promise<string>;
|
|
// export const availableVersions: string[];
|
|
getAPI(range: string): GitExtension.API;
|
|
} |