testing: fix clear results leaving progress text

Fixes #129763
This commit is contained in:
Connor Peet
2021-08-03 16:34:51 -07:00
parent 14cb70fbde
commit 04dcda4b3b
2 changed files with 5 additions and 1 deletions
@@ -133,9 +133,10 @@ export class TestingExplorerView extends ViewPane {
const messagesContainer = dom.append(this.treeHeader, dom.$('.test-explorer-messages'));
this._register(this.testProgressService.onTextChange(text => {
const hadText = !!messagesContainer.innerText;
const hasText = !!text;
messagesContainer.innerText = text;
if (!hadText) {
if (hadText !== hasText) {
this.layoutBody();
}
}));
@@ -60,6 +60,9 @@ export class TestingProgressUiService extends Disposable implements ITestingProg
const collected = collectTestStateCounts(false, allResults[0].counts);
this.updateCountsEmitter.fire(collected);
this.updateTextEmitter.fire(getTestProgressText(false, collected));
} else {
this.updateTextEmitter.fire('');
this.updateCountsEmitter.fire(collectTestStateCounts(false));
}
this.current.clear();