File tree 1 file changed +4
-2
lines changed
src/vs/workbench/contrib/terminal/browser
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -970,11 +970,13 @@ export function registerTerminalActions() {
970
970
const labelService = accessor . get ( ILabelService ) ;
971
971
const remoteAgentService = accessor . get ( IRemoteAgentService ) ;
972
972
const notificationService = accessor . get ( INotificationService ) ;
973
- const backend = accessor . get ( ITerminalInstanceService ) . getBackend ( ) ;
974
973
const terminalGroupService = accessor . get ( ITerminalGroupService ) ;
975
974
975
+ const remoteAuthority = remoteAgentService . getConnection ( ) ?. remoteAuthority ?? undefined ;
976
+ const backend = accessor . get ( ITerminalInstanceService ) . getBackend ( remoteAuthority ) ;
977
+
976
978
if ( ! backend ) {
977
- throw new Error ( `No backend registered for remote authority '${ remoteAgentService . getConnection ( ) ?. remoteAuthority ?? undefined } '` ) ;
979
+ throw new Error ( `No backend registered for remote authority '${ remoteAuthority } '` ) ;
978
980
}
979
981
980
982
const terms = await backend . listProcesses ( ) ;
You can’t perform that action at this time.
0 commit comments