File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/client/datascience/interactive-common Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1323,10 +1323,10 @@ export abstract class InteractiveBase extends WebViewHost<IInteractiveWindowMapp
1323
1323
await this . switchKernelWithRetry ( kernel ) ;
1324
1324
}
1325
1325
}
1326
- private async switchKernelWithRetry ( kernel : KernelSpecInterpreter ) {
1326
+ private async switchKernelWithRetry ( kernel : KernelSpecInterpreter ) {
1327
1327
const settings = this . configuration . getSettings ( ) ;
1328
1328
const isLocalConnection = this . notebook ?. server . getConnectionInfo ( ) ?. localLaunch ?? settings . datascience . jupyterServerURI . toLowerCase ( ) === Settings . JupyterServerLocalLaunch ;
1329
- if ( ! isLocalConnection ) {
1329
+ if ( ! isLocalConnection ) {
1330
1330
return this . switchKernel ( kernel ) ;
1331
1331
}
1332
1332
@@ -1337,6 +1337,7 @@ export abstract class InteractiveBase extends WebViewHost<IInteractiveWindowMapp
1337
1337
while ( true ) {
1338
1338
try {
1339
1339
await this . switchKernel ( kernel ) ;
1340
+ break ;
1340
1341
} catch ( ex ) {
1341
1342
if ( ex instanceof JupyterSessionStartError && isLocalConnection ) {
1342
1343
// Looks like we were unable to start a session for the local connection.
@@ -1349,7 +1350,7 @@ export abstract class InteractiveBase extends WebViewHost<IInteractiveWindowMapp
1349
1350
const selection = await this . applicationShell . showErrorMessage ( message , selectKernel , cancel ) ;
1350
1351
if ( selection === selectKernel ) {
1351
1352
kernel = await this . dataScience . selectLocalJupyterKernel ( kernel . kernelSpec || kernel . kernelModel ) ;
1352
- if ( Object . keys ( kernel ) . length > 0 ) {
1353
+ if ( Object . keys ( kernel ) . length > 0 ) {
1353
1354
continue ;
1354
1355
}
1355
1356
}
You can’t perform that action at this time.
0 commit comments