Skip to content

$/progress impacting perf in vim while typing #7590

Closed
@prabirshrestha

Description

@prabirshrestha

editor: vim
plugin: https://github.com/prabirshrestha/vim-lsp

rust-analyzer is sending too many $/progress notifications.

I do prefer the initial notifications when the server is starting. But once it booted and I start typing and vim-lsp sends didChangeNotification or completion notification I get bombarded with $/progress notification making the typing very slow and is unbearable. If I disable workdone progress let g:lsp_work_done_progress_enabled = 0 it seems to be responsive again. Is there some way to control this?

Few things to note about vim and vimscript in general. It is a single threaded and vimscript is notoriously very slow (one of the slowest languages). This requries to json parse and run vimscript. Would it be possible to throttle/debounce this $/progress notification on the server instead or some way to even disable this notifications after the initial warming up notifications?

Log was to long to paste here so you can find the vim-lsp log at https://gist.github.com/prabirshrestha/93efe102437180132438a715a64dd7e9

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions