665 Commits

Author SHA1 Message Date
Jinglei Ren
c23a71e67a Refine README for clarity and structure
- Improved wording in "Why DevChat?" section.
- Added "Context Building" section.
- Simplified information about Git or SVN requirement.
- Relocated "What is PCSD?" section.
- Removed "Automated Publishing Process" section.
2023-08-16 11:10:34 +08:00
Jinglei Ren
5da04b510e Add to Why DevChat in README 2023-08-11 08:46:40 +08:00
Jinglei Ren
5f45460f9c Update Why DevChat in README 2023-08-10 23:45:15 +08:00
Jinglei Ren
79baf127e2 Update What is DevChat in README 2023-08-10 20:27:39 +08:00
boob.yang
8a471d51a0
Merge pull request #242 from devchat-ai/fix_install_python_error2
Fix regex match and decoding in install.py
2023-08-10 08:35:30 +08:00
bobo.yang
ffeb632ec6 Fix regex match and decoding in install.py
- Changed the regex match to search for bytes instead of string.
- Added a condition to decode the pythonCmd only if no error occurred.
2023-08-10 08:31:11 +08:00
boob.yang
a5eaa6ec17
Merge pull request #241 from devchat-ai/fix_python_error
Fix python error
2023-08-09 19:55:52 +08:00
bobo.yang
fb29ea356c Added pathlib to handle file paths in install.py
- Imported pathlib module for handling file paths.
- Replaced the string replace method with pathlib's parent attribute to get the parent path of pythoncmd.
- Used os.path.join to construct the new pip_command_env path.
2023-08-09 19:49:02 +08:00
bobo.yang
7c3a0a4e7a Improved error handling in install.py
- Added import for 're' module for regular expressions.
- Changed return value from False to '' in get_pythoncmd_in_env function.
- Added a new function 'extract_actual_location' to extract the actual location from the text.
- Updated 'virtualenv_create_venv' function to handle errors more effectively and provide more detailed output.
2023-08-09 19:13:05 +08:00
bobo.yang
4c34d06b33 Add check for duplicate action registration
- Added a check in the registerAction method to prevent duplicate actions from being registered.
- Removed the line that clears the actions array in the loadCustomActions method.
2023-08-09 18:36:30 +08:00
boob.yang
c8d9e8534e
Merge pull request #240 from devchat-ai/fix_python_error
remove duplicated contexts
2023-08-09 15:59:30 +08:00
bobo.yang
e0c638e3c0 remove duplicated contexts 2023-08-09 15:58:15 +08:00
boob.yang
641140bb22
Merge pull request #239 from devchat-ai/fix_python_error
fix python install error
2023-08-09 15:44:31 +08:00
bobo.yang
03f4e8344e fix python install error 2023-08-09 15:43:15 +08:00
boob.yang
aae6c28b49
Merge pull request #237 from devchat-ai/install_python_env_in_app_dir
Add function to get application data directory
2023-08-09 08:17:28 +08:00
bobo.yang
0a4826c66e Add function to get application data directory
- Added a new function `get_app_data_dir` in `install.py` to get the application data directory based on the operating system.
- This function checks if the directory exists, if not, it creates the directory.
- Updated the `venvdir` in the `main` function to use this new function, which will now point to the application data directory.
2023-08-09 08:15:49 +08:00
boob.yang
823a2014fb
Merge pull request #236 from devchat-ai/relaod_commands_while_view_init
Refactor devchatView.ts to reload custom definitions
2023-08-09 08:00:16 +08:00
bobo.yang
28411d804f Refactor devchatView.ts to reload custom definitions
- Extracted the logic for reloading custom definitions into a separate method, `reloadCustomDefines`.
- This method is now called in `resolveWebviewView` and `reloadWebview` to ensure custom definitions are always up-to-date.
2023-08-09 07:51:16 +08:00
boob.yang
101c8ab082
Merge pull request #235 from devchat-ai/add_function_call_switch
Add option to enable/disable function calling in DevChat
2023-08-09 00:28:25 +08:00
bobo.yang
0d483e118c Add option to enable/disable function calling in DevChat
- Added a new configuration option "DevChat.EnableFunctionCalling" in package.json.
- This option allows users to enable or disable function calling for GPT.
- Updated devchat.ts to check this configuration before pushing function options.
2023-08-09 00:26:09 +08:00
boob.yang
fcffa1b4b2
Merge pull request #234 from devchat-ai/search_symbol_function
Search symbol function
2023-08-09 00:25:14 +08:00
bobo.yang
9a6e0f3041 Remove OpenVSCodeTerminalAction from ActionManager
- Removed the import statement for OpenVSCodeTerminalAction in actionManager.ts.
- Also removed the registration of OpenVSCodeTerminalAction in the ActionManager.
2023-08-09 00:22:43 +08:00
bobo.yang
b66f974e8b Added OpenVSCodeTerminalAction to ActionManager
- Imported OpenVSCodeTerminalAction in actionManager.ts.
- Registered OpenVSCodeTerminalAction in the ActionManager instance.
2023-08-09 00:16:03 +08:00
bobo.yang
c794e27c02 Update and add new actions in auto_command workflow
- Renamed and updated the get_project_tree action to use a Python handler.
- Added a new action load_file to load file content with a Python handler.
- Renamed and updated the new_document action to new_file with a Python handler.
- Added a new action search_text to search text in all files within the project.
- Removed the old load_file action from the extension_demo workflow.
2023-08-09 00:16:03 +08:00
bobo.yang
27bece07dc Add RunVSCodeCommandAction to execute VSCode commands
- Created a new file runVSCodeCommand.ts to define the RunVSCodeCommandAction class.
- This class implements the Action interface and provides a handlerAction method to execute VSCode commands.
- Updated actionManager.ts to register the RunVSCodeCommandAction.
2023-08-09 00:16:03 +08:00
boob.yang
895e2435f9
Merge pull request #233 from devchat-ai/install_devchat_with_python_3.11.4
Specify Python version in virtual environment creation
2023-08-07 19:45:32 +08:00
bobo.yang
e13e5685da Specify Python version in virtual environment creation
- Modified the virtual environment creation command to specify Python version as 3.11.4.
- This change affects the print statement and the subprocess.run command in the virtualenv_create_venv function.
2023-08-07 19:42:29 +08:00
boob.yang
8c66ef728d
Merge pull request #232 from devchat-ai/update_vscode_version
Update vscode version in package.json
2023-08-07 19:18:48 +08:00
bobo.yang
b870db7b73 Update vscode version in package.json
- Updated the vscode version from "^1.74.0" to "^1.75.0" in the engines section.
- Also updated the @types/vscode version from "^1.74.0" to "^1.75.0" in the dependencies section.
2023-08-07 19:16:33 +08:00
boob.yang
f94ef75fcd
Merge pull request #231 from devchat-ai/update_vscode_version
Downgrade vscode version in package.json
2023-08-07 18:53:35 +08:00
bobo.yang
84d1e4ee7e Downgrade vscode version in package.json
- Downgraded the required vscode version from ^1.77.0 to ^1.74.0 in package.json.
- Also updated the @types/vscode version to match the vscode version.
2023-08-07 18:51:35 +08:00
boob.yang
518abc9baa
Merge pull request #230 from devchat-ai/add_missed_svg
add missed svg
2023-08-04 18:06:21 +08:00
bobo.yang
077f333b75 add missed svg 2023-08-04 18:04:51 +08:00
boob.yang
bc10fc594d
Merge pull request #229 from devchat-ai/add_devchat_png
add devchat png
2023-08-04 16:26:39 +08:00
bobo.yang
7588c6932e add devchat png 2023-08-04 16:25:22 +08:00
Rankin Zheng
5b36f0b9d1
Merge pull request #228 from devchat-ai/fix-ajust-margin-in-message-header
Adjust margin in MessageHeader component
2023-08-04 11:13:03 +08:00
Rankin Zheng
96bef7ff1d Adjust margin in MessageHeader component
- Added marginRight of 10px to the container holding the ActionIcon in MessageHeader.
- Also applied marginRight of 10px to the ActionIcon itself for consistent spacing.
2023-08-04 11:07:55 +08:00
Rankin Zheng
4d3e53ded3
Merge pull request #227 from devchat-ai/70-implement-a-feature-to-display-a-message-at-the-top-of-the-chat-history-when-scrolled-to-the-top
70 implement a feature to display a message at the top of the chat history when scrolled to the top
2023-08-03 22:43:57 +08:00
Rankin Zheng
fd0d0c7c94 Move ChatPanel to pages folder
- Moved ChatPanel from views to pages folder.
- Updated import paths for ChatPanel in App.tsx and MessageContainer in ChatPanel.tsx.
2023-08-03 21:58:49 +08:00
Rankin Zheng
abbad8ee64 Add scroll to bottom button in ChatPanel
- Imported ActionIcon, IconCircleArrowDown, and IconCircleArrowDownFilled in ChatPanel.tsx.
- Added a scroll to bottom button in the chat panel.
2023-08-03 21:08:49 +08:00
Rankin Zheng
addc1bcd33 Remove unused ScrollArea type in ChatPanel.tsx
- Removed the unused type "never" for ScrollArea in ChatPanel.tsx.
2023-08-03 20:49:00 +08:00
Rankin Zheng
8da3083e9e Fix import path and remove unused CopyWebpackPlugin
- Fixed import path for avatar_devchat.svg in MessageHeader/index.tsx.
- Removed unused CopyWebpackPlugin from webpack.config.js.
2023-08-03 17:16:15 +08:00
Rankin Zheng
7062d423ae Delete assets folder and files 2023-08-03 17:05:44 +08:00
Rankin Zheng
ee226826d2 Move store and hooks to reducers folder
- Moved store.ts and hooks.ts from views to reducers folder.
- Updated import paths for store in index.tsx and hooks.ts.
- Adjusted import paths for store in chatSlice.ts and inputSlice.ts.
- Improved code formatting in chatSlice.ts.
2023-08-03 17:03:42 +08:00
Rankin Zheng
d7371149f1 Move MessageContainer to components folder
- Moved MessageContainer from views to components folder.
- Updated import path for MessageContainer in ChatPanel.tsx.
2023-08-03 17:02:02 +08:00
Rankin Zheng
0bcc339447 Move Icons and avatar images to appropriate folders
- Moved Icons.tsx from views to components/ChatIcons folder.
- Updated import path for Icons in InputMessage/index.tsx.
- Moved avatar_devchat.svg, avatar_spaceman.png, and avatar_user.svg from views to components/MessageHeader folder.
- Updated import paths for avatar images in MessageHeader/index.tsx.
2023-08-03 17:01:12 +08:00
Rankin Zheng
7e2d622236 Move CurrentMessage to components folder
- Moved CurrentMessage from views to components folder.
2023-08-03 16:53:31 +08:00
Rankin Zheng
9663f91fe8 Move MessageHeader to components folder
- Moved MessageHeader from views to components folder.
- Updated import path for MessageHeader in MessageContainer.tsx.
2023-08-03 16:51:39 +08:00
Rankin Zheng
cec95185b3 Move chatSlice and inputSlice to reducers folder
- Moved chatSlice and inputSlice from views to reducers folder.
- Updated import paths for chatSlice and inputSlice in various files.
- Adjusted import paths for chatSlice and inputSlice in store.ts.
2023-08-03 16:49:30 +08:00
Rankin Zheng
b900fe0b8b Move InputMessage and related files to components folder
- Moved InputMessage and InputContexts from views to components folder.
- Updated import paths for InputMessage in ChatPanel.tsx.
- Adjusted import paths for inputSlice and chatSlice in InputMessage and InputContexts.
- Improved code formatting in InputMessage.tsx.
2023-08-03 16:47:26 +08:00