import type { Client } from '@openctx/client' import type * as vscode from 'vscode' type OpenCtxClient = Pick, 'meta' | 'mentions' | 'items'> class OpenCtx { constructor(public client: OpenCtxClient | undefined) {} } export const openCtx = new OpenCtx(undefined) /** * Set the handle to the OpenCtx client. */ export function setOpenCtxClient(client: OpenCtxClient): void { openCtx.client = client } export const REMOTE_REPOSITORY_PROVIDER_URI = 'internal-remote-repository-search' export const REMOTE_FILE_PROVIDER_URI = 'internal-remote-file-search' export const WEB_PROVIDER_URI = 'internal-web-provider' export const GIT_OPENCTX_PROVIDER_URI = 'internal-git-openctx-provider'