import { Event } from "../../../../../../base/common/event.js"; import { Disposable } from "../../../../../../base/common/lifecycle.js"; import { IModelService } from "../../../../../../editor/common/services/model.service.js"; import { IContextMenuService } from "../../../../../../platform/contextview/browser/contextView.service.js"; import { IDialogService } from "../../../../../../platform/dialogs/common/dialogs.service.js"; import { IFileService } from "../../../../../../platform/files/common/files.service.js"; import { IHoverService } from "../../../../../../platform/hover/browser/hover.service.js"; import { INotificationService } from "../../../../../../platform/notification/common/notification.service.js"; import { IMarkdownRendererService } from "../../../../../../platform/markdown/browser/markdownRenderer.service.js"; import { IEditorService } from "../../../../../services/editor/common/editorService.service.js"; import { IAgentEditorCommentsBridge } from "../../../../../services/agentEditorComments/common/agentEditorComments.service.js"; import { ITextFileService } from "../../../../../services/textfile/common/textfiles.service.js"; import { IChatPlanReview, IChatPlanReviewResult } from "../../../common/chatService/chatService.js"; import { IPlanReviewFeedbackService } from "../../planReviewFeedback/planReviewFeedbackService.service.js"; import { IChatRendererContent } from "../../../common/model/chatViewModel.js"; import { ChatTreeItem } from "../../chat.js"; import { IChatContentPart, IChatContentPartRenderContext } from "./chatContentParts.js"; export interface IChatPlanReviewPartOptions { onSubmit: (result: IChatPlanReviewResult) => void; } export declare class ChatPlanReviewPart extends Disposable implements IChatContentPart { readonly review: IChatPlanReview; private readonly _options; private readonly _markdownRendererService; private readonly _contextMenuService; private readonly _dialogService; private readonly _editorService; private readonly _hoverService; private readonly _planReviewFeedbackService; private readonly _agentEditorCommentsBridge; private readonly _textFileService; private readonly _modelService; private readonly _fileService; private readonly _notificationService; readonly domNode: HTMLElement; private readonly _onDidChangeHeight; readonly onDidChangeHeight: Event; private readonly _buttonStore; private _submitButton; private _approveButton; private _renderedSubmitInlineCount; private readonly _messageContentDisposables; private readonly _planChangeListeners; private readonly _titleActionsEl; private readonly _outdatedBadgeEl; private readonly _inlineActionsEl; private readonly _footerButtonsEl; private readonly _messageEl; private readonly _messageScrollable; private readonly _collapseButton; private _reviewButton; private _isCollapsed; private _isSubmitted; private _isSubmitting; private _selectedAction; private _feedbackTextarea; private _feedbackSection; private _commentsListEl; private _commentsListScrollable; private _clearAllButtonEl; private _isFeedbackMode; private readonly _planReviewRegistration; private readonly _commentRowDisposables; constructor(review: IChatPlanReview, context: IChatContentPartRenderContext, _options: IChatPlanReviewPartOptions, _markdownRendererService: IMarkdownRendererService, _contextMenuService: IContextMenuService, _dialogService: IDialogService, _editorService: IEditorService, _hoverService: IHoverService, _planReviewFeedbackService: IPlanReviewFeedbackService, _agentEditorCommentsBridge: IAgentEditorCommentsBridge, _textFileService: ITextFileService, _modelService: IModelService, _fileService: IFileService, _notificationService: INotificationService); private watchPlanChanges; private markOutdated; hasSameContent(other: IChatRendererContent, _followingContent: IChatRendererContent[], _element: ChatTreeItem): boolean; private renderMarkdown; private renderFeedback; private renderCommentsList; private getInlineFeedbackItems; private revealInlineComment; private removeInlineComment; private clearAllInlineFeedback; private onInlineFeedbackChanged; /** * Render the action buttons into the active container (footer when * expanded, inline title slot when collapsed). Clears the inactive slot * so the same buttons can never appear in two places at once. */ private renderCurrentActionButtons; private renderActionButtons; private canSubmitFeedback; private computeSubmitLabel; /** * Update the cached feedback-mode buttons without * destroying the button row. Cheap enough to run on every keystroke. */ private updateFeedbackActionButtonState; private toggleCollapsed; private updateCollapsedPresentation; private enterReviewMode; private submitApproval; private submitRejection; private savePlanFile; private updatePlanContentFromModel; private enterFeedbackMode; private exitFeedbackMode; private focusFeedbackInput; private submitFeedback; private confirmAutopilot; private markUsed; }