Reduce source-control background load during refreshes (#6189)
Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
@@ -23,6 +23,7 @@ import {
|
||||
type ResolvedSourceControlAiGenerationParams
|
||||
} from '../../shared/source-control-ai'
|
||||
import type { SourceControlAiOperation } from '../../shared/source-control-ai-types'
|
||||
import type { GitProviderStatusOptions } from '../providers/types'
|
||||
import { getRemoteCommitUrl, getRemoteFileUrl } from '../git/repo'
|
||||
import {
|
||||
abortMerge,
|
||||
@@ -164,7 +165,7 @@ export class RuntimeGitCommands {
|
||||
|
||||
async getRuntimeGitStatus(
|
||||
worktreeSelector: string,
|
||||
options?: { includeIgnored?: boolean }
|
||||
options?: GitProviderStatusOptions
|
||||
): Promise<GitStatusResult> {
|
||||
const target = await this.host.resolveRuntimeGitTarget(worktreeSelector)
|
||||
const provider = target.connectionId ? getSshGitProvider(target.connectionId) : null
|
||||
|
||||
Reference in New Issue
Block a user