mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 03:54:24 +01:00
GitHub - add support for batch avatar query (#238114)
This commit is contained in:
8
extensions/github/src/typings/git.d.ts
vendored
8
extensions/github/src/typings/git.d.ts
vendored
@@ -289,8 +289,14 @@ export interface BranchProtectionProvider {
|
||||
provideBranchProtection(): BranchProtection[];
|
||||
}
|
||||
|
||||
export interface AvatarQuery {
|
||||
readonly commit: string;
|
||||
readonly authorName?: string;
|
||||
readonly authorEmail?: string;
|
||||
}
|
||||
|
||||
export interface SourceControlHistoryItemDetailsProvider {
|
||||
provideAvatar(repository: Repository, commit: string, authorName?: string, authorEmail?: string): Promise<string | undefined>;
|
||||
provideAvatar(repository: Repository, query: AvatarQuery[]): Promise<Map<string, string | undefined> | undefined>;
|
||||
provideHoverCommands(repository: Repository): Promise<Command[] | undefined>;
|
||||
provideMessageLinks(repository: Repository, message: string): Promise<string | undefined>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user