Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/vs/platform/actionWidget/browser/actionList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,7 @@ export class ActionList<T> extends Disposable {
availableHeight = widgetTop > 0 ? windowHeight - widgetTop - padding : windowHeight * 0.7;
}

const viewportMaxHeight = Math.floor(targetWindow.innerHeight * 0.4);
const viewportMaxHeight = Math.floor(targetWindow.innerHeight * 0.6);
Comment thread
sandy081 marked this conversation as resolved.
const maxHeight = Math.min(Math.max(availableHeight, this._actionLineHeight * 3 + filterHeight), viewportMaxHeight);
const height = Math.min(listHeight + filterHeight, maxHeight);
return height - filterHeight;
Expand Down
3 changes: 2 additions & 1 deletion src/vs/sessions/contrib/chat/browser/newChatViewPane.ts
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,8 @@ class NewChatWidget extends Disposable implements IHistoryNavigationWidget {
this._focusEditor();
},
getModels: () => this._getAvailableModels(),
canManageModels: () => true,
useGroupedModelPicker: () => true,
showManageModelsAction: () => false,
};

const pickerOptions: IChatInputPickerOptions = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2225,7 +2225,8 @@ export class ChatInputPart extends Disposable implements IHistoryNavigationWidge
this.renderAttachedContext();
},
getModels: () => this.getModels(),
canManageModels: () => {
useGroupedModelPicker: () => true,
showManageModelsAction: () => {
const sessionType = this.getCurrentSessionType();
return !sessionType || sessionType === localChatSessionType;
}
Expand Down
Loading
Loading