Skip to content

Commit 3b6a33d

Browse files
committed
inlay hints - properly dispose scroll listener
1 parent 552af97 commit 3b6a33d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/editor/contrib/inlayHints/inlayHintsController.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ export class InlayHintsController implements IEditorContribution {
176176

177177
// update inline hints when content or scroll position changes
178178
this._sessionDisposables.add(this._editor.onDidChangeModelContent(() => scheduler.schedule()));
179-
this._disposables.add(this._editor.onDidScrollChange(() => scheduler.schedule()));
179+
this._sessionDisposables.add(this._editor.onDidScrollChange(() => scheduler.schedule()));
180180
scheduler.schedule();
181181

182182
// update inline hints when any any provider fires an event

0 commit comments

Comments
 (0)