80 Commits

Author SHA1 Message Date
bobo.yang
fa03786854 refactor: Adjust selection range for function docstrings
- Ensured selection range now includes the last line
- Fixed an issue causing line duplication during refactoring
- Improves accuracy for function extraction in docstrings
2024-03-12 16:49:21 +08:00
bobo.yang
33a4ee14f1 refactor: Remove usage of deprecated contexts and APIs
- Comment out refDefsContext and defRefsContext usage in loadContexts
- Replace accessKey logic with defaultModel in several files
- Remove unused functions related to API key handling

Closes #286
2024-03-10 16:35:10 +08:00
小石头
5be13ca16c Update DevChat commands and add comment generation 2024-03-08 16:11:57 +08:00
小石头
19b1280222 Update submodules in gui and workflowsCommands 2024-03-07 18:50:38 +08:00
bobo.yang
d87b7c5801 feat: Implement shortcut for DevChat input focus
- Added keybindings for DevChat input focus shortcut
- Implemented focusHandler to focus on DevChat input upon shortcut
2024-02-07 17:37:02 +08:00
bobo.yang
dd01e78da4 refactor: Remove legacy TopicView components
- Deleted obsolete TopicManager & TopicTreeDataProvider classes
- Cleaned up Topic related logic across several modules
- Replaced TopicManager usage with new methods after webview migration
2024-02-05 16:29:00 +08:00
bobo.yang
81c0e8be73 refactor: Simplify topic interaction in UI
- Remove topic-related views, commands, and handlers from the codebase
- Refactor code to align with the new unified topic interaction method
- Streamline UI by eliminating unnecessary elements and consolidating views
2024-02-05 11:19:01 +08:00
Rankin Zheng
a86cc78398 Add async keyword to handleUri function and add delay before reloading webview 2024-01-25 10:35:14 +08:00
Rankin Zheng
73a3acc531
Merge pull request #416 from devchat-ai/feat/uri
Feat/uri
2024-01-24 18:03:34 +08:00
Rankin Zheng
9d5dc071a4 Add chat panel and reload webview 2024-01-24 17:58:08 +08:00
bobo.yang
37e0cc8440 fix: Ensure sidebar activation on 'Add Tests' click
- Introduced a delay to ensure the sidebar is activated
- Fixed issue where initial 'Add Tests' click was unresponsive
- Enhanced user experience by removing need for double-clicking
2024-01-23 16:10:23 +08:00
smallstone
f2ab969f88 Add registerHandleUri command 2024-01-18 17:52:55 +08:00
bobo.yang
043b067864 feat: Suppress startup command notifications
- Commented out the display of informational message on command readiness
- Implemented a periodic check for the status of DevChat commands
- Optimized the conditional display of the DevChat status bar item tooltip
2024-01-10 10:56:56 +08:00
bobo.yang
7d055f346f fix: Update async/await usage in command handling
- Update async/await in command handling for improved performance
- Refactor updateSysCommand and sendCommandListByDevChatRun functions
- Handle errors during updateSysCommand more efficiently

