Using git diff for autocomplete results in completions including diff lines and -/+ prefixes #3094
Open
3 tasks done
Labels
area:autocomplete
Relates to the auto complete feature
kind:bug
Indicates an unexpected problem or unintended behavior
priority:high
Indicates high priority
Before submitting your bug report
Relevant environment info
Description
While I think using the
git diff
to provide additional context is useful (#2999), sometimes it results in the LLM returning completions that include the diff preambles and line prefixes -/+.ie suggestions include:
I can disable it by setting
tabAutocompleteOptions.maxDiffPercentage
to 0 but longer term it would be nice to have that additional context in the prompt.I think competitors include the additional context in a comment block in the prefix. I assume the main difficulty in that is determining how to wrap multiline comments for whatever programming language is in use.
To reproduce
No response
Log output
No response
The text was updated successfully, but these errors were encountered: