aws / aws/aws-toolkit-vscode

Code diff preview is not working on windows latest version

Open
#8,058 0 comments 1 reaction 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
2k
Forks
807
Avg merge
10h 12m
Merged PRs (30d)
7

Description

## Problem
When amazonQ make some code changes in a file, it gives an option to view the changes by clicking the preview option, but it says, couldn't open the file
## Steps to reproduce the issue
Just ask Q to generate some test file.. NOw click the preview for that file in that chat. It fails to open that preview in the windows OS. Is says there is error in the path, and unable to find the file. It asks me check logs, where I saw this error:

Error: Unable to resolve resource c:%5CUsers%5Cvishu%5COneDrive%5CDesktop%5Cproject%5Cfrontend%5Csrc%5Ccomponents%5Cservices%5Chandlers%5CExpandHandler.ts

## Expected behavior
Ideally, it should open the code change preview in vs code.

## System details (run `AWS: About` and/or `Amazon Q: About`)

- OS: Windows 11
- Visual Studio Code version: Latest
- AWS Toolkit version: -
- Amazon Q version: 1.94.0 2025-09-11

Contributor guide

Open the contributing guide

Research direction

Reproduce the Amazon Q code-change preview in VS Code on Windows 11 using the reported test-file flow. Start with the logged resource-resolution error and trace how the Windows path is passed to the preview; done means the generated file's code diff preview opens successfully in VS Code.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.