Skip to content

Commit 13769c2

Browse files
committed
Enhance diff patch detection by removing the required space after plus or minus signs
1 parent 4af7e8b commit 13769c2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/vscode/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "gemini-coder",
33
"displayName": "Code Web Chat",
44
"description": "AI coding without agents (CWC)",
5-
"version": "1.516.0",
5+
"version": "1.517.0",
66
"scripts": {
77
"build": "npx vsce package --no-dependencies",
88
"vscode:prepublish": "rimraf out && npm run compile",

‎packages/vscode/src/commands/apply-chat-response-command/utils/clipboard-parser/clipboard-parser.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export const parse_response = (params: {
104104
const processed_response = params.response.replace(/``````/g, '```\n```')
105105

106106
const hunk_header_regex = /^(@@\s+-\d+(?:,\d+)?\s+\+\d+(?:,\d+)?\s+@@)/m
107-
const has_diff_lines_regex = /^[+-] /m
107+
const has_diff_lines_regex = /^[+-]/m
108108

109109
if (
110110
hunk_header_regex.test(processed_response) &&

0 commit comments

Comments
 (0)