Avoid thrashing timeouts

This commit is contained in:
Daniel Imms
2026-05-02 05:58:56 -07:00
parent d911b40a47
commit e04dd2501f
3 changed files with 53 additions and 19 deletions
+1 -1
View File
@@ -61,7 +61,6 @@ export class Buffer extends Disposable implements IBuffer {
private readonly _logService: ILogService
) {
super();
this._register(toDisposable(() => this.clearAllMarkers()));
this._cols = this._bufferService.cols;
this._rows = this._bufferService.rows;
this.lines = new CircularList<IBufferLine>(this._getCorrectBufferLength(this._rows));
@@ -70,6 +69,7 @@ export class Buffer extends Disposable implements IBuffer {
this.setupTabStops();
this._memoryCleanupQueue = new IdleTaskQueue(this._logService);
this._register(toDisposable(() => this._memoryCleanupQueue.clear()));
this._register(toDisposable(() => this.clearAllMarkers()));
this._stringCache = this._register(new BufferLineStringCache());
}