File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1195,6 +1195,10 @@ export default class IBMi {
11951195 return this . sqlJob !== undefined ;
11961196 }
11971197
1198+ public getSqlJobId ( ) {
1199+ return this . sqlJob ?. id ;
1200+ }
1201+
11981202 /**
11991203 * Generates path to a temp file on the IBM i
12001204 * @param {string } key Key to the temp file to be re-used
Original file line number Diff line number Diff line change @@ -115,6 +115,9 @@ async function updateConnectedBar() {
115115 const actionsMenuItem = systemReadOnly ? `` : `[$(file-binary) Actions](command:code-for-ibmi.environment.actions.focus)` ;
116116 const debugRunning = await isDebugEngineRunning ( ) ;
117117 const connectedBarItemTooltips : String [ ] = systemReadOnly ? [ `[System-wide read only](https://codefori.github.io/docs/settings/system/)` ] : [ ] ;
118+ const sqlJobId = connection . getSqlJobId ( ) ;
119+ const sqlJobInfo = sqlJobId ? `$(database) Job: ${ sqlJobId } ` : `$(database) Job: Not available` ;
120+
118121 connectedBarItemTooltips . push (
119122 `[$(settings-gear) Settings](command:code-for-ibmi.showAdditionalSettings)` ,
120123 terminalMenuItem ,
@@ -123,7 +126,8 @@ async function updateConnectedBar() {
123126 debugPTFInstalled ( connection ) ?
124127 `[$(${ debugRunning ? "bug" : "debug" } ) Debugger ${ ( ( await getDebugServiceDetails ( connection ) ) . version ) } (${ debugRunning ? "on" : "off" } )](command:ibmiDebugBrowser.focus)`
125128 :
126- `[$(debug) No debug PTF](https://codefori.github.io/docs/developing/debug/#required-ptfs)`
129+ `[$(debug) No debug PTF](https://codefori.github.io/docs/developing/debug/#required-ptfs)` ,
130+ sqlJobInfo
127131 ) ;
128132 connectedBarItem . tooltip = new vscode . MarkdownString ( connectedBarItemTooltips . join ( `\n\n---\n\n` ) , true ) ;
129133 connectedBarItem . tooltip . isTrusted = true ;
You can’t perform that action at this time.
0 commit comments