Remove iterators from IDecorationService

They're too low performance for typical use cases

Fixes #4079
This commit is contained in:
Daniel Imms
2022-08-27 20:50:16 -07:00
parent 5e3f63e876
commit 0727741ca1
6 changed files with 13 additions and 24 deletions
-4
View File
@@ -62,10 +62,6 @@ export class DecorationService extends Disposable implements IDecorationService
this._decorations.clear();
}
public *getDecorationsAtLine(line: number): IterableIterator<IInternalDecoration> {
return this._decorations.getKeyIterator(line);
}
public *getDecorationsAtCell(x: number, line: number, layer?: 'bottom' | 'top'): IterableIterator<IInternalDecoration> {
let xmin = 0;
let xmax = 0;