bug fixes and such, format

This commit is contained in:
Connor Peet
2024-05-09 11:31:51 -07:00
parent 41f6f5ad6e
commit 5447d0db10
19 changed files with 664 additions and 548 deletions

View File

@@ -56,7 +56,12 @@ export class FailureTracker {
const prev = this.lastFailed.get(key);
if (snapshot.taskStates.some(s => s.state === vscode.TestResultState.Failed)) {
// unset the parent to avoid a circular JSON structure:
getGitState().then(s => this.lastFailed.set(key, { snapshot: { ...snapshot, parent: undefined }, failing: s }));
getGitState().then(s =>
this.lastFailed.set(key, {
snapshot: { ...snapshot, parent: undefined },
failing: s,
})
);
} else if (prev) {
this.lastFailed.delete(key);
getGitState().then(s => this.append({ ...prev, passing: s }));