Skip to content

Commit 65400a1

Browse files
committed
re-add check for isDisposed
1 parent df628fc commit 65400a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/contrib/tasks/browser/terminalTaskSystem.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1327,7 +1327,7 @@ export class TerminalTaskSystem extends Disposable implements ITaskSystem {
13271327
return;
13281328
}
13291329
this._reconnectedTerminals = [];
1330-
for (const terminal of this._terminalService.getReconnectedTerminals(ReconnectionType) || []) {
1330+
for (const terminal of this._terminalService.getReconnectedTerminals(ReconnectionType)?.filter(t => !t.isDisposed) || []) {
13311331
const reconnectionData = terminal.shellLaunchConfig.attachPersistentProcess?.reconnectionProperties?.data as IReconnectionTaskData;
13321332
if (reconnectionData) {
13331333
this._reconnectedTerminals.push({ ...terminal, reconnectionData });

0 commit comments

Comments
 (0)