Skip to content

Chat: do not render UI things in schedulers at random intervals #274056

@bpasero

Description

@bpasero

this._welcomeRenderScheduler = this._register(new RunOnceScheduler(() => this.renderWelcomeViewContentIfNeeded(), 10));

this._chatSuggestNextScheduler = this._register(
new RunOnceScheduler(() => this.renderChatSuggestNextWidget(), 20),
);

This pattern of scheduling UI code on random timeouts has to stop. It seems to be a "fix"/"workaround" to prevent re-entrant calls from happening but that cannot be the solution.

//cc @aeschli @digitarald

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugimportantIssue identified as high-priority

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions