zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
50.46k stars 3.12k forks source link

Slow completions/suggestions (Typescript) #20715

Open Iliasnolsson opened 1 week ago

Iliasnolsson commented 1 week ago

Check for existing issues

Describe the bug / provide steps to reproduce it

Completions for typescript has become a lot better with Zed preview v0.162.1, but the time in which it takes for completions to show up while typing is too long. Attached is a video showcasing this. Both editors shown in the video uses the same repository (a 107,5 MB monorepo).

It would be great if it is possible to make this faster.

Here is my settings for zed:

{
    "features": {
        "inline_completion_provider": "none"
    },
    "base_keymap": "VSCode",
    "theme": "VSCode Dark Modern",
    "ui_font_size": 12,
    "buffer_font_size": 13,
    "tab_size": 4,
    "formatter": "language_server",
    "autosave": {
        "after_delay": {
            "milliseconds": 800
        }
    },
    "show_signature_help_after_edits": false,
    "eslint": {
        "enabled": false
    },
    "completion_documentation_secondary_query_debounce": 0
}

Here is the video:

https://github.com/user-attachments/assets/06057641-c0b6-42b1-a8f2-25f69915e0cc

__

Environment

Zed: v0.162.1 (Zed Preview) OS: macOS 15.1.0 Memory: 16 GiB Architecture: aarch64

If applicable, add mockups / screenshots to help explain present your vision of the feature

No response

If applicable, attach your Zed.log file to this issue.

Zed.log ``` ```
Iliasnolsson commented 5 days ago

Check out this video. I discovered that the time it takes for completions to show up significantly increases if the value of the other parameters of the function are set to somthing other that simply null!

https://github.com/user-attachments/assets/f9a74005-397d-4ae3-85ed-1a3a05c9efb3