Skip to content

Commit badbeb0

Browse files
committed
Add documentation for symbol search workflow in chat
1 parent e40d96a commit badbeb0

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,15 @@
11
# Symbol Search
2+
3+
<p className="subtitle">Symbol Search is a query type or workflow that helps developers understand how specific symbols (like functions, variables, or hooks) are used across a codebase by combining search results with contextual analysis through chat.</p>
4+
5+
It enables developers to explore and understand symbol usage patterns through a two-step process. First, developers search for a specific symbol (like `useCallback`) using Sourcegraph Chat, which returns relevant code snippets from across the codebase. These search results are automatically preserved as context for follow-up chat interactions. Developers can then refine their understanding by selecting specific search results and asking natural language questions about the symbol's usage patterns. The chat will analyze the selected code context and provide a comprehensive summary of how the symbol is implemented and used throughout the codebase.
6+
7+
### Try it
8+
9+
1. Query for `= useCallback`
10+
2. Select a subset of the search results which include usage for `useCallback`
11+
3. Follow up and ask Sourcegraph chat `Summarize how useCallback is used`
12+
13+
### Demo
14+
15+
🔴 Waiting for UI to update 🔴

0 commit comments

Comments
 (0)