35 Commits

Author SHA1 Message Date
bobo.yang
c52c4339e0 save work 2024-04-01 17:15:44 +08:00
bobo.yang
3a51384e5d refactor: Update ordering of properties in package.json
- Update the order property for various models in package.json
- Add new properties and descriptions
- Remove unused properties
2024-01-08 21:08:07 +08:00
bobo.yang
b1af136111 optimize start up for devchat-view 2023-11-30 13:25:18 +08:00
bobo.yang
40e6efef8a clear Command python install functions 2023-11-23 13:02:02 +08:00
bobo.yang
fb33deb47a update to devchat without binary files 2023-11-03 11:13:22 +08:00
bobo.yang
c5f9e086a1 update devchat core depen version 2023-10-23 22:15:35 +08:00
bobo.yang
3ede604e4e update devchat version 2023-10-11 23:51:57 +08:00
bobo.yang
ec7de83529 update devchat, remove anthropic provider 2023-10-01 16:58:08 +08:00
bobo.yang
63a2d2f7dd update devchat version 2023-09-26 22:23:32 +08:00
bobo.yang
82dfba8456 remove useless key setting 2023-09-20 14:39:24 +08:00
bobo.yang
4c90f34aa5 update devchat version 2023-09-14 20:29:58 +08:00
bobo.yang
ae2f977df7 update devchat version 2023-09-13 16:59:20 +08:00
bobo.yang
9178710534 Update DevChat version and force reinstall packages
- Updated expected DevChat version to 0.2.3 in checkDevChatDependency function.
- Modified package installation command to force reinstall packages.
2023-08-30 22:48:31 +08:00
bobo.yang
46a70a15ac remove no reference function 2023-08-21 11:52:00 +08:00
bobo.yang
a1b124166d Fix string interpolation in devchat version logging
- Corrected the syntax for string interpolation in the log message that displays the devchat version and the expected version.
2023-07-25 12:35:49 +08:00
bobo.yang
45e4af7efd Update DevChat version and refactor log handling
- Updated expected DevChat version to 0.2.0.
- Refactored log handling to accommodate changes in DevChat's log structure.
- Added TopicEntry interface to handle new topic entries from DevChat.
- Updated topics function to return TopicEntry array.
- Adjusted topic creation to use new TopicEntry structure.
2023-07-24 08:20:26 +08:00
bobo.yang
3136283970 Update DevChat dependency check and configuration update
- Added version check for DevChat in checkDevChatDependency function.
- Updated configuration in both Global and Workspace scopes.
- Commented out the initial DevChat check in install.py and added --force flag to pip install command.
2023-07-19 16:06:45 +08:00
bobo.yang
b057d93593 Add log message for successful DevChat installation check
- Added a log message in commandsBase.ts to confirm successful DevChat installation check.
2023-07-12 17:37:00 +08:00
bobo.yang
b4d21be26c update install 2023-07-12 09:02:00 +08:00
bobo.yang
15141dd6ff Refactor error handling and logging in DevChat dependency check
- Added a new optional parameter 'showError' in checkDevChatDependency function in commandsBase.ts.
- Updated the conditions for logging error messages in checkDevChatDependency function.
- Updated the call to checkDevChatDependency in dependencyCheck function in statusBarViewBase.ts to pass 'showError' parameter.
- Updated the condition for logging stderr in CommandRun class in commonUtil.ts.
2023-07-07 08:56:28 +08:00
bobo.yang
46ea8cc436 Fix command execution in checkDevChatDependency function
- Enclosed the pipxDevChat command in quotes to ensure correct execution, especially when the path contains spaces.
2023-07-06 09:06:48 +08:00
bobo.yang
8f846e2d62 Refactor checkDevChatDependency function in commandsBase.ts
- Imported path module for handling file paths.
- Added pipxBinPath variable to store the pipx environment path.
- Changed error logging level from error to warn.
- Updated the way DevChat command is run and its path is updated.
2023-07-06 07:42:44 +08:00
bobo.yang
e53b0576b3 Refactor command location and DevChat installation
- Updated the locateCommand function to split the output of the 'where' and 'which' commands and return the first line.
- Modified the DevChat installation command to include the path in quotes to handle paths with spaces.
2023-07-06 07:42:44 +08:00
bobo.yang
e6f184cfe6 update devchat check logic 2023-07-06 07:42:44 +08:00
bobo.yang
d474957fe8 Add Python Path configuration and command to package.json
- Added a new configuration 'DevChat.PythonPath' in package.json.
- This configuration allows users to specify the location of the Python binary.
- Also added a new command 'DevChat.PythonPath' to the command palette.
- Updated commandsBase.ts to use the Python Path from the configuration.
- If the Python Path is not set in the configuration, it will use the default Python command.
- If the DevChat status is 'Missing required dependency: Python3', the status bar item will trigger the 'devchat.PythonPath' command.
2023-07-06 07:42:44 +08:00
bobo.yang
35215a7fb6 Prevent duplicate binPath in PATH environment variable
- Check if binPath is already in PATH before adding it.
- Add binPath to PATH only if it's not already present.
- Log a message when binPath is added to PATH.
2023-06-16 09:08:51 +08:00
bobo.yang
1bb215f51b Improve error handling in DevChat dependency check
- Add a catch block to handle errors when checking pipx environment path.
- Log detailed error message when DevChat dependency check fails.
- Move DevChat installation check to a separate try-catch block.
- Update logger error message to info when pipx environment path is not found.
2023-06-16 09:05:10 +08:00
bobo.yang
9820571783 Improve DevChat dependency check and logging
- Remove redundant DevChat installation check.
- Change logger error message to info when pipx environment path is not found.
- Move DevChat installation check outside of the if-else block.
- Return true after running 'devchat --help' command.
2023-06-15 21:20:52 +08:00
bobo.yang
5fc21c1982 Refactor checkDevChatDependency to accept pythonCommand
- Update checkDevChatDependency to take pythonCommand as an argument.
- Modify getPipxEnvironmentPath to use pythonCommand.
- Adjust statusBarViewBase.ts to pass pythonCommand.
- Update test cases in commandsBase.test.ts accordingly.
2023-06-13 11:56:03 +08:00
bobo.yang
3fc21b920e update log text 2023-06-13 10:45:11 +08:00
bobo.yang
659e35edf8 don't focus on output while devchat check fail. 2023-06-13 08:46:53 +08:00
bobo.yang
abba2c7df3 Add getValidPythonCommand function and improve dependency check
- Implement getValidPythonCommand in commandsBase.ts to detect Python 3.
- Update dependencyCheck in statusBarViewBase.ts to use getValidPythonCommand.
- Modify install.py to use sys.executable instead of hardcoded 'python3'.
2023-06-13 08:32:22 +08:00
bobo.yang
13f161506f Improve DevChat dependency check and error handling
- Add logger import to commandsBase.ts.
- Replace plain error handling with logger in checkDevChatDependency.
- Refactor getPipxEnvironmentPath and updateEnvironmentPath functions.
2023-06-12 08:39:02 +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