Skip to content

Commit 97eb3ad

Browse files
committed
use absolute value literal due to unavailable import (?)
1 parent c008e58 commit 97eb3ad

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/notebooks/deepnote/sqlCellStatusBarProvider.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import {
66
NotebookCellStatusBarItemProvider,
77
NotebookDocument,
88
ProviderResult,
9+
l10n,
910
notebooks
1011
} from 'vscode';
1112
import { inject, injectable } from 'inversify';
@@ -99,9 +100,9 @@ export class SqlCellStatusBarProvider implements NotebookCellStatusBarItemProvid
99100
return {
100101
text: `$(database) ${displayName}`,
101102
alignment: 1, // NotebookCellStatusBarAlignment.Left
102-
tooltip: `SQL Integration: ${displayName}\nClick to configure`,
103+
tooltip: l10n.t('SQL Integration: {0}\nClick to configure', displayName),
103104
command: {
104-
title: 'Configure Integration',
105+
title: l10n.t('Configure Integration'),
105106
command: Commands.ManageIntegrations,
106107
arguments: [integrationId]
107108
}

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)