Skip to content

Commit 630a83b

Browse files
committed
Remove the without-files prompt mode and related configuration, types, history, and UI support
- it's been reported that when the command 'generate commit message' is run with the commit message already provided, it shows a quick pick skip/attach └── apps └── editor └── src └── commands ├── apply-response-command │ └── apply-response-command.ts └── generate-commit-message-commands ├── actions │ ├── get-prompt-data.ts │ └── run-generate-action.ts ├── generate-commit-message-commands.ts ├── index.ts └── utils ├── build-commit-message-prompt.ts ├── generate-commit-message-with-api.ts ├── get-commit-message-config.ts └── strip-wrapping-quotes.ts
1 parent a5128de commit 630a83b

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎apps/editor/src/commands/generate-commit-message-commands/actions/get-prompt-data.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export const get_prompt_data = async (params: {
2121
workspace_provider: WorkspaceProvider
2222
files_staged_by_action?: boolean
2323
is_single_change_flow?: boolean
24+
skip_context_prompt?: boolean
2425
}) => {
2526
await vscode.workspace.saveAll()
2627
await params.repository.status()
@@ -120,7 +121,7 @@ export const get_prompt_data = async (params: {
120121
let chatbot_prompt = ''
121122
let was_context_prompt_shown = false
122123

123-
if (ordered_context_files.length > 0) {
124+
if (ordered_context_files.length > 0 && !params.skip_context_prompt) {
124125
const setting = vscode.workspace
125126
.getConfiguration('codeWebChat')
126127
.get<string>('useContextFilesInCommitMessagePrompt', 'ask')

‎apps/editor/src/commands/generate-commit-message-commands/actions/run-generate-action.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ export const run_generate_action = async (params: {
6565
files_staged_by_action,
6666
is_single_change_flow: files_staged_by_action
6767
? is_single_change_flow
68-
: undefined
68+
: undefined,
69+
skip_context_prompt: params.provided_text !== undefined
6970
})
7071

7172
if (data === 'back') {

0 commit comments

Comments
 (0)