Skip to content

Conversation

@SimonSiefke
Copy link
Contributor

Before

Scrolling up and down in an editor 197 times:

shapes at 25-09-04 12 48 22

It seems that when scrolling the the inlay hints are queried and added to sessionDisposables making sessionDisposables grow by one each time.

Change

The change uses a separate disposableStore so that each time the RunOnceScheduler runs, the previous disposableStore removed and disposed.

In order to not manage the cancelToken, disposableStore and mutableDisposable individually, a new class CancellationStore has been added that combines them.

@hediet hediet assigned jrieken and unassigned hediet Sep 9, 2025
@jrieken jrieken added this to the October 2025 milestone Sep 30, 2025
@jrieken
Copy link
Member

jrieken commented Sep 30, 2025

This will also fix #259985

@jrieken jrieken enabled auto-merge October 6, 2025 09:33
@jrieken jrieken merged commit 6294a26 into microsoft:main Oct 6, 2025
17 checks passed
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Nov 20, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

4 participants