6 Commits

Author SHA1 Message Date
bobo.yang
4d465a3613 Refactor ask-code-summary feature and remove redundant commands
- Removed redundant commands related to ask-code-summary from package.json.
- Created a new file contextSummary.ts to handle the ask-code-summary context.
- Registered the ask-code-summary context in loadContexts.ts.
- Refactored the ask-code-summary related functions in commands.ts for better code organization and readability.
- Updated the askcode_summary_index.py script to handle target directory for indexing.
2023-08-31 17:52:06 +08:00
bobo.yang
5d2a1a806c Removed unnecessary print statement
- Removed a print statement that was outputting the file path of non-source code files.
- This change makes the output cleaner and less cluttered.
2023-08-22 10:21:58 +08:00
bobo.yang
c2bb0a9cc6 Optimized the code for counting true values in dictionary
- Replaced the manual loop for counting true values in the dictionary 'g_file_need_index' with Python's built-in function 'sum()'.
- This change makes the code more concise and more Pythonic.
2023-08-22 09:54:07 +08:00
bobo.yang
6b37da5bcb Updated askcode_summary_index.py for better file indexing
- Added a global dictionary 'g_file_need_index' to keep track of files that need indexing.
- Modified 'is_file_modified' function to print file paths of non-source code and hidden files.
- Refactored 'custom_file_filter' function to use 'g_file_need_index' for determining if a file needs indexing.
- Removed unnecessary print statements for cleaner output.
2023-08-22 09:11:38 +08:00
bobo.yang
6a2a7b67e8 Updated file filtering in askcode_summary_index.py
- Removed print statement for every file path in custom_file_filter function.
- Added condition to check if file needs indexing before printing file path.
- Modified return logic for directory and file modification checks.
2023-08-21 11:52:00 +08:00
bobo.yang
6713a98df9 Add commands for DevChat
- Added commands for adding context and summary to DevChat.
- Updated the package.json file to include the new commands.
- Added command handlers for indexing and describing codebase summaries.
- Created a new file, askcode_summary_index.py, for indexing and describing codebase summaries.
- Added a new setting file, _setting_.json, for the summary action in the auto_command workflow.
- Added a new handler file, handler.py, for the summary action in the auto_command workflow.
2023-08-21 11:52:00 +08:00