Skip to content

Commit a898a5c

Browse files
committed
Add additional info to hover for naming info
Signed-off-by: worksofliam <[email protected]>
1 parent 59ae5bf commit a898a5c

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/views/jobManager/statusBar.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export async function updateStatusBar(options: {newJob?: boolean, canceling?: bo
1414

1515
let text;
1616
let backgroundColour: ThemeColor|undefined = undefined;
17-
let toolTipItems = [];
17+
let toolTipItems: string[] = [];
1818

1919
if (options.executing) {
2020
text = `$(sync~spin) Executing...`;
@@ -31,6 +31,18 @@ export async function updateStatusBar(options: {newJob?: boolean, canceling?: bo
3131
if (selected) {
3232
text = `$(database) ${selected.name}`;
3333

34+
const job = selected.job;
35+
36+
if (job.getNaming() === `sql`) {
37+
toolTipItems.push(`SQL Naming. Current schema: \`${await job.getCurrentSchema()}\``);
38+
} else {
39+
toolTipItems.push([
40+
`System Naming. Library list:`,
41+
``,
42+
...job.options.libraries.map((lib, i) => `${i+1}. \`${lib}\``)
43+
].join(`\n`));
44+
}
45+
3446
if (selected.job.underCommitControl()) {
3547
const pendingsTracts = await selected.job.getPendingTransactions();
3648
if (pendingsTracts > 0) {

0 commit comments

Comments
 (0)