Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | 1x 1x 1x 1x 1x | import { container } from 'tsyringe';
import * as vscode from 'vscode';
import { ServiceToken } from '@src/services/tokens';
import { ISparqlConnectionRegistry } from '@src/languages/sparql/services';
import { IViewRouter } from '@src/views/webviews';
export const createSparqlConnection = {
id: 'mentor.command.createSparqlConnection',
handler: async () => {
const service = container.resolve<ISparqlConnectionRegistry>(ServiceToken.SparqlConnectionRegistry);
const connection = await service.createConnection();
const router = container.resolve<IViewRouter>(ServiceToken.WebviewRouter);
await router.open({ kind: 'settings', section: 'query.connections', params: { connection } }, vscode.ViewColumn.Active);
}
};
|