Skip to content

Conversation

@MonikaSingh274
Copy link

Exporting SQLStatementChecker to use ValidateSaqlStatement

@SanjulaGanepola SanjulaGanepola self-requested a review December 22, 2025 22:12
@SanjulaGanepola
Copy link
Member

@MonikaSingh274 Can you meet with Venkata to discuss this one. I shared some code with him where you can access the component without us having to export it from here. For reference, something like:

const componentRegistry = getComponentRegistry();
if (componentRegistry) {
	const components = componentRegistry.getComponents();
	const db2iComponents = components.get(`halcyontechltd.vscode-db2i`);
	if (db2iComponents) {
		const sqlSyntaxChecker: any = db2iComponents.find(component => component.getIdentification().name === 'SQLStatementChecker');
		const result = await sqlSyntaxChecker.call('select * from sample.employee');
		console.log(result);
	}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants