Skip to content

File reference @ does not show files in the current directory #3092

@adamszustak

Description

@adamszustak

Describe the bug

When using the @ file mention feature in Copilot CLI, referencing files relative to the current working directory using @ does not work as expected (does not show available files). However, other path styles do work.

Actual Behavior:

  • @.. — ✅ shows files from parent directory
  • @~ — ✅ shows files via home directory path
  • @/ — ✅ shows files via absolute root path
  • @ or @./ — ❌ does not show files in the current directory

Affected version

1.0.40

Steps to reproduce the behavior

  1. Open Copilot CLI in a directory containing files
  2. Type @ or @./ to reference files in the current directory
  3. Observe: no file suggestions or files are not resolvable

Expected behavior

Typing @ or @./ should present files from the current working directory, consistent with how other
path styles behave

Additional context

Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:input-keyboardKeyboard shortcuts, keybindings, copy/paste, clipboard, mouse, and text input

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions