feat(plugin): bound vcs adapter diffs
This commit is contained in:
parent
10a71bae4a
commit
ceb5f3554e
4 changed files with 40 additions and 5 deletions
|
|
@ -15,12 +15,14 @@ export interface AdapterScope {
|
|||
readonly store: string
|
||||
}
|
||||
|
||||
export interface DiffOptions {
|
||||
readonly context: number
|
||||
readonly maxOutputBytes: number
|
||||
}
|
||||
|
||||
export interface Adapter {
|
||||
readonly status: () => Effect.Effect<readonly FileStatus[]>
|
||||
readonly diff: (
|
||||
mode: Mode,
|
||||
options?: { readonly context?: number },
|
||||
) => Effect.Effect<readonly FileDiff.Info[]>
|
||||
readonly diff: (mode: Mode, options: DiffOptions) => Effect.Effect<readonly FileDiff.Info[]>
|
||||
}
|
||||
|
||||
export interface Backend {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue