Skip to content

Long hangs when there is a large number of characters in the LSP autocomplete pop-up window #47141

@Jatarie

Description

@Jatarie

Reproduction steps

I noticed this when dealing with very large arrays in odin e.g

https://github.com/odin-lang/Odin/blob/master/vendor/microui/default_atlas.odin

When accessing a module with a very large array via LSP autocomplete Zed will freeze for ~10-20 seconds, and from profiling it it seems like DirectWrite is causing the slow down. I assume its trying to draw all ~50,000 symbols in the array in the autocomplete pop up which is causing the issue. I also tested on Linux and didn't have the issue so I assume this is a Windows specific issue.

Profile view during the freeze
Image

Current vs. Expected behavior

Video showing the issue:
https://github.com/user-attachments/assets/e9af380b-5ff4-4e8f-8dba-1bafc0209608

Hang log:
https://github.com/user-attachments/files/24716185/hang-2026-01-19_12-53-35.txt

Zed version and system specs

Zed: v0.219.4+stable.119.5595f7ce23d51a58eb66dd025a487bbd6c75dad1 (Zed)
OS: Windows 10.0.19045
Memory: 31.9 GiB
Architecture: x86_64
GPU: AMD Radeon RX 6700 XT || AMD Corporation || 25.10.2 (25.10.33.02-250924a-420421C-AMD-Software-Adrenalin-Edition)

Attach Zed log file

Zed.log

Relevant Zed settings

None relevant

Relevant Keymap

None relevant

(for AI issues) Model provider details

No response

If you are using WSL on Windows, what flavor of Linux are you using?

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:autocompletionsFeedback for code completions in the editorarea:performanceFeedback for performance issues, speed, memory usage, etcfrequency:uncommonBugs that happen for a small subset of users, special configurations, rare circumstances, etcmeta:freezeEditor or OS - freezing / hanging / lockingpriority:P2Average run-of-the-mill bugsstaleLabel used by `stale` actionstate:needs reproNeeds reproduction steps and/or someone to reproduce

    Type

    No fields configured for Crash.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions