fix(git): forward status mode to runtimes (#1153)
Co-authored-by: Isaac Sanchez <isanchez-hawkins@arize.com>
This commit is contained in:
committed by
GitHub
co-authored by
Isaac Sanchez
parent
14c0bfe0bc
commit
28f7a52ec8
@@ -342,6 +342,10 @@ export interface GitStatusResult {
|
||||
rebaseInProgress?: GitRebaseInProgress | null;
|
||||
}
|
||||
|
||||
type GitStatusOptions = {
|
||||
mode?: 'light';
|
||||
};
|
||||
|
||||
/**
|
||||
* Map VS Code git status to our status codes
|
||||
*/
|
||||
@@ -374,7 +378,10 @@ function mapStatus(status: Status): string {
|
||||
/**
|
||||
* Get git status for a directory
|
||||
*/
|
||||
export async function getGitStatus(directory: string): Promise<GitStatusResult> {
|
||||
export async function getGitStatus(directory: string, options?: GitStatusOptions): Promise<GitStatusResult> {
|
||||
// The VS Code Git API path does not compute heavyweight diff stats today,
|
||||
// but accepts the shared options contract so callers can rely on parity.
|
||||
void options;
|
||||
const repo = await getRepository(directory);
|
||||
|
||||
if (!repo) {
|
||||
|
||||
Reference in New Issue
Block a user