1810 Commits

Author SHA1 Message Date
boob.yang
782a3e1a93
Merge pull request #503 from devchat-ai/update_tools_submodule_240422
Update subproject commit hash in tools submodule
2024-04-22 09:59:01 +08:00
bobo.yang
6a7e47586c Update subproject commit hash in tools submodule 2024-04-22 09:56:26 +08:00
boob.yang
0ea20c5fed
Merge pull request #502 from devchat-ai/feature/optimize-code-completion-filtering-#353
Implement enhanced filtering for code completion to optimize performance
2024-04-21 17:08:09 +08:00
bobo.yang
5ca6a71852 feat: Enhance code completion filtering logic
- Implemented filtering based on comment symbols followed by filenames
- Added filtering for comments indicating omitted code sections
- Adjusted prefix gathering for inline completion to consider previous lines
2024-04-21 17:01:07 +08:00
boob.yang
2ed9698d35
Merge pull request #501 from devchat-ai/feature/bilingual-quick-fix-support-#351
Add Bilingual Support for Quick Fix Prompts in VSCode Plugin
2024-04-18 12:00:22 +08:00
bobo.yang
741aa60efe feat: Add bilingual support for Quick Fix prompts
- Refactored delay in Quick Fix activation to a dedicated function
- Implemented language-specific prompt generation in Quick Fixes
- Added Chinese language support alongside English for Quick Fix guidance
2024-04-18 11:57:46 +08:00
boob.yang
e477fac909
Merge pull request #500 from devchat-ai/bugfix/vscode-devchat-rendering-#347
Fix initialization issue when Devchat is not previously installed in VSCode
2024-04-18 11:05:25 +08:00
bobo.yang
1a7eadb2da Update subproject commit hash in gui 2024-04-18 11:02:14 +08:00
bobo.yang
1814e75b69 fix: Ensure config file creation and parsing for devchat
- Add check for config file existence and create if not present
- Ensure config file is parsed to an object even if empty
- Refactor config and value setting logic for clarity and stability

