Skip to content

Commit 57e826a

Browse files
committed
show "Set variable name" when not set
1 parent 684e765 commit 57e826a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/notebooks/deepnote/deepnoteInputBlockCellStatusBarProvider.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,8 +582,10 @@ export class DeepnoteInputBlockCellStatusBarItemProvider
582582
private createVariableStatusBarItem(cell: NotebookCell): NotebookCellStatusBarItem {
583583
const variableName = this.getVariableName(cell);
584584

585+
const text = variableName ? l10n.t('Variable: {0}', variableName) : l10n.t('$(edit) Set variable name');
586+
585587
return {
586-
text: l10n.t('Variable: {0}', variableName),
588+
text,
587589
alignment: 1, // NotebookCellStatusBarAlignment.Left
588590
priority: 90,
589591
tooltip: l10n.t('Variable name for input block\nClick to change'),

0 commit comments

Comments
 (0)