Skip to content

Commit d484c80

Browse files
add parms to newJob command
Signed-off-by: Sanjula Ganepola <[email protected]>
1 parent 1d1d4c3 commit d484c80

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/views/jobManager/jobManagerView.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { displayJobLog } from "./jobLog";
77
import { ServerTraceDest, ServerTraceLevel } from "../../connection/types";
88
import { ServerComponent } from "../../connection/serverComponent";
99
import { updateStatusBar } from "./statusBar";
10-
import { TransactionEndType } from "../../connection/sqlJob";
10+
import { SQLJob, TransactionEndType } from "../../connection/sqlJob";
1111
import { ConfigGroup, ConfigManager } from "./ConfigManager";
1212

1313
const selectJobCommand = `vscode-db2i.jobManager.selectJob`;
@@ -25,11 +25,11 @@ export class JobManagerView implements TreeDataProvider<any> {
2525

2626
...ConfigManager.initialiseSaveCommands(),
2727

28-
vscode.commands.registerCommand(`vscode-db2i.jobManager.newJob`, async () => {
28+
vscode.commands.registerCommand(`vscode-db2i.jobManager.newJob`, async (predefinedJob?: SQLJob, name?: string) => {
2929
await window.withProgress({ location: ProgressLocation.Window }, async (progress) => {
3030
try {
3131
progress.report({ message: `Spinning up SQL job...` });
32-
await JobManager.newJob();
32+
await JobManager.newJob(predefinedJob, name);
3333
} catch (e) {
3434
window.showErrorMessage(e.message);
3535
}

0 commit comments

Comments
 (0)