Skip to content

Commit 0819fb0

Browse files
committed
use absolute value literal due to unavailable import (?)
1 parent 7ed538e commit 0819fb0

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/notebooks/deepnote/sqlCellStatusBarProvider.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import {
22
CancellationToken,
33
EventEmitter,
44
NotebookCell,
5-
NotebookCellStatusBarAlignment,
65
NotebookCellStatusBarItem,
76
NotebookCellStatusBarItemProvider,
87
NotebookDocument,
@@ -98,7 +97,7 @@ export class SqlCellStatusBarProvider implements NotebookCellStatusBarItemProvid
9897
const displayName = config?.name || integrationId;
9998

10099
// Create a status bar item that opens the integration management UI
101-
const item = new NotebookCellStatusBarItem(`$(database) ${displayName}`, NotebookCellStatusBarAlignment.Left);
100+
const item = new NotebookCellStatusBarItem(`$(database) ${displayName}`, 1); // NotebookCellStatusBarAlignment.Left (undefined for some reason)
102101
item.tooltip = l10n.t('SQL Integration: {0}\nClick to configure', displayName);
103102
item.command = {
104103
title: l10n.t('Configure Integration'),

src/notebooks/deepnote/sqlCellStatusBarProvider.unit.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import {
55
CancellationTokenSource,
66
NotebookCell,
77
NotebookCellKind,
8-
NotebookCellStatusBarAlignment,
98
NotebookDocument,
109
TextDocument,
1110
Uri
@@ -84,7 +83,7 @@ suite('SqlCellStatusBarProvider', () => {
8483

8584
assert.isDefined(result);
8685
assert.strictEqual((result as any).text, '$(database) My Postgres DB');
87-
assert.strictEqual((result as any).alignment, NotebookCellStatusBarAlignment.Left);
86+
assert.strictEqual((result as any).alignment, 1); // NotebookCellStatusBarAlignment.Left
8887
assert.isDefined((result as any).command);
8988
assert.strictEqual((result as any).command.command, 'deepnote.manageIntegrations');
9089
assert.deepStrictEqual((result as any).command.arguments, [integrationId]);

0 commit comments

Comments
 (0)