Git - expose untracked changes group (#216414)

This commit is contained in:
Ladislau Szomoru 2024-06-18 10:59:53 +02:00 committed by GitHub
parent f388d52dc7
commit a8e00a00dd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View file

@ -44,6 +44,7 @@ export class ApiRepositoryState implements RepositoryState {
get mergeChanges(): Change[] { return this._repository.mergeGroup.resourceStates.map(r => new ApiChange(r)); }
get indexChanges(): Change[] { return this._repository.indexGroup.resourceStates.map(r => new ApiChange(r)); }
get workingTreeChanges(): Change[] { return this._repository.workingTreeGroup.resourceStates.map(r => new ApiChange(r)); }
get untrackedChanges(): Change[] { return this._repository.untrackedGroup.resourceStates.map(r => new ApiChange(r)); }
readonly onDidChange: Event<void> = this._repository.onDidRunGitStatus;

View file

@ -122,6 +122,7 @@ export interface RepositoryState {
readonly mergeChanges: Change[];
readonly indexChanges: Change[];
readonly workingTreeChanges: Change[];
readonly untrackedChanges: Change[];
readonly onDidChange: Event<void>;
}