import { Disposable } from "../../../../base/common/lifecycle.js"; import { IContextKeyService } from "../../../../platform/contextkey/common/contextkey.service.js"; import { IExtensionService } from "../../../services/extensions/common/extensions.service.js"; import { IWorkbenchContribution } from "../../../common/contributions.js"; /** * Prefix for the per-extension when-clause context keys that report whether an * extension is installed and enabled. The full key is * `extensionEnabled:`, e.g. `extensionEnabled:ms-python.python`. * * Because context keys are matched by exact string, the extension id is always * lowercased. When clauses must therefore use the lowercased id (for example * `extensionEnabled:github.copilot`, not `extensionEnabled:GitHub.copilot`). */ export declare const EXTENSION_ENABLED_CONTEXT_KEY_PREFIX = "extensionEnabled:"; /** * Mirrors the set of installed and enabled extensions into context keys so that * `when` clauses can gate on the presence of another extension without having to * activate it. A key `extensionEnabled:` is `true` while the extension is * registered (installed and enabled) and `false` once it is removed (uninstalled * or disabled). */ export declare class ExtensionEnablementContextKeysContribution extends Disposable implements IWorkbenchContribution { private readonly contextKeyService; private readonly extensionService; private readonly _contextKeys; constructor(contextKeyService: IContextKeyService, extensionService: IExtensionService); private _reconcile; }