Closes #347
2024-04-18 11:01:56 +08:00
boob.yang
d485d19ea1
Merge pull request #499 from devchat-ai/update_tools_submodule_240417
Update subproject commit hash in tools
2024-04-17 22:37:21 +08:00
bobo.yang
a46c87df4b Update subproject commit hash in tools 2024-04-17 22:32:55 +08:00
boob.yang
8f1dbcef60
Merge pull request #498 from devchat-ai/feature/ai-powered-quick-fixes-#345
Implement AI-Powered Quick Fix for VSCode Plugin
2024-04-17 20:28:21 +08:00
bobo.yang
d50aa4b1b4 feat: AI-Powered Quick Fix Integration
- Implemented a new Quick Fix command in commands.ts and package.json
- Added the collapseFileExcludeSelectRange function for code analysis
- Registered the Quick Fix provider to suggest fixes via AI analysis
2024-04-17 19:42:56 +08:00
boob.yang
af730793bd
Merge pull request #497 from devchat-ai/support_models_from_other_providers
Update subproject commit hash in GUI
2024-04-17 15:10:34 +08:00
bobo.yang
ada651e00d Update subproject commit hash in gui 2024-04-17 15:07:24 +08:00
boob.yang
da8b56884b
Merge pull request #496 from devchat-ai/use_selected_models_for_ut
Enable Use of Specific Models in Unit Tests for Consistency
2024-04-17 09:12:21 +08:00
bobo.yang
eb329a2928 feat: Enable specific model use in unit tests
- Added environment variable to utilize selected model for unit tests
- Ensures consistency in testing with production models
- Improves reliability of tests by using configured model data
2024-04-17 09:10:58 +08:00
boob.yang
b6d4aed4b6
Merge pull request #495 from devchat-ai/enhancement/coder-model-switching-#342
Add support for switching between Nvidia Starcoder and Ollama Deepseek models
2024-04-17 00:16:20 +08:00
bobo.yang
2b505b5536 Refactor DevChatConfig instantiation to use getInstance() method 2024-04-17 00:07:09 +08:00
boob.yang
da336b61ba
Merge pull request #494 from devchat-ai/fix_addition_line_show_in_code_completion
Fix: Improve line filtering logic for better code completion
2024-04-16 09:45:56 +08:00
bobo.yang
e3eff72c43 fix: Improve line filtering in code completion
- Adjusted the condition to yield chunks only if not starting with certain characters
- Ensured that empty lines or lines starting with ), ], or } are excluded
- Optimized chunk filtering logic for better code completion accuracy
2024-04-16 09:40:54 +08:00
boob.yang
ff7d63539c
Merge pull request #493 from devchat-ai/bugfix/symbol-selection-no-suggestions-#333
Fix code completion for symbol selection widget
2024-04-16 09:05:05 +08:00
bobo.yang
ab2612a511 fix: Improve symbol selection code suggestions
- Commented out the check blocking suggestions for selected symbols
- Ensured code suggestions now appear during symbol selection
- Adjusted inline completion behavior to optimize user flow
2024-04-16 09:00:59 +08:00
boob.yang
f634f797d1
Merge pull request #492 from devchat-ai/enhancement/prevent-duplicate-completions-#332
Optimize code completion to prevent duplicates
2024-04-16 08:47:37 +08:00
bobo.yang
b1076f0400 feat: Prevent duplicate code completions
- Implemented logic to reuse the previous code completion result if the
new prefix matches it, reducing redundant computations.
- Added tracking for the previous code completion result and prefix to
improve user experience by preventing unnecessary triggers.
- Adjusted code completion logic to determine when to fetch new suggestions
or reuse existing ones, optimizing performance.
2024-04-16 08:43:46 +08:00
boob.yang
d6d5aaf51d
Merge pull request #486 from devchat-ai/feature/code-block-file-creation
Enhanced file creation and added tests for codeBlockHandler
2024-04-15 22:58:11 +08:00
bobo.yang
126bd74fd1 Update subproject commit reference in gui 2024-04-15 22:55:18 +08:00
Rankin Zheng
8c188c6a03 refactor: Simplify message handling in MessageHandler
- Extract message response logic into a new method shouldSendResponse
- Remove redundant try/catch blocks for parsing message text
- Improve readability and maintainability of the handleMessage method
2024-04-15 22:50:51 +08:00
Rankin Zheng
48b180ab67 refactor: Enhance file creation stability in handler
- Wrap file creation logic in try-catch for error handling
- Ensure smooth file creation and opening in editor
- Display error message on file creation or opening failure
2024-04-15 22:50:51 +08:00
Rankin Zheng
06a2582892 feat: Add tests for codeBlockHandler functionality
- Implement unit tests for creating and opening files with various content
- Introduce mocks for vscode API to simulate file creation and opening
- Cover edge cases such as unsupported languages and missing content
2024-04-15 22:50:51 +08:00
Rankin Zheng
e087bc9586 feat: Enhance file creation in codeBlockHandler
- Add detailed JSDoc comments for createAndOpenFile function
- Refactor createAndOpenFile to streamline document creation and opening
- Improve readability by adding in-line comments for clarity
2024-04-15 22:50:51 +08:00
Rankin Zheng
75df05c64d chore: Bump devchat version to 0.1.74
- Updated package-lock.json version to 0.1.74
- Ensured devchat dependency consistency with version bump
- Lockfile version remains unchanged, ensuring compatibility
2024-04-15 22:50:51 +08:00
Rankin Zheng
6679c355ae feat: Add function to open code in new file
- Implemented createAndOpenFile to open a document with the provided content
- Registered createAndOpenFile handler for 'code_new_file' messages
- Enhanced codeBlockHandler and handlerRegister with new functionality
2024-04-15 22:50:15 +08:00
boob.yang
08b38417be
Merge pull request #491 from devchat-ai/fix_bugs_for_code_complete
Improve Code Completion Performance and Streamline Debug Configs
2024-04-15 22:40:42 +08:00
bobo.yang
a13a81b0aa Fix git diff command in GitDiffWatcher 2024-04-15 22:36:58 +08:00
bobo.yang
560b399933 Fix code completion performance issues 2024-04-15 22:30:46 +08:00
小石头
9776b57624
Merge pull request #490 from devchat-ai/feat/updategui
Update subproject commit reference in gui
2024-04-15 17:35:02 +08:00
bobo.yang
d2d68a535d feat: Remove COMPLETE_DEBUG env var usage
- Replace process.env.COMPLETE_DEBUG with config var
- Add completeDebug config var to simplify debug checks
- Log AST output without debug check
2024-04-15 17:24:02 +08:00
小石头
4b1e2f0cb7 Update subproject commit reference in gui 2024-04-15 17:23:54 +08:00
boob.yang
6454b2bc4e
Merge pull request #489 from devchat-ai/feature/recent-files-code-completion-#327
Integrate Recent Files into Code Completion for Smarter Suggestions
2024-04-15 08:53:42 +08:00
bobo.yang
fb8f806955 refactor: Improve code completion performance
- Remove performance logging in searchSimilarBlock function
- Remove unused timing variables to clean up code
- Ensure smoother operation by optimizing search logic
2024-04-14 23:05:16 +08:00
bobo.yang
bd1e2eaa68 feat: Integrate recent files into code completion
- Exported `BLACK_LIST_DIRS` for use in `GitDiffWatcher`
- Implemented `GitDiffWatcher` to monitor file changes and updates
- Enhanced prompt creation with recent edits and git diff context
2024-04-14 23:03:25 +08:00
boob.yang
25ff8d6af4
Merge pull request #488 from devchat-ai/bugfix/duplicate-indexing-fix-#326
Fix: Resolve duplicate file indexing in File Index Service
2024-04-14 19:47:59 +08:00
bobo.yang
63e3e6f286 fix: Prevent duplicate file indexing
- Ensure FileBlockInfo is initialized early to prevent re-indexing
- Refactor createFileBlockInfo to return initialized object on failure
- Removal of redundant FileBlockInfo instance creation for clarity
2024-04-14 19:43:18 +08:00
boob.yang
3a96ce2149
Merge pull request #487 from devchat-ai/feature/task-context-code-completion-#325
Implement Overall Task Context in Code Completion for Better Accuracy
2024-04-14 19:03:41 +08:00
bobo.yang
fecf077f38 feat: Add task description context to code completion
- Implemented createTaskDescriptionContext to fetch task desc.
- Integrated task description into the prompt generation process.
- Enhanced code completion accuracy by embedding task context.
2024-04-14 18:56:30 +08:00
Rankin Zheng
5cc1a551c2 feat: Enhance file creation from code blocks
- Add validation for message content in createAndOpenFile
- Ensure newly opened files are not in preview mode
- Display error message for invalid message formats
2024-04-13 16:42:54 +08:00
Rankin Zheng
a29c23be16 Update gui version 2024-04-13 15:37:50 +08:00
Rankin Zheng
aab04b0a22 Update gui version 2024-04-13 15:36:45 +08:00
Rankin Zheng
c17865f1cf refactor: Simplify message handling in MessageHandler
- Extract message response logic into a new method shouldSendResponse
- Remove redundant try/catch blocks for parsing message text
- Improve readability and maintainability of the handleMessage method
2024-04-13 15:22:45 +08:00