Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 

57 lignes
1.3 KiB

import type { GitCommandOptions } from '../git/commandOptions';
// eslint-disable-next-line @typescript-eslint/no-unused-vars
export class RequestType<Request, Response> {
constructor(public readonly name: string) {}
}
export interface GitCommandRequest {
options: GitCommandOptions;
args: any[];
}
export interface GitCommandResponse {
data: string;
isBuffer?: boolean;
}
export const GitCommandRequestType = new RequestType<GitCommandRequest, GitCommandResponse>('git');
export interface GitLogStreamToCommandRequest {
repoPath: string;
sha: string;
limit: number;
options?: { configs?: readonly string[]; stdin?: string };
args: string[];
}
export interface GitLogStreamToCommandResponse {
data: string[];
count: number;
}
export const GitLogStreamToCommandRequestType = new RequestType<
GitLogStreamToCommandRequest,
GitLogStreamToCommandResponse
>('git/logStreamTo');
export interface RepositoryProxy {
folderUri: string;
/** @deprecated */
path?: string;
root: boolean;
closed: boolean;
}
export interface GetRepositoriesForUriRequest {
folderUri: string;
}
export interface GetRepositoriesForUriResponse {
repositories: RepositoryProxy[];
}
export const GetRepositoriesForUriRequestType = new RequestType<
GetRepositoriesForUriRequest,
GetRepositoriesForUriResponse
>('repositories/inFolder');