eca
eca copied to clipboard
Add editor information to Complete
To upvote this issue, give it a thumbs up. See this list for the most upvoted issues.
Follow up #448.
Add editor information including but not limited to:
- recent edits/diff histories
- Found in both Cursor & Zed. Zed serializes to unified diff when injecting in the prompt.
- open files
- Zed & Cursor
- current active file/buffer
- Zed & Cursor
- type definitions
- (Zed collects identifiers near the user's cursor). I thought that was neat.
- related files
- Zed ranks files by how many definitions/imports are pointing to a file
- Cursor had a key for this but not too much info on it. It looks like they collect a whole lot client side but who knows what happens server side.
One thing to note: Most of these are not raw outputs. Zed dedupes, strips, drops or truncates "related files" if they are too big, etc. There seems to be a balance of information vs token size. If this feature moves forward, we may want to discuss ways to allow users to "tune" the aggressiveness.