zed icon indicating copy to clipboard operation
zed copied to clipboard

Autocomplete completions are cut in half

Open Belluxx opened this issue 1 year ago • 4 comments

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

issue

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

Belluxx avatar Feb 21 '24 14:02 Belluxx

I confirm that the issue is still there in v0.123.4

Belluxx avatar Feb 23 '24 17:02 Belluxx

Confirmed this is still happening on 1.24.2 preview, I'll take a crack at it tonight.

effdotsh avatar Feb 23 '24 19:02 effdotsh

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: image

effdotsh avatar Feb 23 '24 22:02 effdotsh

@effdotsh Thank you for providing a fix so quickly

Belluxx avatar Feb 24 '24 10:02 Belluxx