AI Context: Highlighted vs Plain @file.md — What's the Difference?

Hey everyone, quick question about how file references work in project rules (.mdc) from .cursor/rules:

When I manually type @file.md and select the file from the dropdown, it gets highlighted in yellow. But when the AI generates the same reference (e.g. @file.md), it shows as plain text without the yellow highlight.

Check these examples:


image

Just to confirm: if a file reference like “@file.md” is not manually selected from the dropdown (so it’s not yellow-highlighted), will it still be included in the AI’s context when the rule triggers? Or is manual selection required for the file to actually be considered?

Also, if I reference a file from the regular docs/ folder (e.g. docs/file.md), is it treated the same way? Does it still get included in the context, or do project rules behave differently there?

Thanks!