File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import { displayJobLog } from "./jobLog";
7
7
import { ServerTraceDest , ServerTraceLevel } from "../../connection/types" ;
8
8
import { ServerComponent } from "../../connection/serverComponent" ;
9
9
import { updateStatusBar } from "./statusBar" ;
10
- import { TransactionEndType } from "../../connection/sqlJob" ;
10
+ import { SQLJob , TransactionEndType } from "../../connection/sqlJob" ;
11
11
import { ConfigGroup , ConfigManager } from "./ConfigManager" ;
12
12
13
13
const selectJobCommand = `vscode-db2i.jobManager.selectJob` ;
@@ -25,11 +25,11 @@ export class JobManagerView implements TreeDataProvider<any> {
25
25
26
26
...ConfigManager . initialiseSaveCommands ( ) ,
27
27
28
- vscode . commands . registerCommand ( `vscode-db2i.jobManager.newJob` , async ( ) => {
28
+ vscode . commands . registerCommand ( `vscode-db2i.jobManager.newJob` , async ( predefinedJob ?: SQLJob , name ?: string ) => {
29
29
await window . withProgress ( { location : ProgressLocation . Window } , async ( progress ) => {
30
30
try {
31
31
progress . report ( { message : `Spinning up SQL job...` } ) ;
32
- await JobManager . newJob ( ) ;
32
+ await JobManager . newJob ( predefinedJob , name ) ;
33
33
} catch ( e ) {
34
34
window . showErrorMessage ( e . message ) ;
35
35
}
You can’t perform that action at this time.
0 commit comments