957 Commits

Author SHA1 Message Date
bobo.yang
256c214213 feat: Add logger and log info in CodeLensProvider
- Add logger and log info to log the number of functionDefinitions, innerFunctionDefinitions, and registered codeLenses in the document
- Modify the loadConfig method to initialize config if registrations array is empty
- Check for document languageId before providing codeLenses
- Update fs.readFileSync method to use "utf-8" instead of "utf8"
2024-01-29 17:04:57 +08:00
Rankin Zheng
94c45654b9 Commented out apiKeyInvalidMessage() function call in historyMessagesBase.ts 2024-01-25 16:07:36 +08:00
Rankin Zheng
a86cc78398 Add async keyword to handleUri function and add delay before reloading webview 2024-01-25 10:35:14 +08:00
Rankin Zheng
73a3acc531
Merge pull request #416 from devchat-ai/feat/uri
Feat/uri
2024-01-24 18:03:34 +08:00
Rankin Zheng
9d5dc071a4 Add chat panel and reload webview 2024-01-24 17:58:08 +08:00
bobo.yang
37e0cc8440 fix: Ensure sidebar activation on 'Add Tests' click
- Introduced a delay to ensure the sidebar is activated
- Fixed issue where initial 'Add Tests' click was unresponsive
- Enhanced user experience by removing need for double-clicking
2024-01-23 16:10:23 +08:00
bobo.yang
181fe2ea2a fix: Resolve command execution error in DevChat
- Reordered the registration of CodeLens provider for correctness
2024-01-23 16:09:17 +08:00
bobo.yang
20b29484d4 fix: Improve error handling to log warnings
- Conditional checks added to log stderr as warnings instead of errors
- Ensured incidental stderr output doesn't imply execution failure
- Refactored error handling consistent with devchat-core behavior expectations

Closes #200
2024-01-23 10:23:22 +08:00
smallstone
f2ab969f88 Add registerHandleUri command 2024-01-18 17:52:55 +08:00
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
043b067864 feat: Suppress startup command notifications
- Commented out the display of informational message on command readiness
- Implemented a periodic check for the status of DevChat commands
- Optimized the conditional display of the DevChat status bar item tooltip
2024-01-10 10:56:56 +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
bobo.yang
c42cbb3f0d chore: Update unit test configuration
- Add unit test configuration for codeLens.ts file
- Include objectName and promptGenerator for codeLens
- Update unit test configuration embedding in the branch
2024-01-08 21:46:19 +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
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
20677fc074 remove invliad model fields 2023-12-28 11:41:31 +08:00
bobo.yang
9116aed60b optimize code 2023-12-27 21:41:43 +08:00
bobo.yang
972827070e remove debug log 2023-12-27 21:41:43 +08:00
bobo.yang
b895a6ffcf add lsp bridge services 2023-12-27 21:41:43 +08:00
小石头
eb0831bd38
Merge pull request #381 from devchat-ai/feat/remove-view
Remove unused files and code
2023-12-27 16:39:37 +08:00
smallstone
9a8d5ca038 Remove unused files and code 2023-12-27 16:35:38 +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
e789e93950 Add OPENAI_BASE_URL environment variable
Update commonUtil.ts and devchat.ts to include OPENAI_BASE_URL environment variable.
2023-12-21 10:19:50 +08:00
bobo.yang
4f1f95eea9 add new ide services 2023-12-20 20:39:04 +08:00
bobo.yang
c8df8917d9 package workflows as submodule 2023-12-20 12:57:55 +08:00
bobo.yang
c5921ef143 Update DevChat command_python configuration 2023-12-20 11:17:09 +08:00
bobo.yang
8ffdbc4b24 Fix string replacement syntax and closing parentheses in codeLens.ts 2023-12-19 21:34:04 +08:00
bobo.yang
fd65f094a5 Fix string replacement syntax and closing
parentheses in FunctionTestCodeLensProvider
2023-12-19 17:39:21 +08:00
bobo.yang
ef75915b7b Add containerRange property to FunctionDefinition 2023-12-19 12:32:41 +08:00
bobo.yang
83744b5516 replace prompt command with route command 2023-12-18 21:52:00 +08:00
bobo.yang
40c2f327a6 Update DevChat installation process 2023-12-18 14:41:12 +08:00
smallstone
d7726df7f8 Fix messageUtil.registerHandler typo and add
reloadMessage handler
2023-12-13 11:08:09 +08:00
smallstone
891add5586 feat: update topic 2023-12-13 11:08:09 +08:00
smallstone
f128be6789 Refactored ChatPanel component for improved UX
- ChatPanel now observes viewport dimensions to allow for smarter re-rendering.
- Scroll to bottom of chat is smoother with new 'scrollToBottom' function.
- Added various new message handlers like 'receiveMessagePartial', 'receiveMessage' and 'systemMessage' for diverse forms of user-interaction.
- ChatPanel width is now dynamically updated using the 'chat.updateChatPanelWidth' action.
- Added visual elements like stop button, regeneration button, and scrolling indicator for better usability.
- Rendered InputMessage on every re-render to update input field value in real-time.
2023-12-13 11:08:09 +08:00
smallstone
5b69359a4b feat: update bridge 2023-12-13 11:08:09 +08:00
smallstone
857f0a9b01 feat: add idea package 2023-12-13 11:08:09 +08:00
smallstone
01e7d90d3a feat: add request for idea 2023-12-13 11:08:09 +08:00
smallstone
e4a571a0bd Refactor MessageUtil class
- Import IdeaBridge module for IDEA platform integration
- Modify registerHandler() method to use IdeaBridge for IDEA platform
- Add console.log statement in sendMessage() method for debugging
- Modify webpack.idea.config.js to properly define process.env.platform as string
2023-12-13 11:08:09 +08:00
smallstone
700cfff6ba feat: update platform 2023-12-13 11:08:09 +08:00
bobo.yang
baf2fa3a36 add inner_function type for codelens 2023-12-12 17:34:53 +08:00
bobo.yang
0f5bd5e78b Remove unused environment variables 2023-12-12 16:39:49 +08:00
bobo.yang
36a16ccd43 add code lens 2023-12-12 16:39:08 +08:00
bobo.yang
627374dc90 add new ide services for workflow 2023-12-11 15:21:03 +08:00
bobo.yang
5ce6553f45 clear input data before new command running 2023-12-08 14:16:07 +08:00
bobo.yang
e2262a38b6 feat: Expand defRefsContext functionality
- Update defRefsContext to find all symbol references
- Change to include non-code sites as well as code sites
2023-12-08 14:14:26 +08:00