mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-20 19:14:10 +01:00
cleanup
This commit is contained in:
@@ -151,8 +151,6 @@ export class ModePickerActionItem extends ChatInputPickerActionViewItem {
|
||||
return mode.source.storage === PromptsStorage.local || mode.source.storage === PromptsStorage.user;
|
||||
};
|
||||
|
||||
const isImplementMode = (mode: IChatMode) => isBuiltinImplementMode(mode, this._productService);
|
||||
|
||||
const actionProviderWithCustomAgentTarget: IActionWidgetDropdownActionProvider = {
|
||||
getActions: () => {
|
||||
const modes = chatModeService.getModes();
|
||||
@@ -182,7 +180,7 @@ export class ModePickerActionItem extends ChatInputPickerActionViewItem {
|
||||
const otherBuiltinModes = modes.builtin.filter(mode => mode.id !== ChatMode.Agent.id && !(shouldHideEditMode && mode.id === ChatMode.Edit.id));
|
||||
// Filter out 'implement' mode from the dropdown - it's available for handoffs but not user-selectable
|
||||
const customModes = groupBy(
|
||||
modes.custom.filter(mode => !isImplementMode(mode)),
|
||||
modes.custom,
|
||||
mode => isModeConsideredBuiltIn(mode, this._productService) ? 'builtin' : 'custom');
|
||||
|
||||
const customBuiltinModeActions = customModes.builtin?.map(mode => {
|
||||
|
||||
@@ -329,7 +329,7 @@ export interface IHandOff {
|
||||
readonly prompt: string;
|
||||
readonly send?: boolean;
|
||||
readonly showContinueOn?: boolean; // treated exactly like send (optional boolean)
|
||||
readonly model?: string; // qualified model name to switch to (e.g., "GPT-4o (copilot)")
|
||||
readonly model?: string; // qualified model name to switch to (e.g., "GPT-5 (copilot)")
|
||||
}
|
||||
|
||||
export interface IHeaderAttribute {
|
||||
|
||||
Reference in New Issue
Block a user