Skip to content

Commit 0f3a6e7

Browse files
committed
refactor: Minor changes
Signed-off-by: Tomas Kislan <[email protected]>
1 parent 7e32a8b commit 0f3a6e7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/kernels/deepnote/environments/deepnoteEnvironmentTreeItem.node.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,12 @@ export class DeepnoteEnvironmentTreeItem extends TreeItem {
9191
return '';
9292
}
9393

94+
const { text } = getDeepnoteEnvironmentStatusVisual(this.status ?? EnvironmentStatus.Stopped);
95+
9496
const lines: string[] = [];
9597
lines.push(`**${this.environment.name}**`);
9698
lines.push('');
97-
lines.push(l10n.t('Status: {0}', this.status ?? l10n.t('Unknown')));
99+
lines.push(l10n.t('Status: {0}', text));
98100
lines.push(l10n.t('Python: {0}', this.environment.pythonInterpreter.uri.toString(true)));
99101
lines.push(l10n.t('Venv: {0}', this.environment.venvPath.toString(true)));
100102

src/kernels/deepnote/environments/deepnoteEnvironmentsView.node.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ export class DeepnoteEnvironmentsView implements Disposable {
610610
);
611611

612612
// Force rebuild the controller with the new environment
613-
// This will dispose the old controller, clear cached metadata, and create a fresh controller
613+
// This clears cached metadata and creates a fresh controller.
614614
await this.kernelAutoSelector.rebuildController(activeNotebook);
615615

616616
logger.info(`Successfully switched to environment ${selected.environmentId}`);

0 commit comments

Comments
 (0)