zed
zed copied to clipboard
Autocomplete completions are cut in half
Check for existing issues
- [X] Completed
Describe the bug / provide steps to reproduce it
Description: the entries of the auto-completion dialog are often cut in half. Steps to reproduce: write a piece of code and wait for the autocompletions to appear. You will see that initially the text is not cut in half but after some milliseconds the right-side type-predictions (in grey color) appear overlapping the left side.
Environment
OS: MacOS 14.3.1 (23D60) SoC: M1 8GB Zed version: 0.122.2
If applicable, add mockups / screenshots to help explain present your vision of the feature
If applicable, attach your ~/Library/Logs/Zed/Zed.log
file to this issue.
If you only need the most recent lines, you can run the zed: open log
command palette action to see the last 1000.
No response
I confirm that the issue is still there in v0.123.4
Confirmed this is still happening on 1.24.2 preview, I'll take a crack at it tonight.
The delay before the right half entering is dictated by completion_documentation_secondary_query_debounce
, which is set to 300ms by default. My experience was much smoother when I set it to 0. Is there a solid justification for this being a non-zero value by default?
For the cut-off text, I'm planning on just adding ellipses when it gets truncated, like how vscode does it:
@effdotsh Thank you for providing a fix so quickly