- 015-keyboard-shortcuts.md (completed) - 020-command-palette.md (completed) - 021-file-attachments.md (next: @mentions, drag-drop, chips) - 022-long-paste-handling.md (summarize long pastes) - 023-symbol-attachments.md (LSP integration) - 024-agent-attachments.md (agent context) - 025-image-clipboard-support.md (image handling)
38 lines
991 B
Markdown
38 lines
991 B
Markdown
---
|
|
title: Symbol Attachments
|
|
description: Attach code symbols with LSP integration.
|
|
---
|
|
|
|
Implement Symbol Attachments
|
|
|
|
---
|
|
|
|
### LSP Integration
|
|
|
|
Integrate with the Language Server Protocol (LSP) to get a list of symbols in the current project.
|
|
|
|
---
|
|
|
|
### @ Symbol Autocomplete
|
|
|
|
When a user types `@` followed by a symbol-like pattern, trigger an autocomplete with relevant code symbols.
|
|
|
|
Include symbols from various file types supported by LSP.
|
|
|
|
---
|
|
|
|
### Attach and Navigate Symbols
|
|
|
|
Allow users to select a symbol from the autocomplete list to attach it to the prompt.
|
|
|
|
Display attached symbols as interactive chips. Optionally, implement functionality to jump to the symbol definition in an editor.
|
|
|
|
---
|
|
|
|
### Acceptance Criteria
|
|
|
|
- Typing `@` followed by a partial symbol name displays matching symbol suggestions.
|
|
- Selecting a symbol creates an attachment chip.
|
|
- Attached symbols are correctly formatted for submission.
|
|
- (Optional) Clicking a symbol chip navigates to its definition.
|