File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
src/client/datascience/jupyter/liveshare Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -158,10 +158,16 @@ export class HostJupyterServer extends LiveShareParticipantHost(JupyterServerBas
158
158
// Otherwise create a new notebook.
159
159
160
160
// First we need our launch information so we can start a new session (that's what our notebook is really)
161
- const launchInfo = await this . waitForConnect ( ) ;
161
+ let launchInfo = await this . waitForConnect ( ) ;
162
162
if ( ! launchInfo ) {
163
163
throw this . getDisposedError ( ) ;
164
164
}
165
+ // Create a copy of launch info, cuz we're modifying it here.
166
+ // This launch info contains the server connection info (that could be shared across other nbs).
167
+ // However the kernel info is different. The kernel info is stored as a property of this, hence create a separate instance for each nb.
168
+ launchInfo = {
169
+ ...launchInfo
170
+ } ;
165
171
166
172
// Find a kernel that can be used.
167
173
// Do this only if kernel information has been provided in the metadata, else use the default.
You can’t perform that action at this time.
0 commit comments