We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df628fc commit 65400a1Copy full SHA for 65400a1
src/vs/workbench/contrib/tasks/browser/terminalTaskSystem.ts
@@ -1327,7 +1327,7 @@ export class TerminalTaskSystem extends Disposable implements ITaskSystem {
1327
return;
1328
}
1329
this._reconnectedTerminals = [];
1330
- for (const terminal of this._terminalService.getReconnectedTerminals(ReconnectionType) || []) {
+ for (const terminal of this._terminalService.getReconnectedTerminals(ReconnectionType)?.filter(t => !t.isDisposed) || []) {
1331
const reconnectionData = terminal.shellLaunchConfig.attachPersistentProcess?.reconnectionProperties?.data as IReconnectionTaskData;
1332
if (reconnectionData) {
1333
this._reconnectedTerminals.push({ ...terminal, reconnectionData });
0 commit comments