diff --git a/plugins/amazonq/codewhisperer/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codewhisperer/codescan/sessionconfig/CodeScanSessionConfig.kt b/plugins/amazonq/codewhisperer/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codewhisperer/codescan/sessionconfig/CodeScanSessionConfig.kt index 952c46c0d0..c6cf9205ea 100644 --- a/plugins/amazonq/codewhisperer/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codewhisperer/codescan/sessionconfig/CodeScanSessionConfig.kt +++ b/plugins/amazonq/codewhisperer/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codewhisperer/codescan/sessionconfig/CodeScanSessionConfig.kt @@ -169,7 +169,7 @@ class CodeScanSessionConfig( append("+++ b/") append(project.name) append('/') - append(fileNio.relativeTo(projectRootNio).pathString) + append(fileNio.relativeTo(projectRootNio).toString().replace(File.separator, "/")) } } catch (e: Exception) { LOG.debug(e) { "Failed to create git diff" }