Skip to content

Commit

Permalink
Revert "don't recreate button bar as response streams (#234884)" (#23…
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieken authored Nov 29, 2024
1 parent 5979e0d commit df74071
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/vs/workbench/contrib/chat/browser/chatInputPart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { DEFAULT_FONT_FAMILY } from '../../../../base/browser/fonts.js';
import { IHistoryNavigationWidget } from '../../../../base/browser/history.js';
import { StandardKeyboardEvent } from '../../../../base/browser/keyboardEvent.js';
import * as aria from '../../../../base/browser/ui/aria/aria.js';
import { Button, ButtonBar } from '../../../../base/browser/ui/button/button.js';
import { Button } from '../../../../base/browser/ui/button/button.js';
import { IManagedHoverTooltipMarkdownString } from '../../../../base/browser/ui/hover/hover.js';
import { IHoverDelegate } from '../../../../base/browser/ui/hover/hoverDelegate.js';
import { getBaseLayerHoverDelegate } from '../../../../base/browser/ui/hover/hoverDelegate2.js';
Expand Down Expand Up @@ -231,7 +231,6 @@ export class ChatInputPart extends Disposable implements IHistoryNavigationWidge
private _chatEditsProgress: ProgressBar | undefined;
private _chatEditsListPool: CollapsibleListPool;
private _chatEditList: IDisposableReference<WorkbenchList<IChatCollapsibleListItem>> | undefined;
private _chatEditButtonBar: ButtonBar | undefined;
get selectedElements(): URI[] {
const edits = [];
const editsList = this._chatEditList?.object;
Expand Down Expand Up @@ -1190,7 +1189,7 @@ export class ChatInputPart extends Disposable implements IHistoryNavigationWidge
// Chat editing session actions
const actionsContainer = overviewRegion.querySelector('.chat-editing-session-actions') as HTMLElement ?? dom.append(overviewRegion, $('.chat-editing-session-actions'));

this._chatEditButtonBar ??= this._store.add(this.instantiationService.createInstance(MenuWorkbenchButtonBar, actionsContainer, MenuId.ChatEditingWidgetToolbar, {
this._chatEditsActionsDisposables.add(this.instantiationService.createInstance(MenuWorkbenchButtonBar, actionsContainer, MenuId.ChatEditingWidgetToolbar, {
telemetrySource: this.options.menus.telemetrySource,
menuOptions: {
arg: { sessionId: chatEditingSession.chatSessionId },
Expand Down

0 comments on commit df74071

Please sign in to comment.