Skip to content

Commit

Permalink
fix: show Save All in chat editing widget for non-autosave users too (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
joyceerhl authored Nov 15, 2024
1 parent 28f7008 commit ff6beb5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/vs/workbench/contrib/chat/browser/chatEditorSaving.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,12 +267,11 @@ export class ChatEditingSaveAllAction extends Action2 {
id: MenuId.ChatEditingWidgetToolbar,
group: 'navigation',
order: 2,
// Show the option to save without accepting if the user has autosave
// and also hasn't configured the setting to always save with generated changes
// Show the option to save without accepting if the user hasn't configured the setting to always save with generated changes
when: ContextKeyExpr.and(
applyingChatEditsFailedContextKey.negate(),
ContextKeyExpr.or(hasUndecidedChatEditingResourceContextKey, hasAppliedChatEditsContextKey.negate()),
ContextKeyExpr.notEquals('config.files.autoSave', 'off'), ContextKeyExpr.equals(`config.${ChatEditorSaving._config}`, false),
ContextKeyExpr.equals(`config.${ChatEditorSaving._config}`, false),
ChatContextKeys.location.isEqualTo(ChatAgentLocation.EditingSession)
)
}
Expand Down

0 comments on commit ff6beb5

Please sign in to comment.