mono/packages/core/dist/sequence.js
2025-01-28 13:42:22 +01:00

15 lines
731 B
JavaScript

/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { Emitter } from './event.js';
export class Sequence {
elements = [];
_onDidSplice = new Emitter();
onDidSplice = this._onDidSplice.event;
splice(start, deleteCount, toInsert = []) {
this.elements.splice(start, deleteCount, ...toInsert);
this._onDidSplice.fire({ start, deleteCount, toInsert });
}
}
//# sourceMappingURL=sequence.js.map