Skip to content

Slow sequential processing after each typed char #2917

Description

@smanolloff

Describe the bug

After the latest update, I noticed that LSP got a lot slower in my project because it triggers on each typed character. This leads to many events triggered, queued and executed sequentially, sometimes causing delays of several seconds, until the last character of the word gets processed.

Expected behavior

Processing triggers some time after I stop typing, e.g. 1 second (ideally: configurable), after I have finished typing the word

Screenshots

lsp2-720.mov

Logs

lsp.log

Environment (please complete the following information):

  • OS: MacOS 26.2
  • Sublime Text version: 4200
  • LSP version: v2.11.0
  • Language servers used: clangd

Additional context

No custom settings. I tried with diagnostics_delay_ms and diagnostics_additional_delay_auto_complete_ms but these do not seem to make any difference for this issue.

I am grateful for your work on LSP. Having it available for ST is a real game changer for me. Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    language server issueIssues related to language servers communicating with this plugin

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions