Skip to content

Conversation

@avi-alpert
Copy link
Contributor

Problem

On Windows, if a /doc user changes a folder to a nested subfolder more than one level below the workspace level, the folderPath sent to the API includes backslashes, which results in a The folder you chose did not contain any source files error.

Solution

Normalize folderPath before making API request


  • Treat all work as PUBLIC. Private feature/x branches will not be squash-merged at release time.
  • Your code changes must meet the guidelines in CONTRIBUTING.md.
  • License: I confirm that my contribution is made under the terms of the Apache 2.0 license.

@avi-alpert avi-alpert changed the title fix: normalize path for /doc scope fix(amazonq): normalize path for /doc scope Mar 20, 2025
@github-actions
Copy link

  • This pull request modifies code in src/* but no tests were added/updated.
    • Confirm whether tests should be added or ensure the PR description explains why tests are not required.

@avi-alpert
Copy link
Contributor Author

Manually validated fix in windows with vsix from this PR

@avi-alpert avi-alpert marked this pull request as ready for review March 25, 2025 14:01
@avi-alpert avi-alpert requested a review from a team as a code owner March 25, 2025 14:01
@jpinkney-aws jpinkney-aws merged commit 7ae12df into aws:master Mar 25, 2025
25 of 26 checks passed
Hweinstock pushed a commit to Hweinstock/aws-toolkit-vscode that referenced this pull request Mar 26, 2025
## Problem
On Windows, if a /doc user changes a folder to a nested subfolder more
than one level below the workspace level, the folderPath sent to the API
includes backslashes, which results in a `The folder you chose did not
contain any source files` error.

## Solution
Normalize folderPath before making API request

---

- Treat all work as PUBLIC. Private `feature/x` branches will not be
squash-merged at release time.
- Your code changes must meet the guidelines in
[CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines).
- License: I confirm that my contribution is made under the terms of the
Apache 2.0 license.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants