@@ -2,10 +2,12 @@ import {
22 CancellationToken ,
33 EventEmitter ,
44 NotebookCell ,
5+ NotebookCellStatusBarAlignment ,
56 NotebookCellStatusBarItem ,
67 NotebookCellStatusBarItemProvider ,
78 NotebookDocument ,
89 ProviderResult ,
10+ l10n ,
911 notebooks
1012} from 'vscode' ;
1113import { inject , injectable } from 'inversify' ;
@@ -96,15 +98,13 @@ export class SqlCellStatusBarProvider implements NotebookCellStatusBarItemProvid
9698 const displayName = config ?. name || integrationId ;
9799
98100 // Create a status bar item that opens the integration management UI
99- return {
100- text : `$(database) ${ displayName } ` ,
101- alignment : 1 , // NotebookCellStatusBarAlignment.Left
102- tooltip : `SQL Integration: ${ displayName } \nClick to configure` ,
103- command : {
104- title : 'Configure Integration' ,
105- command : Commands . ManageIntegrations ,
106- arguments : [ integrationId ]
107- }
101+ const item = new NotebookCellStatusBarItem ( `$(database) ${ displayName } ` , NotebookCellStatusBarAlignment . Left ) ;
102+ item . tooltip = l10n . t ( 'SQL Integration: {0}\nClick to configure' , displayName ) ;
103+ item . command = {
104+ title : l10n . t ( 'Configure Integration' ) ,
105+ command : Commands . ManageIntegrations ,
106+ arguments : [ integrationId ]
108107 } ;
108+ return item ;
109109 }
110110}
0 commit comments