fix(git): forward status mode to runtimes (#1153)

Co-authored-by: Isaac Sanchez <isanchez-hawkins@arize.com>
This commit is contained in:
Isaac Sanchez-Hawkins
2026-05-08 15:57:25 +03:00
committed by GitHub
co-authored by Isaac Sanchez
parent 14c0bfe0bc
commit 28f7a52ec8
5 changed files with 63 additions and 6 deletions
+8 -1
View File
@@ -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) {