Skip to content

Incorrect path separators in Copilot Chat file links #345420

Closed

Description

Description

Clicking a file in Copilot Chat’s “changed files” list fails with:
“The editor could not be opened because the file was not found.”

The workspace is on Linux through VS Code Remote. The changed file exists,
and opening it through Source Control works.

The failed path shown is:
\home\yossef\work\ditfw-etn-ups-powerdistribution-hid\lib\src\TildeTransport\inc\TildeHostStub.hpp

The actual Linux path is:
/home/yossef/work/ditfw-etn-ups-powerdistribution-hid/lib/src/TildeTransport/inc/TildeHostStub.hpp

Steps to reproduce:

  1. Open a remote Linux repository in VS Code.
  2. Use Copilot Chat to modify files.
  3. Click a file in the chat’s changed-files list.

Expected:
Open the diff using the correct remote Linux file URI.

Actual:
The editor reports that the file is missing. The displayed path uses
backslashes instead of Linux path separators.

Please investigate path/URI conversion in the chat changed-files diff links.

Issue Details

Item Value
Issue Category Bug
Target Visual Studio Code
Repository Microsoft/vscode
VS Code Version Code 1.144.0 (2c33b50, 2026-10-27T20:18:03Z)
OS Version Windows_NT x64 10.0.26200

Additional Issue Data

issue-data.md

Activity

  1. tanwar1981 commented on Nov 2, 2026

    @tanwar1981

    Yes, same issue I am facing too.

  2. rsys-asifs commented on Nov 5, 2026

    @rsys-asifs

    +1

  3. ppm1337 commented on Nov 5, 2026

    @ppm1337

    +1
    This makes it impossible to review single-file changes from the "Files changed" window above the chat prompt.
    To be clear, the "View All Edits" button still works, just clicking individual files from the list results in the aforementioned FileNotFound error.
    This issue first appeared to me with one of the most recent updates.

  4. gdlis commented on Nov 6, 2026

    @gdlis

    Same here. It's annoying as ....!

  5. fedestella263 commented on Nov 6, 2026

    @fedestella263

    Please fix it!

  6. added a commit that references this issue on Nov 6, 2026
    71a6a69
  7. added
    unreleased
    on Nov 6, 2026
  8. added this to the 1.146.0 milestone on Nov 6, 2026
  9. added
    insiders-released
    and removed
    unreleased
    on Nov 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

insiders-released

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions