46 Commits

Author SHA1 Message Date
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
6b96d911f0 Implement updateLastModifyTime function and status bar item
- Added a new function updateLastModifyTime in askCodeUtil.ts to update the last modification time of files.
- The function ignores hidden files and directories (those starting with '.').
- The function creates the directory if it does not exist before writing the file.
- Added a new status bar item for AskCode in statusBarView.ts.
- The status bar item checks the indexing status every 10 seconds and updates its tooltip and command accordingly.
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
e2e761fd16 Separate handling for OpenAI and DevChat API keys
- Renamed and split the API key settings in package.json into DevChat and OpenAI specific keys.
- Updated the commands for setting API keys to handle OpenAI and DevChat keys separately.
- Modified the ApiKeyManager to handle and validate OpenAI and DevChat keys separately.
- Updated the status bar view to use the DevChat access key command.
- Adjusted the tests to reflect the new handling of API keys.
2023-08-03 15:09:34 +08:00
bobo.yang
892c3638cc Add command to set Python Path in DevChat configuration
- Added a new command 'devchat.PythonPath' in commands.ts.
- This command prompts the user to input a Python Path and updates the DevChat configuration with the provided path.
- The new command is registered in the extension.ts file.
2023-07-06 07:42:44 +08:00
bobo.yang
ba097eab26 add unit tests for src 2023-05-31 16:10:53 +08:00
bobo.yang
82faf14eb6 Separate VSCode from core logic for ISSUE #125
- Extract VSCode-related code from core logic.
- Improve modularity for easier unit testing.
2023-05-31 16:10:53 +08:00
bobo.yang
562a125902 handle vscode 2023-05-31 16:10:53 +08:00
bobo.yang
cad2bbb69d refactor code 2023-05-31 16:10:53 +08:00
bobo.yang
44f3db43b2 Truncate topic label to 20 characters in delete confirmation dialog
- Check if item.label exists and use item.label.label or 'Unknown Topic'.
- Truncate the label to 20 characters and add ellipsis if needed.
- Update the confirmation message to display the truncated label.
2023-05-28 22:01:32 +08:00
bobo.yang
ceafac1362 Add confirmation dialog before deleting a topic
- Replace the previous deleteTopic command with a new callback function.
- Use vscode.window.showWarningMessage to display a confirmation dialog.
- Execute the delete operation only if the user confirms.
2023-05-28 21:46:44 +08:00
bobo.yang
2393091dc1 Add isVersionChangeCompare flag to extension.ts
- Added a new flag isVersionChangeCompare to prevent duplicate version checks.
- Updated the condition to check for version changes only when the flag is false.
2023-05-28 14:30:39 +08:00
bobo.yang
f326cf9ef3 Update key names in secretStorage
- Replace "devchat_version_old" with "DevChatVersionOld".
- Update related variable names and function calls.
2023-05-28 14:03:03 +08:00
boob.yang
23277e2b85
Merge pull request #118 from covespace/Change-access-key-prefix-'dc-'-to-'DC.'
Change access key prefix 'dc ' to 'dc.'
2023-05-28 13:13:30 +08:00
bobo.yang
a9fa1c7abb Improve secretStorage usage and pipx installation
- Add await keyword to secretStorage.store call in extension.ts.
- Set statusBarItem.command to undefined instead of an empty string.
- Force pipx installation in install.py by adding --force flag.
2023-05-28 09:58:53 +08:00
Jinglei Ren
50b8ae8185 Unify naming convension ('openai'/'Openai', no 'openAi'/'openAI') 2023-05-28 08:32:12 +08:00
bobo.yang
08d4eedaa9 Add topic management features to DevChat extension
- Implement Topic and TopicManager classes.
- Add TopicTreeDataProvider and TopicTreeItem classes.
- Register new commands for topic management.
- Update package.json with new commands and dependencies.
2023-05-24 13:04:15 +08:00
bobo.yang
a1294110f0 update devchat while vscode update 2023-05-19 20:07:34 +08:00
bobo.yang
94413e6f1f install by pipx 2023-05-19 13:09:58 +08:00
bobo.yang
846bcecd71 update tip info 2023-05-19 09:20:48 +08:00
bobo.yang
31a15216a5 fix pip install bug 2023-05-18 23:02:19 +08:00
bobo.yang
e3c9f69822 Update package version and improve installation process
- Bump package version from 0.0.34 to 0.0.38.
- Change pip3 install command to include --upgrade flag.
- Add check for DevChatPath configuration before setting status to ready.
2023-05-18 22:25:29 +08:00
bobo.yang
219a69015e apply diff actions to source file 2023-05-18 15:25:46 +08:00
bobo.yang
0b6d783fb1 Update DevChat commands and webview options
- Change DevChat.OPENAI_API_KEY title and add category
- Replace devchat.openChatPanel command with devchat-view.focus
- Update statusBarItem.command to devcaht.onStatusBarClick
- Set webviewOptions with retainContextWhenHidden: true for DevChatViewProvider
2023-05-16 17:49:13 +08:00
bobo.yang
6695bf1ae7 save work 2023-05-16 14:35:37 +08:00
bobo.yang
2f7d3a99a2 open DevChat by sidebar 2023-05-16 14:35:01 +08:00
bobo.yang
fa3c0a38be Support status item action 2023-05-16 14:24:24 +08:00
bobo.yang
7fcf57772e Update package.json and commands for Chinese support
- Add activationEvents to package.json for better extension activation
- Add Chinese commands for addConext, askForCode, and askForFile
- Register Chinese commands in contributes/commands.ts
- Set isChineseLocale context based on the user's locale
2023-05-16 10:40:57 +08:00
bobo.yang
eca629b4f3 check dependence only once 2023-05-11 10:27:54 +08:00
bobo.yang
da89e38ffa User utf8 as file code. Copy .chat . 2023-05-10 18:30:17 +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
2eca8ee438 create log channel 2023-05-09 08:52:07 +08:00
bobo.yang
bac73dadb1 refactor code 2023-05-05 21:27:40 +08:00
bobo.yang
0d59445cef add context implementation 2023-05-04 17:47:57 +08:00
bobo.yang
2799d30c08 don't copy instructions again 2023-05-04 17:46:06 +08:00
bobo.yang
06215450ad support user definded instructions 2023-05-04 17:46:06 +08:00
bobo.yang
101638b161 add doCommit message 2023-05-04 17:38:07 +08:00
bobo.yang
ed4b55a8f3 support commitmsg code block 2023-05-04 17:38:07 +08:00
bobo.yang
5f154777f6 release 0.0.1 2023-04-27 14:07:46 +08:00
bobo.yang
ce4634767c replace GTP call with devchat 2023-04-26 06:48:39 +08:00
bobo.yang
f03b2574d1 update chat style, and support edit history msg 2023-04-25 08:08:40 +08:00
bobo.yang
1cf84e5f71 handle different panel with unique name 2023-04-22 21:15:08 +08:00
admin
4075819c79 Implement chat UI in VSCode extension with improved styling 2023-04-21 06:51:57 +08:00
Jinglei Ren
0d15c4550c Add prompt command 2023-04-14 09:29:10 +08:00
Jinglei Ren
561ec4b505 Scaffold the VS Code extension 2023-04-14 08:11:05 +08:00