import { ExtensionKind } from "../../../../platform/environment/common/environment.js"; import { IExtensionManifest, IExtensionIdentifier, ExtensionUntrustedWorkspaceSupportType, ExtensionVirtualWorkspaceSupportType } from "../../../../platform/extensions/common/extensions.js"; export declare const IExtensionManifestPropertiesService: import("../../../../platform/instantiation/common/instantiation.js").ServiceIdentifier; export interface IExtensionManifestPropertiesService { readonly _serviceBrand: undefined; prefersExecuteOnUI(manifest: IExtensionManifest): boolean; prefersExecuteOnWorkspace(manifest: IExtensionManifest): boolean; prefersExecuteOnWeb(manifest: IExtensionManifest): boolean; canExecuteOnUI(manifest: IExtensionManifest): boolean; canExecuteOnWorkspace(manifest: IExtensionManifest): boolean; canExecuteOnWeb(manifest: IExtensionManifest): boolean; /** * Whether an extension supports the sessions window, so it runs there by default. Unless the user, the product, or * the author declares its support, a user extension supports the sessions window when it has no code and either * {@link EXTENSIONS_AGENTS_WINDOW_MANAGEMENT} is enabled or it only makes declarative contributions such as themes. */ canExecuteOnSessionsWindow(manifest: IExtensionManifest, isBuiltin?: boolean): boolean; /** * Whether an extension that doesn't support the sessions window can be enabled there automatically: it contributes * something that is useful in the sessions window and nothing that relies on features the sessions window lacks, * and neither its author nor the user has declared that it doesn't support the sessions window. */ canAutoEnableOnSessionsWindow(manifest: IExtensionManifest, isBuiltin?: boolean): boolean; /** * Whether {@link EXTENSIONS_AGENTS_WINDOW_AUTO_ENABLE} enables an extension that doesn't support the sessions window * there automatically: when the setting is `true` and the extension {@link canAutoEnableOnSessionsWindow can be * enabled automatically}, or when the setting lists the extension, even if it relies on features the sessions window * lacks. Built-in extensions and extensions that their author or the user declared unsupported are never enabled. */ shouldAutoEnableOnSessionsWindow(manifest: IExtensionManifest, isBuiltin?: boolean): boolean; getExtensionKind(manifest: IExtensionManifest): ExtensionKind[]; getUserConfiguredExtensionKind(extensionIdentifier: IExtensionIdentifier): ExtensionKind[] | undefined; getExtensionUntrustedWorkspaceSupportType(manifest: IExtensionManifest): ExtensionUntrustedWorkspaceSupportType; getExtensionVirtualWorkspaceSupportType(manifest: IExtensionManifest): ExtensionVirtualWorkspaceSupportType; }