import { IMouseWheelEvent } from "../../../../base/browser/mouseEvent.js"; import { Event } from "../../../../base/common/event.js"; import { IDisposable } from "../../../../base/common/lifecycle.js"; import { IObservable } from "../../../../base/common/observable.js"; import { ThemeIcon } from "../../../../base/common/themables.js"; import { URI } from "../../../../base/common/uri.js"; import { ICodeEditor } from "../../../../editor/browser/editorBrowser.js"; import { IPosition } from "../../../../editor/common/core/position.js"; import { IRange } from "../../../../editor/common/core/range.js"; import { Selection } from "../../../../editor/common/core/selection.js"; import { EditDeltaInfo } from "../../../../editor/common/textModelEditSource.js"; import { MenuId } from "../../../../platform/actions/common/actions.js"; import { RawContextKey } from "../../../../platform/contextkey/common/contextkey.js"; import { IContextKeyService } from "../../../../platform/contextkey/common/contextkey.service.js"; import type { IChatPillSection } from "../../../browser/chatPills.js"; import { IChatRequestVariableEntry } from "../common/attachments/chatVariableEntries.js"; import { IDynamicVariable } from "../common/attachments/chatVariables.js"; import { IChatAgentAttachmentCapabilities, IChatAgentCommand, IChatAgentData } from "../common/participants/chatAgents.js"; import { IChatResponseModel, IChatModelInputState } from "../common/model/chatModel.js"; import { IChatMode } from "../common/chatModes.js"; import { IParsedChatRequest } from "../common/requestParser/chatParserTypes.js"; import { IHandOff } from "../common/promptSyntax/promptFileParser.js"; import { ChatRequestQueueKind, IChatLocationData, IChatSendRequestOptions } from "../common/chatService/chatService.js"; import { IChatRequestViewModel, IChatResponseViewModel, IChatViewModel, IChatPendingDividerViewModel } from "../common/model/chatViewModel.js"; import { ChatAgentLocation, ChatModeKind, IResolvedNewChatSessionType } from "../common/constants.js"; import { ChatAttachmentModel } from "./attachments/chatAttachmentModel.js"; import { ChatInputPart, IChatInputHostModelSelection, IChatInputHostSubmit } from "./widget/input/chatInputPart.js"; import { IChatWidgetContrib } from "@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/chat/browser/widget/chatWidget"; import { ICodeBlockActionContext, ICodeBlockRenderOptions } from "./widget/chatContentParts/codeBlockPart.js"; import { AgentSessionTarget } from "./agentSessions/agentSessions.js"; import type { IChatBackgroundShell } from "../common/sessionChatPills.js"; import type { IResolvedResponseSelection } from "./responseSelectionResolver.js"; export { ChatOutline } from "./chatOutline.js"; /** * A workspace item that can be selected in the workspace picker. */ export interface IWorkspacePickerItem { readonly uri: URI; readonly label: string; readonly isFolder: boolean; } /** * Delegate interface for the workspace picker. * Allows consumers to get and set the target workspace for chat submissions in empty window contexts. */ export interface IWorkspacePickerDelegate { /** * Returns the list of available workspaces to select from. */ getWorkspaces(): IWorkspacePickerItem[]; /** * Returns the currently selected workspace, if any. */ getSelectedWorkspace(): IWorkspacePickerItem | undefined; /** * Sets the currently selected workspace. */ setSelectedWorkspace(workspace: IWorkspacePickerItem | undefined): void; /** * Event that fires when the selected workspace changes. */ onDidChangeSelectedWorkspace: Event; /** * Event that fires when the available workspaces change. */ onDidChangeWorkspaces: Event; /** * Command ID to execute when user wants to open a new folder. */ openFolderCommand: string; } /** * Delegate interface for the session target picker. * Allows consumers to get and optionally set the active session provider. */ export interface ISessionTypePickerDelegate { getActiveSessionProvider(): AgentSessionTarget | undefined; /** Returns the chat session represented by this picker, when it is bound to one. */ getSessionResource?(): URI | undefined; /** * Optional setter for the active session provider. * When provided, the picker will call this instead of executing the openNewChatSessionInPlace command. * This allows the welcome view to maintain independent state from the main chat panel. */ setActiveSessionProvider?(provider: AgentSessionTarget): void; /** * Optional getter for the pending delegation target - the target that will be used when submit is pressed. */ getPendingDelegationTarget?(): AgentSessionTarget | undefined; /** * Optional setter for the pending delegation target. * When a user selects a different session provider in a non-empty chat, * this stores the target for delegation on the next submit instead of immediately creating a new session. */ setPendingDelegationTarget?(provider: AgentSessionTarget): void; /** * Optional event that fires when the active session provider changes. * When provided, listeners (like chatInputPart) can react to session type changes * and update pickers accordingly. */ onDidChangeActiveSessionProvider?: Event; /** * Returns whether the current session's workspace has a git repository. * Used to gate cloud delegation which requires a GitHub repository. */ hasGitRepository?(): boolean; } export declare const ChatViewPaneTarget: unique symbol; export interface IQuickChatOpenOptions { /** * The query for quick chat. */ query: string; /** * Whether the query is partial and will await more input from the user. */ isPartialQuery?: boolean; /** * An optional selection range to apply to the query text box. */ selection?: Selection; } export interface IChatCodeBlockInfo { readonly ownerMarkdownPartId: string; readonly codeBlockIndex: number; readonly elementId: string; readonly uri: URI | undefined; codemapperUri: URI | undefined; readonly chatSessionResource: URI | undefined; focus(): void; readonly languageId?: string | undefined; readonly editDeltaInfo?: EditDeltaInfo | undefined; } export interface IChatFileTreeInfo { treeDataId: string; treeIndex: number; focus(): void; } export type ChatTreeItem = IChatRequestViewModel | IChatResponseViewModel | IChatPendingDividerViewModel; export interface IChatContextMenuActionContext { readonly $chatContextMenu: true; readonly item: ChatTreeItem | null; readonly linkTarget?: string; readonly responseSelection?: IResolvedResponseSelection; } export declare function isChatContextMenuActionContext(context: unknown): context is IChatContextMenuActionContext; export declare function unwrapChatContextMenuActionContext(context: unknown): unknown; /** Who answers a chat, when that is not the agent its session type serves. */ export interface IChatResponseIdentity { readonly label: string; readonly icon: ThemeIcon; } /** An agent answering a chat in place of the one its session type serves. */ export interface IChatRespondent extends IChatResponseIdentity { /** The session type whose models the chat selects from; `undefined` while not known, when none are offered. */ readonly modelSessionType: string | undefined; } /** In-progress work for the transcript status, independent of input-pill filters. */ export interface IChatBackgroundActivityPillSections { readonly subagents?: IObservable; /** Shell metadata; each transcript part owns its detail views. */ readonly backgroundShells?: IObservable; } export interface IChatListItemRendererOptions { readonly renderStyle?: "compact" | "minimal"; readonly noHeader?: boolean; readonly noFooter?: boolean; readonly renderDetectedCommandsWithRequest?: boolean; readonly restorable?: boolean; readonly supportsFork?: boolean; readonly editable?: boolean; /** Whether the chat is read-only, independently of whether request editing is enabled. */ readonly readOnly?: boolean; /** Whether to render questions, confirmations, and other requests for user input. Defaults to true. */ readonly renderInputRequests?: boolean; readonly renderTextEditsAsSummary?: (uri: URI) => boolean; readonly referencesExpandedWhenEmptyResponse?: boolean | ((mode: ChatModeKind) => boolean); readonly progressMessageAtBottomOfResponse?: boolean | ((mode: ChatModeKind) => boolean); readonly progressMessageAction?: IObservable<{ readonly label: string; readonly run: () => void; } | undefined>; readonly backgroundActivityPillSections?: IChatBackgroundActivityPillSections; readonly contentHorizontalPadding?: number; /** Collapses the first request under this label without changing its message or attachments. */ readonly firstRequestSummary?: string; /** * Render options applied to code blocks in response markdown (e.g. force word-wrap * so command/tool output pasted by the model wraps instead of overflowing). */ readonly codeBlockRenderOptions?: ICodeBlockRenderOptions; /** Presents responses as coming from this identity instead of the responding agent's own. */ readonly responseIdentity?: IChatResponseIdentity; } export interface IChatWidgetViewOptions { /** Whether this widget can host the chat pet. Defaults to true. */ readonly renderChatPet?: boolean; readonly firstRequestSummary?: IObservable; autoScroll?: boolean | ((mode: ChatModeKind) => boolean); renderInputOnTop?: boolean; /** Show the read-only status banner above the transcript instead of beside the composer. */ readOnlyBannerAtTop?: boolean; renderFollowups?: boolean; /** Disable the legacy artifacts list when the host provides an artifacts pill. */ renderArtifactsWidget?: boolean; renderStyle?: "compact" | "minimal"; renderInputToolbarBelowInput?: boolean; /** Whether to create the toolbar backed by {@link MenuId.ChatInputSecondary}. */ renderSecondaryToolbar?: boolean; /** Whether to create the toolbar backed by {@link MenuId.ChatInputStatus}. A host can render its own. */ renderStatusToolbar?: boolean; /** * Whether the widget shows the getting-started tip. `false` leaves the input's * tip slot to the host, which may present its own tip there. */ renderGettingStartedTip?: boolean | (() => boolean); customizationMigrationNotice?: { readonly workspace: IObservable; readonly onDidChangeAvailability: (available: boolean) => void; }; supportsFileReferences?: boolean; filter?: (item: ChatTreeItem) => boolean; /** * Action triggered when 'clear' is called on the widget. The optional * `resolvedSessionType` carries the already-resolved new session type and * selection reason so the host does not recompute either value. */ clear?: (resolvedSessionType?: IResolvedNewChatSessionType) => Promise; rendererOptions?: IChatListItemRendererOptions; menus?: { /** * The menu that is inside the input editor, use for send, dictation */ executeToolbar?: MenuId; /** * The menu rendered in the input's toolbar, for pickers such as model and mode. * Defaults to {@link MenuId.ChatInput}. */ inputToolbar?: MenuId; /** * The menu that next to the input editor, use for close, config etc */ inputSideToolbar?: MenuId; /** * The telemetry source for all commands of this widget */ telemetrySource?: string; }; defaultElementHeight?: number; editorOverflowWidgetsDomNode?: HTMLElement; enableImplicitContext?: boolean; enableWorkingSet?: "explicit" | "implicit"; supportsChangingModes?: boolean; /** Side chat capability supplied by hosts that own their session model. */ supportsSideChat?: IObservable; dndContainer?: HTMLElement; inputEditorMinLines?: number; /** Vertical padding of the input editor. Defaults to the render style's padding. */ inputEditorPadding?: { readonly top: number; readonly bottom: number; }; /** The input's placeholder, in place of the session's or a locked agent's. */ inputPlaceholder?: string; defaultMode?: IChatMode; /** * Optional delegate for the session target picker. * When provided, allows the widget to maintain independent state for the selected session type. * This is useful for contexts like the welcome view where target selection should not * immediately open a new session. */ sessionTypePickerDelegate?: ISessionTypePickerDelegate; /** * Optional delegate for the workspace picker. * When provided, shows a workspace picker in the chat input allowing users to select * a target workspace for their request. This is useful for empty window contexts where * the user wants to send a request to a specific workspace. */ workspacePickerDelegate?: IWorkspacePickerDelegate; /** * Optional handler for chat submission. * When provided, this handler is called before the normal input acceptance flow. * If it returns true (handled), the normal submission is skipped. * This is useful for contexts like the welcome view where submission should * redirect to a different workspace rather than executing locally. * * `attachedContext` carries the explicit attachments (paste/drop/pick) present * on the input so a host that routes the request elsewhere can forward them * instead of silently dropping them. */ submitHandler?: (query: string, mode: ChatModeKind, attachedContext?: IChatRequestVariableEntry[], isVoiceModeInput?: boolean) => Promise; /** * Horizontal space the input part reserves around itself. Hosts that render the * input flush with their own content set this to `0`. */ inputPartHorizontalPadding?: number; /** Model selection owned by the host instead of the input; see {@link IChatInputHostModelSelection}. */ hostModelSelection?: IChatInputHostModelSelection; /** Whether deferred notifications, such as promotions, may show in the input. Defaults to the input's own rule. */ deferredNotificationsEnabled?: IObservable; /** * Whether this input owns a Voice Mode session that targets a draft the host * has not created yet. Without it, such a session belongs to no chat input. */ ownsDraftVoiceSession?: IObservable; /** Whether this widget's view is the active one when several are shown side by side. Defaults to true. */ isActiveView?: IObservable; /** * Submitting that a host sending through {@link submitHandler} takes part in; * see {@link IChatInputHostSubmit}. The host, not the widget's chat model, * then decides whether the input is blocked. Requests the widget sends itself * are still checked by the chat service. */ hostSubmit?: IChatInputHostSubmit; /** * Whether we are running in the sessions window. * When true, the secondary toolbar (permissions picker) is hidden. */ isSessionsWindow?: boolean; /** Tab index for the transcript tree root. Use `-1` to exclude it from sequential keyboard navigation while preserving programmatic focus. */ transcriptTabIndex?: 0 | -1; /** Whether this host supports the experimental session state indicator. Defaults to false. */ enableSessionStateIndicator?: boolean; /** Enables the transcript Find widget (`Ctrl/Cmd+F`) for this chat widget. Off by default. */ enableFind?: boolean; /** * Height of the content this host mounts into * {@link ChatInputPart.persistentContentContainerElement}. Setting it floats that * content above the input, so the transcript scrolls underneath it, and reserves * the same space below the transcript. Must match the content's rendered height. */ persistentContentHeight?: number; } export interface IChatViewViewContext { viewId: string; } export declare function isIChatViewViewContext(context: IChatWidgetViewContext): context is IChatViewViewContext; export interface IChatResourceViewContext { isQuickChat?: boolean; isInlineChat?: boolean; } export declare function isIChatResourceViewContext(context: IChatWidgetViewContext): context is IChatResourceViewContext; export type IChatWidgetViewContext = IChatViewViewContext | IChatResourceViewContext | {}; export interface IChatAcceptInputOptions { noCommandDetection?: boolean; isVoiceInput?: boolean; isVoiceModeInput?: boolean; enableImplicitContext?: boolean; storeToHistory?: boolean; /** * When set, queues this message to be sent after the current request completes. * If Steering, also sets yieldRequested on any active request to signal it should wrap up. */ queue?: ChatRequestQueueKind; /** * Cancels the current request before sending this message instead of falling back to queueing. */ cancelCurrentRequest?: boolean; preserveFocus?: boolean; /** Keeps the input box contents and attachments after submitting a programmatic query, and omits them from it. The query itself is sent as-is: prompt slash commands in it are not resolved. */ preserveInput?: boolean; /** * Called once the request has been handed over to the chat service, i.e. it was either sent * right away or queued because another request is in progress. Callers that must not wait for * a queued request to actually run should use this instead of awaiting `acceptInput`, which * only resolves once the request has been sent. */ onRequestAccepted?: () => void; } export interface IChatWidgetViewModelChangeEvent { readonly previousSessionResource: URI | undefined; readonly currentSessionResource: URI | undefined; } /** * Visual presentation state restored when a widget is rebound to a chat. * Composer data such as text, attachments, mode, and model belongs in {@link IChatModelInputState}. */ export interface IChatWidgetViewState { readonly scrollTop: number; readonly isAtBottom?: boolean; /** The row at the top of the viewport. Unlike `scrollTop`, it lands on the same content when the rows above it haven't been measured yet. */ readonly scrollAnchor?: IChatScrollAnchor; } /** A transcript row and how far the viewport is scrolled past its top. */ export interface IChatScrollAnchor { /** The ID of the request, or of the request that the response answers. Response IDs can change when a chat is restored. */ readonly requestId: string; readonly kind: "request" | "response"; readonly offset: number; } export declare const CHAT_WIDGET_VIEW_STATE_CACHE_LIMIT = 100; export interface IChatWidget { /** Whether cancellable transcript preparation is blocking new submissions. */ readonly isTranscriptProgressActive?: boolean; /** Cancels transcript preparation and returns whether it handled cancellation. */ cancelTranscriptProgress?(): boolean; readonly domNode: HTMLElement; /** DOM node of the scrollable transcript area, excluding the input part. */ readonly transcriptDomNode: HTMLElement; readonly visible: boolean; readonly onDidChangeViewModel: Event; readonly onDidAcceptInput: Event; readonly onDidHide: Event; readonly onDidShow: Event; readonly onDidSubmitAgent: Event<{ agent: IChatAgentData; slashCommand?: IChatAgentCommand; }>; readonly onDidChangeAgent: Event<{ agent: IChatAgentData; slashCommand?: IChatAgentCommand; }>; readonly onDidChangeParsedInput: Event; readonly onDidChangeActiveInputEditor: Event; readonly onDidFocus: Event; readonly onDidScroll: Event; readonly location: ChatAgentLocation; readonly viewContext: IChatWidgetViewContext; readonly viewModel: IChatViewModel | undefined; readonly inputEditor: ICodeEditor; readonly supportsFileReferences: boolean; /** Whether this widget can host question and confirmation controls. Defaults to true. */ readonly supportsInputRequests?: boolean; /** Whether the input part is rendered above the transcript instead of below it (quick chat, composer-style widgets). */ readonly rendersInputOnTop: boolean; readonly attachmentCapabilities: IChatAgentAttachmentCapabilities; readonly parsedInput: IParsedChatRequest; readonly lockedAgentId: string | undefined; lastSelectedAgent: IChatAgentData | undefined; readonly scopedContextKeyService: IContextKeyService; readonly input: ChatInputPart; /** The main input part at the bottom of the widget. Unlike `input`, this always returns the main input, not the inline editing input. */ readonly inputPart: ChatInputPart; readonly attachmentModel: ChatAttachmentModel; readonly locationData?: IChatLocationData; readonly contribs: readonly IChatWidgetContrib[]; readonly supportsChangingModes: boolean; getContrib(id: string): T | undefined; reveal(item: ChatTreeItem): void; focus(item: ChatTreeItem): void; getSibling(item: ChatTreeItem, type: "next" | "previous"): ChatTreeItem | undefined; getFocus(): ChatTreeItem | undefined; setInput(query?: string): void; getInput(): string; refreshParsedInput(): void; /** Floats persistent input content and reserves matching space below the transcript. */ setPersistentContentHeight(height: number | undefined): void; /** Shares the host's background activity dropdowns with the transcript's running status. */ registerBackgroundActivityPillSections(sections: IChatBackgroundActivityPillSections): IDisposable; logInputHistory(): void; acceptInput(query?: string, options?: IChatAcceptInputOptions): Promise; getSelectedModelRequestOptions(): Pick; startEditing(requestId: string): void; cancelEditing(): Promise; finishedEditing(completedEdit?: boolean): void; rerunLastRequest(): Promise; setInputPlaceholder(placeholder: string): void; resetInputPlaceholder(): void; /** * Focuses the response item in the list. * @param lastFocused Focuses the most recently focused response. Otherwise, focuses the last response. */ focusResponseItem(lastFocused?: boolean): void; focusInput(): void; /** * Focuses the Todos view in the chat widget. * @returns Whether the operation succeeded (i.e., the Todos view was focused). */ focusTodosView(): boolean; /** * Toggles focus between the Todos view and the previous focus target in the chat widget. * @returns Whether the operation succeeded (i.e., the focus was toggled). */ toggleTodosViewFocus(): boolean; /** * Focuses the question carousel in the chat widget. * @returns Whether the operation succeeded (i.e., the question carousel was focused). */ focusQuestionCarousel(): boolean; /** * Toggles focus between the question carousel and the chat input. * @returns Whether the operation succeeded (i.e., the focus was toggled). */ toggleQuestionCarouselFocus(): boolean; /** * Navigates to the previous question in the question carousel. * @returns Whether the operation succeeded (i.e., a previous question exists). */ navigateToPreviousQuestion(): boolean; /** * Navigates to the next question in the question carousel. * @returns Whether the operation succeeded (i.e., a next question exists). */ navigateToNextQuestion(): boolean; /** * Focuses the terminal associated with the active question carousel. * @returns Whether the operation succeeded (i.e., a terminal was found and focused). */ focusQuestionCarouselTerminal(): boolean; hasInputFocus(): boolean; getModeRequestOptions(): Partial; getCodeBlockInfoForEditor(uri: URI): IChatCodeBlockInfo | undefined; getCodeBlockInfosForResponse(response: IChatResponseViewModel): IChatCodeBlockInfo[]; getFileTreeInfosForResponse(response: IChatResponseViewModel): IChatFileTreeInfo[]; getLastFocusedFileTreeForResponse(response: IChatResponseViewModel): IChatFileTreeInfo | undefined; /** * Returns the currently rendered chat item containing the node, if any. */ getElementFromNode(node: HTMLElement): ChatTreeItem | undefined; /** * Suppresses auto-scrolling the transcript to the bottom until the returned * disposable is disposed. Holds compose, so concurrent callers do not * clobber each other. */ holdAutoScroll(): IDisposable; clear(resolvedSessionType?: IResolvedNewChatSessionType): Promise; getInputState(): IChatModelInputState | undefined; getViewState(): IChatWidgetViewState; restoreViewState(state: IChatWidgetViewState): void; lockToCodingAgent(name: string, displayName: string, agentId?: string, agentHostProviderId?: string): void; unlockFromCodingAgent(): void; handleDelegationExitIfNeeded(sourceAgent: Pick | undefined, targetAgent: IChatAgentData | undefined): Promise; executeHandoff(handoff: IHandOff, agentId?: string): Promise; delegateScrollFromMouseWheelEvent(event: IMouseWheelEvent): void; /** Returns the widget's transcript Find controller, or `undefined` if `enableFind` was not set. */ getFindController(): IChatFindController | undefined; } /** Minimal surface used to route `Ctrl/Cmd+F` and Find Next/Previous to a chat widget's transcript Find widget. */ export interface IChatFindController { readonly visible: boolean; /** Shows the Find widget, optionally seeding the query and focusing the input. */ show(seedText?: string, focus?: boolean): void; hide(): void; next(): void; previous(): void; toggleCaseSensitive(): void; toggleWholeWord(): void; toggleRegex(): void; /** Focuses the Find widget's last-focused element (defaults to the input). */ focus(): void; } export declare function isResponseSelectionSupported(platform?: { isWeb: boolean; isMobile: boolean; }): boolean; /** * Binds a freshly loaded model to a chat widget, preserving any text the user * typed into the input while the session was still loading (the input stays * editable during the async load, and binding would otherwise reset it to the * session's own draft). See #325323. * * @param inputBeforeLoad Input value captured when the load window started, used * as a baseline so a previous session's leftover draft is not mistaken for newly * typed text. * @param setModel Callback that performs the actual `setModel` binding. */ export declare function setModelPreservingInputTypedWhileLoading(widget: IChatWidget, inputBeforeLoad: string, setModel: () => void): void; export interface ICodeBlockActionContextProvider { getCodeBlockContext(editor?: ICodeEditor): ICodeBlockActionContext | undefined; } export declare const ChatViewId = "workbench.panel.chat.view.copilot"; export declare const ChatViewContainerId = "workbench.panel.chat"; export declare const HasInstalledAgentPluginsContext: RawContextKey; export declare const InstalledAgentPluginsViewId = "workbench.views.agentPlugins.installed"; /** * A surface that can receive chat context attachments. */ export interface IChatAttachmentTarget { readonly attachments: readonly IChatRequestVariableEntry[]; /** * @param dropPosition Where in the target's input the attachments were * dropped, see {@link getDropPosition}. */ addAttachments(entries: readonly IChatRequestVariableEntry[], dropPosition?: IPosition): void; /** * The position in the target's input at a point in the window where * attachments are dropped, when the target places attachments in its input, * as it does for inline attachment pills. */ getDropPosition?(clientX: number, clientY: number): IPosition | undefined; } /** * A chat input surface that paste providers can attach context to. Implemented * by both the workbench chat widget and the Agents window composer so the paste * pipeline does not depend on {@link IChatWidget}. */ export interface IChatPasteTarget extends IChatAttachmentTarget { /** Scopes resources created for this input, so they are cleaned up with the session. */ readonly sessionResource: URI; /** Inline references currently present in the input. */ readonly inlineReferences: readonly IDynamicVariable[]; /** * The prompt that a copied range of the input stands for when the input * shows attachments as pills inline with the prompt, with the references in * it relative to the copied text, and the attachments of pills outside the * range, which the copy leaves out. `undefined` when the input does not * show attachments inline. */ getCopiedInlinePrompt?(ranges: readonly IRange[]): { readonly text: string; readonly references: readonly IDynamicVariable[]; readonly excludedAttachmentIds: ReadonlySet; } | undefined; removeAttachments(ids: readonly string[]): void; /** Attaches `entry` and binds it to the inline `text` inserted at `range`. */ addInlineAttachment(entry: IChatRequestVariableEntry, text: string, range: IRange): void; /** Adds an inline reference that is not backed by an attachment, such as a symbol. */ addInlineReference(reference: IDynamicVariable): void; /** Whether pasting `text` over `range` would turn the input into a terminal command. */ isTerminalCommandPaste(text: string, range: IRange): boolean; } export declare const UpdateAgentPluginsCommandId = "workbench.agentPlugins.checkForUpdates"; export declare const ForceUpdateAgentPluginsCommandId = "workbench.agentPlugins.forceUpdate"; export declare const RefreshAgentPluginMarketplacesCommandId = "workbench.agentPlugins.refreshMarketplaces"; export declare const UpdatingAgentPluginsContext: RawContextKey;