File selection with @ doesn't work in 2.0

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

When I am trying to reference an interface in a chat prompt using @ it doesn’t work often in 2.0.
Last reproduction:

  • React project (Ts).
  • Finds components but doesn’t find type/interface declarations in .ts files.
  • If I reference the whole ts file that it can find.

I downgraded to 1.7 and it works fine again.

Steps to Reproduce

  • React project (Ts).
  • Finds components but doesn’t find type/interface declarations in .ts files.
  • If I reference the whole ts file that it can find.

Expected Behavior

Find interfaces and types the same way as in 1.7.

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version 2.0
I already downgraded so don’t know the exact version anymore.

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

Hey, thanks for the report. This is actually expected behavior in Cursor 2.0: the @Code and @Definitions features were removed as part of the context menu changes. The Agent now gathers the needed context on its own without manual symbol references.

Workaround: reference the file that contains the interface (for example, @types.ts) and explicitly mention the interface name in your prompt.

This behavior is being tracked here: Typing @ in the composer no longer autocompletes / references project symbols

Thank you for the prompt reply.
I see that it was intentional. Sometimes teams break their product intentionally :slight_smile:
I will probably then be stuck using 1.7 forever until this is brought back because the “agentic context gathering” is just not good enough in a large codebase.

1 Like

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.