Skip to content

Clarify that visible-files contains full absolute paths#157

Closed
Copilot wants to merge 1 commit intokang_featfrom
copilot/sub-pr-155-again
Closed

Clarify that visible-files contains full absolute paths#157
Copilot wants to merge 1 commit intokang_featfrom
copilot/sub-pr-155-again

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 5, 2026

Addressed review question about whether visible-files contains full or relative paths in the context of path normalization consistency.

Clarification Provided

visible-files at line 324 contains full absolute paths because ai-code--visible-window-files() collects files using buffer-file-name, which returns absolute paths.

This explains why line 325 applies ai-code--normalize-path to ensure consistent handling:

  • Existing files → file-truename (resolves symlinks)
  • Non-existing files → expand-file-name (absolute path)

The normalized paths are then used in skip-files for comparison at line 299, ensuring the skip logic works correctly regardless of whether files exist.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Update candidate filepath list for clarity in response to feedback Clarify that visible-files contains full absolute paths Feb 5, 2026
Copilot AI requested a review from tninja February 5, 2026 02:35
@tninja tninja closed this Feb 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants