Add Code Symbols tool (#27733)

Lets you get all the code symbols in the project (like the Code Symbols
panel) or in a particular file (like the Outline panel), optionally
paginated and filtering results by regex. The tool gives the files,
lines, and numbers of all of these, which means they can be used in
conjunction with the read file tool to read subsets of large files
without having to open the entire large file and poke around in it.

<img width="621" alt="Screenshot 2025-03-29 at 12 00 21 PM"
src="https://github.com/user-attachments/assets/d78259d7-2746-44c0-ac18-2e21f2505c0a"
/>

Release Notes:

- N/A
This commit is contained in:
Richard Feldman
2025-03-31 05:13:13 +00:00
committed by GitHub
parent 5b2adfbb50
commit 9b40770e9f
9 changed files with 592 additions and 9 deletions
Generated
+3
View File
@@ -728,9 +728,12 @@ dependencies = [
"itertools 0.14.0",
"language",
"language_model",
"log",
"lsp",
"open",
"project",
"rand 0.8.5",
"regex",
"release_channel",
"schemars",
"serde",