Skip to content

VS Code does not properly interpret GitHub Copilot in-chat code references #290382

Description

@garretwilson
  1. Create a multi-root VS Code workspace with the first (default) root set to /c/path/foo and another root /c/path/bar.
  2. Discuss code in /c/path/foo in GitHub Copilot chat.
  3. The LLM will generate a link such as (Markdown):

    **Direct invocation path** ([lines 171-179](cloud-provider-aws/src/main/java/dev/flange/cloud/provider/aws/AbstractAwsCloudFunctionServiceHandler.java#L171-L179)):

  4. Try to click on the link "lines 171-179".

Expected: Clicking on the link will open /c/path/foo/cloud-provider-aws/src/main/java/dev/flange/cloud/provider/aws/AbstractAwsCloudFunctionServiceHandler.java and highlight the indicated lines

Actual: VS Code shows an error dialog with the title "Unabled to open 'AbstractAwsCloudFunctionServiceHandler.java..." and the message "The editor could not be opened because the file was not found."

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions