import { IDisposable } from "../../../../../../base/common/lifecycle.js"; import { MenuItemAction } from "../../../../../../platform/actions/common/actions.js"; import { IActionWidgetService } from "../../../../../../platform/actionWidget/browser/actionWidget.service.js"; import { IContextKeyService } from "../../../../../../platform/contextkey/common/contextkey.service.js"; import { IHoverService } from "../../../../../../platform/hover/browser/hover.service.js"; import { IKeybindingService } from "../../../../../../platform/keybinding/common/keybinding.service.js"; import { IStorageService } from "../../../../../../platform/storage/common/storage.service.js"; import { ITelemetryService } from "../../../../../../platform/telemetry/common/telemetry.service.js"; import { IWorkspaceContextService } from "../../../../../../platform/workspace/common/workspace.service.js"; import { ISCMService } from "../../../../scm/common/scm.service.js"; import type { IChatWidget } from "../../chat.js"; import { ChatInputPickerActionViewItem, IChatInputPickerOptions } from "../../widget/input/chatInputPickerActionItem.js"; import { IAgentHostNewSessionFolderService } from "./agentHostNewSessionFolderService.service.js"; import { IAgentHostCustomizationService } from "./agentHostCustomizationService.service.js"; /** * Folder picker for agent-host sessions in multi-root windows. An agent-host * session runs in a single working directory chosen at creation time, so before * the session starts this chip lets the user pick which root folder the session * will run in. The choice is recorded in {@link IAgentHostNewSessionFolderService}, * keyed by the (untitled) chat session resource, where the working-directory * resolution sites pick it up. Once the session has started its working * directory is fixed, so the chip stays visible (showing the chosen folder) * but is disabled via the action's precondition. */ export declare class AgentHostFolderPickerActionItem extends ChatInputPickerActionViewItem { private readonly _widget; private readonly _workspaceContextService; private readonly _newSessionFolderService; private readonly _customizationService; private readonly _scmService; private readonly _hoverService; private _hoverSetup; constructor(action: MenuItemAction, _widget: IChatWidget, pickerOptions: IChatInputPickerOptions, actionWidgetService: IActionWidgetService, keybindingService: IKeybindingService, contextKeyService: IContextKeyService, telemetryService: ITelemetryService, _workspaceContextService: IWorkspaceContextService, _newSessionFolderService: IAgentHostNewSessionFolderService, _customizationService: IAgentHostCustomizationService, _scmService: ISCMService, _hoverService: IHoverService, storageService: IStorageService); private _sessionResource; private _selectedFolder; protected renderLabel(element: HTMLElement): IDisposable | null; render(container: HTMLElement): void; /** * Builds the hover content for the folder chip: the full folder path and, * when the folder maps to a git repository, the current branch name. * Returns `undefined` when no folder is selected so no hover is shown. */ private _buildHoverContent; /** * Resolves the current git branch name for the given folder via the SCM * service, or `undefined` when the folder has no associated repository or * branch information. */ private _branchName; }