Fix terminal isHot logic to take into account commands that finished running and could have affected diagnostics

This commit is contained in:
Saoud Rizwan
2024-09-14 16:32:27 -04:00
parent 3f783aaae5
commit 7a9088a2d3
2 changed files with 10 additions and 7 deletions

View File

@@ -377,10 +377,11 @@ export class TerminalProcess extends EventEmitter<TerminalProcessEvents> {
this.emitRemainingBufferIfListening()
if (this.hotTimer) {
clearTimeout(this.hotTimer)
}
this.isHot = false
// even though the command is finished, we still want to consider it 'hot' in case so that api request stalls to let diagnostics catch up
// if (this.hotTimer) {
// clearTimeout(this.hotTimer)
// }
// this.isHot = false
this.emit("completed")
this.emit("continue")