Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"type": "Bug Fix",
"description": "Amazon Q Chat: Choosing a nested subfolder for `/doc` on Windows results in `The folder you chose did not contain any source files` error"
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ import { getPathsFromZipFilePath, SvgFileExtension } from '../../../amazonq/util
import { FollowUpTypes } from '../../../amazonq/commons/types'
import { DocGenerationTask, DocGenerationTasks } from '../docGenerationTask'
import { DevPhase } from '../../types'
import { normalize } from '../../../shared/utilities/pathUtils'

export interface ChatControllerEventEmitters {
readonly processHumanChatMessage: EventEmitter<any>
Expand Down Expand Up @@ -160,7 +161,9 @@ export class DocController {
// Display path should always include workspace folder name
displayPath = path.join(relativePath.workspaceFolder.name, relativePath.relativePath)
// Only include workspace folder name in API call if multi-root workspace
docGenerationTask.folderPath = isMultiRootWorkspace() ? displayPath : relativePath.relativePath
docGenerationTask.folderPath = normalize(
isMultiRootWorkspace() ? displayPath : relativePath.relativePath
)

if (!relativePath.relativePath) {
docGenerationTask.folderLevel = 'ENTIRE_WORKSPACE'
Expand Down
Loading