mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-22 17:48:56 +01:00
GitHub - avatar resolution improvements (#238239)
* Add support for size * Add support for extracting user id from GitHub no-reply email addresses * Fix git blame email parsing * Extrat link into function
This commit is contained in:
11
extensions/git/src/api/git.d.ts
vendored
11
extensions/git/src/api/git.d.ts
vendored
@@ -326,14 +326,19 @@ export interface BranchProtectionProvider {
|
||||
provideBranchProtection(): BranchProtection[];
|
||||
}
|
||||
|
||||
export interface AvatarQuery {
|
||||
readonly commit: string;
|
||||
export interface AvatarQueryCommit {
|
||||
readonly hash: string;
|
||||
readonly authorName?: string;
|
||||
readonly authorEmail?: string;
|
||||
}
|
||||
|
||||
export interface AvatarQuery {
|
||||
readonly commits: AvatarQueryCommit[];
|
||||
readonly size: number;
|
||||
}
|
||||
|
||||
export interface SourceControlHistoryItemDetailsProvider {
|
||||
provideAvatar(repository: Repository, query: AvatarQuery[]): ProviderResult<Map<string, string | undefined>>;
|
||||
provideAvatar(repository: Repository, query: AvatarQuery): ProviderResult<Map<string, string | undefined>>;
|
||||
provideHoverCommands(repository: Repository): ProviderResult<Command[]>;
|
||||
provideMessageLinks(repository: Repository, message: string): ProviderResult<string>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user