diff --git a/CHANGELOG.md b/CHANGELOG.md index b59e36b3b..846916c89 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## [2.19.2] - Update download endpoint to downloads.snyk.io. +- Send correct FixId to AI Fix endpoint. ## [2.19.1] - Adjust OSS panel font size. diff --git a/src/snyk/snykCode/views/suggestion/codeSuggestionWebviewScriptLS.ts b/src/snyk/snykCode/views/suggestion/codeSuggestionWebviewScriptLS.ts index e19fcdd63..672204def 100644 --- a/src/snyk/snykCode/views/suggestion/codeSuggestionWebviewScriptLS.ts +++ b/src/snyk/snykCode/views/suggestion/codeSuggestionWebviewScriptLS.ts @@ -246,7 +246,7 @@ declare const acquireVsCodeApi: any; const diffSuggestion = suggestion.diffs[diffSelectedIndex]; const filePath = suggestion.filePath; const patch = diffSuggestion.unifiedDiffsPerFile[filePath]; - const fixId = suggestion.id; + const fixId = diffSuggestion.fixId; const message: ApplyGitDiffMessage = { type: 'applyGitDiff',