Skip to content

Commit e6d503d

Browse files
authored
fix(amazonq): Fix for LLM based code issues for file review on windows. (#5175)
* Fix for LLM based code issues for file review on windows. * Added changelog
1 parent 0d41579 commit e6d503d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type" : "bugfix",
3+
"description" : "Fix for /review LLM based code issues for file review on windows"
4+
}

plugins/amazonq/codewhisperer/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codewhisperer/codescan/sessionconfig/CodeScanSessionConfig.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ class CodeScanSessionConfig(
169169
append("+++ b/")
170170
append(project.name)
171171
append('/')
172-
append(fileNio.relativeTo(projectRootNio).pathString)
172+
append(fileNio.relativeTo(projectRootNio).toString().replace(File.separator, "/"))
173173
}
174174
} catch (e: Exception) {
175175
LOG.debug(e) { "Failed to create git diff" }

0 commit comments

Comments
 (0)