Closes #156
2024-01-09 08:37:31 +08:00
bobo.yang
c8df8917d9 package workflows as submodule 2023-12-20 12:57:55 +08:00
bobo.yang
40c2f327a6 Update DevChat installation process 2023-12-18 14:41:12 +08:00
bobo.yang
36a16ccd43 add code lens 2023-12-12 16:39:08 +08:00
bobo.yang
05cf0f2c71 refactor: Improve requirements.txt search & install checks
- Update search logic for requirements.txt prioritizing usr, org, sys directories
- Introduce check to prevent redundant python environment installations
- Add variables for controlling multiple installations in workflows
2023-12-08 10:27:27 +08:00
bobo.yang
74e849e483 Fix path to requirements.txt file 2023-12-07 09:11:21 +08:00
bobo.yang
571a89ec5b don't show error while requirements.txt not exist 2023-12-07 09:11:21 +08:00
bobo.yang
0ee31f1721 fix #51 2023-12-07 09:11:21 +08:00
bobo.yang
381dbea026 Update slash command information message 2023-12-07 09:11:21 +08:00
bobo.yang
1ac83d4d79 check DevChat key whether is valid 2023-12-07 09:11:21 +08:00
bobo.yang
7dac46b0be first check workflow path 2023-11-30 08:13:26 +08:00
bobo.yang
dc1836510d remove command and action extension 2023-11-29 23:34:15 +08:00
bobo.yang
40e6efef8a clear Command python install functions 2023-11-23 13:02:02 +08:00
bobo.yang
407f5d46dd output cost by /ask-code 2023-11-14 17:28:20 +08:00
bobo.yang
60906f9509 fix invalid key error 2023-10-26 22:45:31 +08:00
bobo.yang
3adf655540 update devchat-ask version to 0.1.3 2023-10-14 07:19:50 +08:00
bobo.yang
64bc3b7a26 update devchat-ask version 2023-10-12 08:45:57 +08:00
bobo.yang
0886826da7 call smartqa 2023-10-11 23:51:57 +08:00
bobo.yang
331b72f09f show devchat view before set api key 2023-09-23 09:12:03 +08:00
bobo.yang
b2422b1694 don't clear api key when escape 2023-09-23 08:16:45 +08:00
Jinglei Ren
7a4382a9d1 Update key setting instruction 2023-09-23 08:13:00 +08:00
Jinglei Ren
826b98d1b2
Update text in commands.ts 2023-09-23 07:39:19 +08:00
bobo.yang
547796a54b update key setting flow 2023-09-23 07:22:17 +08:00
bobo.yang
650281059c reg command to update valid chat models 2023-09-13 10:08:16 +08:00
bobo.yang
16046ec517 remove unused configuration config 2023-09-13 10:08:16 +08:00
bobo.yang
a7bb815df5 Use access key set by command while no valid key 2023-09-13 10:08:16 +08:00
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
9eee3f1c36 Refactor getUndefinedSymbols and getSymbolDefine functions
- Replaced Chinese comments with English in getUndefinedSymbols function.
- Added new functions matchSymbolInline and getMatchedSymbolPositions to find symbol positions.
- Refactored getSymbolDefine function to use the new functions for finding symbol positions.
- Added a check to avoid pushing the same symbol definition multiple times.
- Moved logger.channel()?.show() to the beginning of registerAskCodeIndexStartCommand and registerAskCodeSummaryIndexStartCommand functions.
2023-08-30 22:57:51 +08:00
bobo.yang
9261a07589 clone commands by run --update-sys 2023-08-30 17:03:22 +08:00
bobo.yang
63fbb1289d Add InstallCommands functionality to DevChat
- Added a new command "InstallCommands" to the package.json file.
- Created a new function "registerInstallCommandsCommand" in commands.ts to handle the execution of the new command.
- The function checks for a directory in the user's home directory, if it exists it performs a git pull, if not it clones a git repository.
- The function is registered in the extension.ts file.
- Added a function "sendCommandListByDevChatRun" in regCommandList.ts to send the command list.
- The new command is executed in the statusBarView.ts file.
- Updated the InputMessage component to register a handler for the 'regCommandList' message.
- Updated the InputStore to handle the new commands and removed the old "regCommandMenus" function.
2023-08-30 16:39:47 +08:00
bobo.yang
427398704b fix #97, update tip text and show output 2023-08-29 15:29:27 +08:00
bobo.yang
48a9f0cb28 Add version check for devchat-ask package
- Added a version check for the devchat-ask package in commands.ts.
- Updated appInstall function in app_install.ts to accept package version.
- Modified installAskCode function in install_askcode.ts to pass package version to appInstall.
- Updated installDevchat function in install_devchat.ts to pass empty string as package version to appInstall.
- Added a new utility function getPackageVersion in pip_package_version.ts to get the installed version of a package.
2023-08-24 10:45:51 +08:00
bobo.yang
9c16bced23 Implement feature toggles for beta commands
- Added feature toggles for beta commands in the package.json file.
- Implemented dynamic registration of commands based on feature toggles.
- Added error messages for users trying to access beta commands without the correct permissions.
- Updated the version of the devchat-ask package based on the feature toggles.
- Created a new featureToggle handler to manage feature toggles.
2023-08-24 10:45:51 +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
bobo.yang
3bf09924d7 Refactor commands.ts
- Update the registerAskCodeIndexStartCommand function to pass the progressBar object to the installAskCode and indexCode functions.
- Update the installAskCode function to accept the progressBar object as a parameter.
- Update the indexCode function to accept the progressBar object as a parameter.
- Update the progress bar messages in the registerAskCodeIndexStartCommand function.
2023-08-21 11:52:00 +08:00
bobo.yang
9a6a8ea8db Add ProgressBar class
- Create a new ProgressBar class to handle progress reporting.
- Initialize the progress bar with a title and location.
- Implement the init() method to start the progress bar.
- Implement the update() method to update the progress message.
- Implement the end() method to end the progress bar.
- Implement the endWithError() method to end the progress bar with an error message.
2023-08-21 11:52:00 +08:00
bobo.yang
986848fea9 install askcode by conda 2023-08-21 11:52:00 +08:00