mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 18:19:12 +01:00
git: getAPI
This commit is contained in:
30
extensions/git/src/api/git.d.ts
vendored
Normal file
30
extensions/git/src/api/git.d.ts
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* 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 {
|
||||
|
||||
}
|
||||
|
||||
//#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;
|
||||
}
|
||||
Reference in New Issue
Block a user