Skip to content

Commit 52ac99f

Browse files
committed
add priority option to all sql cell status bar items
1 parent 087189d commit 52ac99f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/notebooks/deepnote/sqlCellStatusBarProvider.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ export class SqlCellStatusBarProvider implements NotebookCellStatusBarItemProvid
118118
items.push({
119119
text: `$(database) ${l10n.t('No integration connected')}`,
120120
alignment: 1, // NotebookCellStatusBarAlignment.Left
121+
priority: 100,
121122
tooltip: l10n.t('No SQL integration connected\nClick to select an integration'),
122123
command: {
123124
title: l10n.t('Switch Integration'),
@@ -142,6 +143,7 @@ export class SqlCellStatusBarProvider implements NotebookCellStatusBarItemProvid
142143
return {
143144
text: `$(database) ${l10n.t('DataFrame SQL (DuckDB)')}`,
144145
alignment: 1, // NotebookCellStatusBarAlignment.Left
146+
priority: 100,
145147
tooltip: l10n.t('Internal DuckDB integration for querying DataFrames\nClick to switch'),
146148
command: {
147149
title: l10n.t('Switch Integration'),
@@ -164,6 +166,7 @@ export class SqlCellStatusBarProvider implements NotebookCellStatusBarItemProvid
164166
return {
165167
text: `$(database) ${displayName}`,
166168
alignment: 1, // NotebookCellStatusBarAlignment.Left
169+
priority: 100,
167170
tooltip: l10n.t('SQL Integration: {0}\nClick to switch or configure', displayName),
168171
command: {
169172
title: l10n.t('Switch Integration'),
@@ -179,6 +182,7 @@ export class SqlCellStatusBarProvider implements NotebookCellStatusBarItemProvid
179182
return {
180183
text: l10n.t('Variable: {0}', variableName),
181184
alignment: 1, // NotebookCellStatusBarAlignment.Left
185+
priority: 90,
182186
tooltip: l10n.t('Variable name for SQL query result\nClick to change'),
183187
command: {
184188
title: l10n.t('Change Variable Name'),

0 commit comments

Comments
 (0)