microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.11k stars 28.82k forks source link

Chat file anchors - problem with file name rendering #229514

Open lszomoru opened 1 week ago

lszomoru commented 1 week ago

Testing #229436

  1. Attached two files from the workspace that have the same name
  2. Asked Copilot to explain the code in the attached files.
  3. Here is the opening paragraph: Image

Couple of issues:

  1. It's interesting how the two files with the same name are disambiguated in the response
  2. File label at the bottom of the screenshot seems to use bold font-weight
mjbvz commented 1 week ago

Good catch. That is confusing for the names. I think we should probably show more of the path in cases like this


The bolding can actually happen based on the generated output:

**[some/file/path.ts](some/file/path.ts)**

I wasn't sure if this was a bug or expected. It does help the name stand out more as the markdown indicated

lszomoru commented 1 week ago

I wasn't sure if this was a bug or expected. It does help the name stand out more as the markdown indicated

I think that file names should be rendered in a consistent fashion (either all bold, or all normal).