File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,10 @@ export class SQLJobManager {
78
78
return this . jobs [ this . selectedJob ] ;
79
79
}
80
80
81
+ getAllJobs ( ) : JobInfo [ ] {
82
+ return this . jobs ;
83
+ }
84
+
81
85
getJob ( name : string ) : JobInfo | undefined {
82
86
return this . jobs . find ( info => info . name === name ) ;
83
87
}
@@ -114,7 +118,7 @@ export class SQLJobManager {
114
118
const selected = this . jobs [ this . selectedJob ]
115
119
if ( ServerComponent . isInstalled ( ) && selected ) {
116
120
return selected . job . query < T > ( query , opts ) ;
117
-
121
+
118
122
} else if ( ! ServerComponent . isInstalled ( ) ) {
119
123
let updateResult = await ServerComponent . checkForUpdate ( ) ;
120
124
if ( UpdateStatus . JUST_UPDATED === updateResult ) {
Original file line number Diff line number Diff line change @@ -14,9 +14,12 @@ import { initialise } from "./testing";
14
14
import { JobManagerView } from "./views/jobManager/jobManagerView" ;
15
15
import { ServerComponent } from "./connection/serverComponent" ;
16
16
import { SQLJobManager } from "./connection/manager" ;
17
+ import { JDBCOptions } from "./connection/types" ;
18
+ import { SQLJob } from "./connection/sqlJob" ;
17
19
18
20
export interface Db2i {
19
- sqlJobManager : SQLJobManager
21
+ sqlJobManager : SQLJobManager ,
22
+ sqlJob : ( options ?: JDBCOptions ) => SQLJob
20
23
}
21
24
22
25
// this method is called when your extension is activated
@@ -61,7 +64,7 @@ export function activate(context: vscode.ExtensionContext): Db2i {
61
64
initialise ( context ) ;
62
65
}
63
66
64
- return { sqlJobManager : JobManager } ;
67
+ return { sqlJobManager : JobManager , sqlJob : ( options ?: JDBCOptions ) => new SQLJob ( options ) } ;
65
68
}
66
69
67
70
// this method is called when your extension is deactivated
You can’t perform that action at this time.
0 commit comments