Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { getInstance, loadBase } from "./base";
import { JobManager, initConfig, onConnectOrServerInstall } from "./config";
import Configuration from "./configuration";
import { SQLJobManager } from "./connection/manager";
import {SQLStatementChecker} from "./connection/syntaxChecker";
import { ServerComponent } from "./connection/serverComponent";
import { OldSQLJob } from "./connection/sqlJob";
import { languageInit } from "./language/providers";
Expand All @@ -29,6 +30,7 @@ import { setCheckerAvailableContext } from "./language/providers/problemProvider

export interface Db2i {
sqlJobManager: SQLJobManager,
SQLStatementChecker: SQLStatementChecker,
sqlJob: (options?: JDBCOptions) => OldSQLJob
}

Expand Down Expand Up @@ -121,7 +123,8 @@ export function activate(context: vscode.ExtensionContext): Db2i {

instance.subscribe(context, `disconnected`, `db2i-disconnected`, () => ServerComponent.reset());

return { sqlJobManager: JobManager, sqlJob: (options?: JDBCOptions) => new OldSQLJob(options) };
return { sqlJobManager: JobManager, sqlJob: (options?: JDBCOptions) => new OldSQLJob(options), SQLStatementChecker: new SQLStatementChecker() };

}

// this method is called when your extension is deactivated
Expand Down