From 46398dddc73a95b406a1805cb342cfcdd9eb9558 Mon Sep 17 00:00:00 2001 From: Monika Singh Date: Mon, 8 Dec 2025 16:04:54 +0530 Subject: [PATCH] Exporting SQLStatementChecker --- src/extension.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/extension.ts b/src/extension.ts index 219b0a39..bb298ad8 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -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"; @@ -29,6 +30,7 @@ import { setCheckerAvailableContext } from "./language/providers/problemProvider export interface Db2i { sqlJobManager: SQLJobManager, + SQLStatementChecker: SQLStatementChecker, sqlJob: (options?: JDBCOptions) => OldSQLJob } @@ -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