Repository navigation
Feature: Add an apply-and-commit option to the AI commit message dialog - #2908
Open
ZhonFortune wants to merge 3 commits into
Open
ZhonFortune wants to merge 3 commits into
ZhonFortune wants to merge 3 commits into
Conversation
- Add CommitAfterUse property to AIAssistant view model backed by a new preference - Add AIAssistantCommitAfterUse setting to Preferences with persistence support - Add CommitAsync method to AIAssistant that commits the working copy after applying the generated message - Add a commit-after-use check box to the AI assistant options row and shift the action buttons to new grid columns - Make the use button handler asynchronous and trigger a commit when the new option is enabled - Add the Chinese localization string for the apply-and-commit option
- Add new Text.AIAssistant.CommitAfterUse locale key to en_US, ca_ES, de_DE, el_GR, es_ES, fr_FR, he_IL and id_ID locales - Add the same CommitAfterUse key to it_IT, ja_JP, ko_KR, pt_BR, ru_RU, ta_IN, uk_UA and zh_TW locales - Provide localized labels meaning Apply and commit across all 16 supported languages
- Remove the standalone loading icon column from the options grid and adjust column indexes accordingly - Move the LoadingIcon into the Use button content wrapped in a Grid layout - Hide the button label while generating by applying an opacity style bound to IsGenerating - Require both non-generating state and non-empty response for the Use button to be enabled via MultiBinding - Add AutomationProperties.Name on the Use button to preserve its accessible name now that content is a Grid
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
使用 AI 生成提交信息后,即使对结果满意,也需要先点「应用」,再回到工作区手动提交。此 PR 增加一个可记住选择的选项,让用户在同一个对话框里完成这两个操作,同时保留先应用、再编辑的原有流程。
变更
建议验证
Background
After generating a commit message with AI, even when satisfied with the result, users still have to click "Apply" and then switch back to the workspace to commit manually. This PR adds an option with persisted state so users can complete both actions within the same dialog while keeping the existing apply-then-edit workflow.
Changes
Suggested Verification