Skip to content

Commit 1a71998

Browse files
md file
1 parent 1870833 commit 1a71998

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

dev-docs/context-docs-_VS Code Ext Commands-Outline-for-Current-File-Command.md.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,19 @@
55
## context
66
This file describes a VS Code extension command called "Outline for Current File" (devdocs.outlineForCurrentFile). The command generates a structured outline of symbols (variables, functions, classes, etc.) in the currently open file, aiding in code navigation and understanding. The document explains the command's purpose, benefits, relevant configuration options in dev-docs.json, prerequisites, and usage instructions. It emphasizes the command's utility in improving code navigation, comprehension, and documentation generation. The file also provides an example of how to configure the command's behavior using JSON options in dev-docs.json, allowing users to filter and customize the outline based on symbol types, code patterns, and symbol names.
77

8+
---
9+
# Example JSON of Relevant `dev-docs.json` Options docs/_VS Code Ext Commands/Outline-for-Current-File-Command.md
10+
## Imported Code Object
11+
This JSON snippet represents configuration options for an AI-related feature, likely used in a development or documentation context. Here's a concise explanation:
12+
13+
1. `ai`: The main object containing AI-related settings.
14+
15+
2. `internalTypeFilters`: An array specifying which types of code elements to include, here focusing on "function" and "variable".
16+
17+
3. `codeFilters`: An array of keywords to filter code by, in this case looking for "export" and "async" in the code.
18+
19+
4. `nameFilters`: An array of specific names to filter by, here targeting "Symbol" and "getSymbol".
20+
21+
These options are likely used to customize how an AI tool processes or analyzes code, focusing on specific types, patterns, and names within the codebase.
22+
823

0 commit comments

Comments
 (0)