mirror of
https://github.com/microsoft/vscode.git
synced 2026-02-04 01:44:44 -06:00
Simplify
This commit is contained in:
parent
4e0713fc08
commit
53aaf4ac09
@ -1665,7 +1665,6 @@ export class ChatWidget extends Disposable implements IChatWidget {
|
||||
defaultMode: this.viewOptions.defaultMode,
|
||||
sessionTypePickerDelegate: this.viewOptions.sessionTypePickerDelegate,
|
||||
workspacePickerDelegate: this.viewOptions.workspacePickerDelegate,
|
||||
isQuickChat: isQuickChat(this)
|
||||
};
|
||||
|
||||
if (this.viewModel?.editing) {
|
||||
|
||||
@ -151,7 +151,6 @@ export interface IChatInputPartOptions {
|
||||
supportsChangingModes?: boolean;
|
||||
dndContainer?: HTMLElement;
|
||||
widgetViewKindTag: string;
|
||||
isQuickChat?: boolean;
|
||||
/**
|
||||
* Optional delegate for the session target picker.
|
||||
* When provided, allows the input part to maintain independent state for the selected session type.
|
||||
@ -2142,7 +2141,7 @@ export class ChatInputPart extends Disposable implements IHistoryNavigationWidge
|
||||
}));
|
||||
this._register(inputResizeObserver.observe(this.container));
|
||||
|
||||
if (this.options.renderStyle === 'compact' && this.options.isQuickChat) {
|
||||
if (this.options.renderStyle === 'compact') {
|
||||
const toolbarsResizeObserver = this._register(new dom.DisposableResizeObserver(() => {
|
||||
// Have to layout the editor when the toolbars change size, when they share width with the editor.
|
||||
// This handles ensuring we layout when quick chat is shown/hidden.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user