Implement Overall Task Context in Code Completion for Better Accuracy #487
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces an overall task context feature to the code completion engine as outlined in issue #325. The changes are geared toward narrowing down the scope and improving the precision of code modification suggestions by considering the broader task the developer is working on.
Changes
createTaskDescriptionContext
was added to gather the task description and context.By integrating a task-level context, we expect the suggestions provided by the code completion engine to not only become more relevant but also more aligned with the task at hand, aiding developers in achieving their modification goals with greater efficiency.
Closes #devchat-ai/devchat/issues/325.