Skip to content

Commit d835a0a

Browse files
committed
Allow empty strings as a valid reset condition for commit message instructions.
1 parent 406fbbb commit d835a0a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎packages/vscode/src/views/settings/backend/message-handlers/handle-update-commit-message-instructions.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ export const handle_update_commit_message_instructions = async (
99
.getConfiguration('codeWebChat')
1010
.update(
1111
'commitMessageInstructions',
12-
message.instructions == commit_message_instructions
12+
message.instructions == '' ||
13+
message.instructions == commit_message_instructions
1314
? undefined
1415
: message.instructions,
1516
vscode.ConfigurationTarget.Global

0 commit comments

Comments
 (0)