Cannot Open Modified Files from Amazon Q Chat – “Editor Could Not Open” Error
- Dominant language
- TypeScript
- Stars
- 2k
- Forks
- 807
- Avg merge
- 10h 12m
- Merged PRs (30d)
- 7
Description
## Problem
I’m experiencing an issue with the Amazon Q extension in VS Code where I am unable to open modified files directly from the Amazon Q chat interface. When I click on a file that has been modified (e.g., through a code suggestion or diff), I get the following error:
"The editor could not be opened due to an unexpected error."
However, the same file can be opened manually through the Explorer or using the Command Palette, so the file path itself seems valid. The issue appears to be specific to Amazon Q's mechanism for opening the file.
This makes it difficult to quickly review or accept code changes suggested by the assistant.
## Steps to reproduce the issue
Ask Amazon Q to suggest or modify code in a file.
In the Amazon Q chat panel, click on the modified file shown in the results.
Observe the error:
"The editor could not be opened due to an unexpected error."
Manually open the same file through VS Code Explorer – works fine.
## Expected behavior
Clicking on a modified file from Amazon Q chat should open it in the editor without errors.
## System details (run `AWS: About` and/or `Amazon Q: About`)
- OS: Windows 11
- Visual Studio Code version: 1.104.0
- AWS Toolkit version: 3.74.0
- Amazon Q version: 1.94.0
Contributor guide
Research direction
No source files, tests, or entry points are named in the issue. First reproduce the failure on Windows 11 with the listed VS Code, AWS Toolkit, and Amazon Q versions by opening a modified file from Amazon Q chat, then compare that path with opening the same file through Explorer or the Command Palette. Done means modified files open from chat without the unexpected-error message.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100