Skip to content

Commit 925c92f

Browse files
committed
fix: Reformat file
Signed-off-by: Tomas Kislan <[email protected]>
1 parent fa3ee5e commit 925c92f

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

src/notebooks/controllers/vscodeNotebookController.ts

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -297,8 +297,12 @@ export class VSCodeNotebookController implements Disposable, IVSCodeNotebookCont
297297

298298
logger.info(
299299
`Updating controller ${this.id} connection. Changed: ${hasChanged}. ` +
300-
`Old interpreter: ${oldConnection.interpreter ? getDisplayPath(oldConnection.interpreter.uri) : 'none'}, ` +
301-
`New interpreter: ${kernelConnection.interpreter ? getDisplayPath(kernelConnection.interpreter.uri) : 'none'}`
300+
`Old interpreter: ${
301+
oldConnection.interpreter ? getDisplayPath(oldConnection.interpreter.uri) : 'none'
302+
}, ` +
303+
`New interpreter: ${
304+
kernelConnection.interpreter ? getDisplayPath(kernelConnection.interpreter.uri) : 'none'
305+
}`
302306
);
303307

304308
// Update the stored connection metadata
@@ -316,11 +320,13 @@ export class VSCodeNotebookController implements Disposable, IVSCodeNotebookCont
316320

317321
// Dispose any existing kernels using the old connection for all associated notebooks
318322
// This forces a fresh kernel connection when cells are next executed
319-
const notebooksToUpdate = workspace.notebookDocuments.filter(doc => this.associatedDocuments.has(doc));
320-
notebooksToUpdate.forEach(notebook => {
323+
const notebooksToUpdate = workspace.notebookDocuments.filter((doc) => this.associatedDocuments.has(doc));
324+
notebooksToUpdate.forEach((notebook) => {
321325
const existingKernel = this.kernelProvider.get(notebook);
322326
if (existingKernel) {
323-
logger.info(`Disposing old kernel for notebook ${getDisplayPath(notebook.uri)} due to connection update`);
327+
logger.info(
328+
`Disposing old kernel for notebook ${getDisplayPath(notebook.uri)} due to connection update`
329+
);
324330
existingKernel.dispose().catch(noop);
325331
}
326332
});

0 commit comments

Comments
 (0)