Skip to content

configurable debouncing delays #327

Open
@strager

Description

@strager

TypeScript's LSP server has an artificial 200 ms debounce/delay:

readonly doRequestDiagnosticsDebounced = debounce(() => this.doRequestDiagnostics(), 200);

and an artificial 50 ms debounce/delay:
protected readonly firePublishDiagnostics = debounce(() => {
const diagnostics = this.getDiagnostics();
this.publishDiagnostics({ uri: this.uri, diagnostics });
}, 50);

I think this hard-coded delay makes TypeScript's LSP server look bad when compared to other LSP servers: https://quick-lint-js.com/benchmarks/

I think the delay should be user-configurable (e.g. disable-able or a custom delay).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions