543
const diffs = await this._computeUncommittedDiffs(session);
544
if (diffs === undefined) {
546
>
// tree, or the git command returned nothing). Surface as
547
>
// Error rather than preserving cached state — no SDK
548
>
// edit-tracker fallback exists for the uncommitted slot.
549
>
this._stateManager.dispatchServerAction(uncommittedUri, {
550
>
type: ActionType.ChangesetStatusChanged,
551
>
status: ChangesetStatus.Error,
552
>
error: { errorType: 'computeFailed', message: 'Failed to compute uncommitted diff from git.' },
553
>
});
554
>
return uncommittedUri;
555
>
}
556
557
this._publishChangesetDiffs(session, uncommittedUri, diffs);