184 Commits

Author SHA1 Message Date
bobo.yang
2ea086b4c2 fix: Prevent editor jumping on new insertions
- Calculate and check if inserted text range is within visible area
- Ensure newly inserted text is centered in viewport if previously hidden
- Refactor applyCode function to include visibility checks
2024-01-10 11:35:57 +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
8915e178ac feat: Add fileHandler for read and write operations
- Added fileHandler.ts for handling read and write file operations
- Registered readFile and writeFile handlers in handlerRegister.ts
- Imported readFile and writeFile in handlerRegister.ts
2024-01-08 22:11:29 +08:00
Rankin Zheng
3f98b3dcdb Update GUI and historyMessagesBase.ts 2024-01-04 18:09:32 +08:00
bobo.yang
d34bf7b068 feat: Add new LSP functions and diffHandler code
- Added new LSP functions for symbol conversion and execution provider command
- Updated diffHandler to handle webviewPanel or webviewView for code application
- Modified lsp.ts file to incorporate new functions for range conversions

Closes #1234
2024-01-03 13:10:16 +08:00
bobo.yang
b734c69d61 set lang config default value 2023-12-27 16:15:39 +08:00
bobo.yang
7fdc5fc985 Fix language handling for Simplified Chinese 2023-12-26 11:24:32 +08:00
bobo.yang
257c60e493 Update language options in package.json and langHandler.ts 2023-12-25 20:51:26 +08:00
bobo.yang
9e6eeef721 Add language support for DevChat interface 2023-12-25 14:03:37 +08:00
bobo.yang
36a16ccd43 add code lens 2023-12-12 16:39:08 +08:00
bobo.yang
5bad8896f4 fix #137 2023-12-07 09:11:21 +08:00
bobo.yang
b1af136111 optimize start up for devchat-view 2023-11-30 13:25:18 +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
c39e51b401 update Command output parser 2023-11-23 08:11:10 +08:00
bobo.yang
08b604cee3 update Command new variables 2023-11-22 22:00:01 +08:00
bobo.yang
bf8386c068 support workflow commands 2023-11-22 17:45:38 +08:00
bobo.yang
44e786ecce remove ask-code command 2023-11-22 17:43:27 +08:00
bobo.yang
407f5d46dd output cost by /ask-code 2023-11-14 17:28:20 +08:00
bobo.yang
80c5548127 fix encode error for ask-code 2023-10-30 08:52:05 +08:00
bobo.yang
3adf655540 update devchat-ask version to 0.1.3 2023-10-14 07:19:50 +08:00
bobo.yang
82307f74e9 don't show error while stop ask-code command 2023-10-12 18:16:32 +08:00
bobo.yang
bbe29996b6 don't install devchat-ask in ask-code command 2023-10-12 10:00:09 +08:00
bobo.yang
17003cbc3c fix style error 2023-10-12 08:52:33 +08:00
bobo.yang
64bc3b7a26 update devchat-ask version 2023-10-12 08:45:57 +08:00
bobo.yang
ce25ef98a9 update topic after ask-code response 2023-10-11 23:51:58 +08:00
bobo.yang
9964a1891e fix timestampt while insert log 2023-10-11 23:51:58 +08:00
bobo.yang
c9f01f7373 Insert ask-code result to devchat 2023-10-11 23:51:57 +08:00
bobo.yang
822ea8f18a support stop while ask-code 2023-10-11 23:51:57 +08:00
bobo.yang
0886826da7 call smartqa 2023-10-11 23:51:57 +08:00
bobo.yang
676f3aef1c fix bug 2023-10-01 17:03:56 +08:00
bobo.yang
ec7de83529 update devchat, remove anthropic provider 2023-10-01 16:58:08 +08:00
bobo.yang
86f21ef03e support more llm models 2023-09-26 14:46:14 +08:00
Jinglei Ren
58a35685c0
Update text in historyMessagesBase.ts 2023-09-23 07:33:04 +08:00
bobo.yang
547796a54b update key setting flow 2023-09-23 07:22:17 +08:00
bobo.yang
0b4e2c25ed fix getUserAccessKey error 2023-09-14 16:44:41 +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
5e995ea4ee use full name model name 2023-09-13 10:08:16 +08:00
bobo.yang
89b25f7790 add message to get valid model list 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
1574253e85 Implement various enhancements and fixes across multiple files
- In runVSCodeCommand.ts, added a condition to convert the first argument to a Uri if the command is 'vscode.open'.
- In sendMessage.ts, added logic to prepend the previous command to the message text if the message starts with '/'.
- In commonUtil.ts, modified the spawnAsync function to replace arguments starting with '$' with their corresponding environment variable values.
- In handler.py, added code to create parent directories for a new file if they don't exist.
2023-08-31 15:15:12 +08:00
bobo.yang
c35de16bb2 Refactor getSetting and getUserAccessKey handlers
- Modified the getSetting function in updateConfig.ts to include key1 and key2 in the outgoing message.
- Adjusted the registration of the incoming message for getUserAccessKey in userAccessKey.ts to not expect key1 and key2.
2023-08-31 10:39:01 +08:00
bobo.yang
5bcce2a2cf Add getUserAccessKey handler and related functionality
- Imported getUserAccessKey in loadHandlers.ts and registered it as a message handler.
- Created a new file userAccessKey.ts to handle getting user access keys.
- The getUserAccessKey function retrieves the API key, determines its type (DevChat or OpenAI), and gets the endpoint.
- If no API key is found, a message is sent with empty values.
2023-08-31 09:12:58 +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
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
53fb5ff12b Update getSetting handler to send configuration value
- Imported MessageHandler in updateConfig.ts.
- Updated getSetting function to send the fetched configuration value using MessageHandler.
- Registered an outgoing message for 'getSetting' command.
2023-08-24 10:24:28 +08:00
bobo.yang
4840035108 Implement getSetting handler in updateConfig.ts
- Added getSetting function in updateConfig.ts to fetch configuration values.
- Registered getSetting in loadHandlers.ts.
- Updated the import statement in loadHandlers.ts to include getSetting.
2023-08-24 08:59:13 +08:00
bobo.yang
72a3859512 Fix import path in updateConfig.ts
- Corrected the import path for UiUtilWrapper from '@/util/uiUtil' to '../util/uiUtil'.
2023-08-23 22:58:46 +08:00