Skip to content

Switching sessions is too slow #320303

@roblourens

Description

@roblourens

One problem is that we do listSessions way too often, and this is slow and blocks resumeSession.

When we open a session for the first time, we add it as a workspace folder, and this triggers multiple refreshes

this._register(this._workspaceContextService.onDidChangeWorkspaceFolders(() => {
this._cacheValid = false;
void this.refresh(CancellationToken.None);
}));

this._register(this.workspaceContextService.onDidChangeWorkspaceFolders(() => this.resolve(undefined)));

Metadata

Metadata

Labels

agent-hostIssues for the agent-host implementation (not the protocol)bugIssue identified by VS Code Team member as probable bugperf

Type

No type
No fields configured for issues without a type.

Projects

Status
Done

Relationships

None yet

Development

No branches or pull requests

Issue actions