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
boob.yang
cb02555058
Merge pull request #485 from devchat-ai/feature/context-similarity-improvement-#324
...
Enhance Code Completion with Context Similarity Analysis
2024-04-12 15:41:13 +08:00
bobo.yang
6260b71e78
Update subproject commit reference in tools
2024-04-12 15:29:29 +08:00
bobo.yang
e5b6320ecd
Find similar code blocks
2024-04-12 15:29:29 +08:00
bobo.yang
a2ead073ab
Optimize code completion hint range detection
2024-04-12 15:29:29 +08:00
boob.yang
66797784ad
Merge pull request #484 from devchat-ai/update_gui_commit_240412
...
Update Subproject Commit Reference in GUI
2024-04-12 15:24:14 +08:00
bobo.yang
b1bbbd334d
Update subproject commit reference in gui
2024-04-12 15:23:17 +08:00
boob.yang
e30cec3a04
Merge pull request #483 from devchat-ai/fix_ideconfig_miss
...
feat: Ensure IDE Configuration File Existence Before Initialization
2024-04-11 14:01:26 +08:00
bobo.yang
b7f7b0581a
feat: Add missing IDE configuration file check
...
- Ensure that the IDE configuration file exists before initializing the config
2024-04-11 13:59:03 +08:00
boob.yang
1c80672e5e
Merge pull request #482 from devchat-ai/fix/completion-range-optimization-#322
...
Fix: Optimize code completion hint range for better UX
2024-04-09 22:25:20 +08:00
bobo.yang
e4bedd9eff
fix: Optimize completion hint range detection
...
- Added a function to check if a substring is a subsequence of another
- Improved logic to better determine the completion hint range
- Ensures completion suggestions display correctly in edge cases
2024-04-09 22:21:49 +08:00
boob.yang
3b3ad60848
Merge pull request #481 from devchat-ai/enhancement/code-completion-performance-#320
...
Enhance Code Completion Performance with Distributed Caching Mechanisms
2024-04-09 22:17:03 +08:00
bobo.yang
de92bf3c85
feat: Optimize AST caching and function lookups
...
- Improved AST caching mechanism by associating cache entries with filepaths and their content hash for validation.
- Enhanced function range querying by caching query results per file extension to reduce redundant computations.
- Implemented caching for symbol definitions to minimize repetitive AST parsing and query execution, improving overall performance in code completion prompts and context generation.
2024-04-09 22:13:09 +08:00
boob.yang
48cf5c1444
Merge pull request #480 from devchat-ai/feature/codecomplete
...
Implement code completion features and enhancements for vscode extension
2024-04-09 14:03:24 +08:00
bobo.yang
37d256a0a1
don't collapse constructor function
2024-04-08 22:56:48 +08:00
bobo.yang
0a3b15552a
enable code complete debug when run as debug
2024-04-08 22:55:43 +08:00
bobo.yang
5f113d10a1
code completion for vscode 0.1
2024-04-08 22:10:56 +08:00
bobo.yang
6518abb20b
Add devchatConfig variable and debug logs
2024-04-08 22:10:56 +08:00
bobo.yang
7eca45ed02
Add code complete event logging
2024-04-08 22:10:56 +08:00
bobo.yang
df0a092ff5
Add logEventToServer function for sending events to the server
2024-04-08 22:10:56 +08:00
bobo.yang
b37e32259d
Remove commented out code in InlineCompletionProvider
2024-04-08 22:10:56 +08:00
bobo.yang
4907715d56
Add code complete functionality
2024-04-08 22:10:56 +08:00
bobo.yang
9924472c1a
stage changes
2024-04-08 22:10:56 +08:00
boob.yang
d6321c8509
Merge pull request #479 from devchat-ai/update_tools_submodule_commit_0408
...
Update subproject commit reference
2024-04-08 22:10:28 +08:00
bobo.yang
eb341f5d04
Update subproject commit reference
2024-04-08 22:09:16 +08:00
小石头
d1c7917062
Merge pull request #478 from devchat-ai/feat/update_gui
...
Update subproject commit hash
2024-04-03 16:54:11 +08:00
小石头
55b7d00d33
Update subproject commit hash
2024-04-03 16:52:36 +08:00
boob.yang
4ae60aea2b
Merge pull request #476 from devchat-ai/update_tools_submodule_commit_04021
...
Update Subproject Commit Hash
2024-04-02 14:26:08 +08:00
bobo.yang
ca5daa968c
Update subproject commit hash
2024-04-02 14:24:36 +08:00
boob.yang
1bb244a4e1
Merge pull request #475 from devchat-ai/update_tools_submodule_commit_0402
...
Update the Subproject Commit Hash
2024-04-02 13:51:59 +08:00
bobo.yang
b57fcecbb0
Update subproject commit hash
2024-04-02 13:50:34 +08:00
Rankin Zheng
d4be51d27a
Merge pull request #474 from devchat-ai/update_submodule
...
Feature Improvements and Code Refactor
2024-04-02 11:30:31 +08:00
Rankin Zheng
ef50de45f7
Update submodule in gui.
2024-04-02 11:28:42 +08:00
boob.yang
1e1b66379c
Merge pull request #473 from devchat-ai/update_submodule_commit_240402
...
Update submodules in GUI and workflow commands
2024-04-02 11:11:54 +08:00