16 Commits

Author SHA1 Message Date
bobo.yang
40e6efef8a clear Command python install functions 2023-11-23 13:02:02 +08:00
bobo.yang
44e786ecce remove ask-code command 2023-11-22 17:43:27 +08:00
Rankin Zheng
b00da5eec5 Update commandManager.ts and MessageList/index.tsx
- Update the description for the 'ask-code' command in commandManager.ts
- Update the text in MessageList/index.tsx to promote the '/ask-code' command and provide additional information about the AI agent and pricing
2023-10-11 23:51:57 +08:00
bobo.yang
c6048d79fb Integrate DevChat commands into CommandManager
- Imported DevChat and created a new method to get commands from DevChat.
- Modified processText method to use the new getCommandListByDevChatRun method.
- Updated loadHandlers and regCommandList to use the new method.
- Added new methods in DevChat to get a list of commands and run a specific command.
2023-08-30 16:39:47 +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
df679ea613 Implement function to execute VSCode commands
- Added a new function 'doCommand' in 'doCommand.ts' to execute VSCode commands.
- The function takes a message and a panel as arguments, and uses the 'executeCommand' method from the 'vscode' module.
- Updated 'commandManager.ts' to return an empty string instead of undefined.
- Registered the new 'doCommand' handler in 'loadHandlers.ts'.
2023-08-21 11:52:00 +08:00
bobo.yang
fd011ee265 Added AskCode functionality to DevChat
- Added new settings for Python virtual environment and supported file types in package.json.
- Added new commands for starting and stopping AskCode Index in package.json.
- Registered new 'ask-code' command in CommandManager.
- Registered AskCode Index start and stop commands in extension.ts.
- Added 'askCode' handler in loadHandlers.ts and messageHandler.ts.
- Updated messageHandler to check for '/ask-code' in message text and call 'askCode' command.
2023-08-21 11:52:00 +08:00
bobo.yang
3462248cb8 update unit test 2023-07-24 00:11:56 +08:00
bobo.yang
1c6e002373 Add args property to Command interface and update regCommandList
- Added args property to Command interface in commandManager.ts and customCommand.ts.
- Updated regCommandList handler to convert command patterns with args.
- Replaced {{prompt}} with an array of empty strings based on the args count.
2023-06-02 13:45:12 +08:00
bobo.yang
b2ba9e148d Support env var and prompt input for command 2023-06-02 09:58:44 +08:00
bobo.yang
562a125902 handle vscode 2023-05-31 16:10:53 +08:00
bobo.yang
a3ee988167 add modify_actions command to test diff 2023-05-23 10:55:53 +08:00
bobo.yang
72b0822e9f Add devchat_apply.svg and escape special characters in commandManager
- Add new devchat_apply.svg file to assets
- Update commandManager.ts to escape special characters in command patterns
2023-05-18 15:51:52 +08:00
bobo.yang
5b42773273 fix custom command handler error 2023-05-12 17:33:46 +08:00
bobo.yang
7f2a869f3f Update .gitignore and refactor code
- Add DevChat related files to .gitignore
- Refactor package.json and settings
- Update commandManager.ts and remove example commands
- Implement customCommand.ts for handling custom commands
- Remove commitMessageCommand.ts and example commands
- Update chatConfig.ts and chatPanel.ts for new command handling
- Add new workflows for code and commit_message
2023-05-10 14:31:17 +08:00
bobo.yang
bac73dadb1 refactor code 2023-05-05 21:27:40 +08:00