File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
src/vs/workbench/contrib/tasks/browser Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -1340,12 +1340,7 @@ export class TerminalTaskSystem extends Disposable implements ITaskSystem {
13401340 this . _logService . trace ( `No terminals to reconnect to so returning` ) ;
13411341 } else {
13421342 for ( const terminal of this . _reconnectedTerminals ) {
1343- const task = terminal . shellLaunchConfig . attachPersistentProcess ?. reconnectionProperties ?. data as IReconnectionTaskData ;
1344- this . _logService . trace ( `Reconnecting to task: ${ JSON . stringify ( task ) } ` ) ;
1345- if ( ! task ) {
1346- continue ;
1347- }
1348- const terminalData = { lastTask : task . lastTask , group : task . group , terminal } ;
1343+ const terminalData = { lastTask : terminal . reconnectionData . lastTask , group : terminal . reconnectionData . group , terminal } ;
13491344 this . _terminals [ terminal . instanceId ] = terminalData ;
13501345 }
13511346 }
You can’t perform that action at this time.
0 commit comments