ide на основе vs code
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { Event } from 'vscode';
/**
* The EventBufferer is useful in situations in which you want
* to delay firing your events during some code.
* You can wrap that code and be sure that the event will not
* be fired during that wrap.
*
* ```
* const emitter: Emitter;
* const delayer = new EventDelayer();
* const delayedEvent = delayer.wrapEvent(emitter.event);
*
* delayedEvent(console.log);
*
* delayer.bufferEvents(() => {
* emitter.fire(); // event will not be fired yet
* });
*
* // event will only be fired at this point
* ```
*/
export class EventBufferer {
private data: { buffers: Function[] }[] = [];
wrapEvent<T>(event: Event<T>): Event<
event Event last event Event
event Event last event initial Event
event Event reduce last event initial Event
listener thisArgs disposables
i
data datadatalength
reduce
data
databuffers thisArgs i
thisArgs i
reduceData data data
items
reducedResult
reduceData
thisArgs initial i
reduceDataitems
reduceDataitemsi
reduceDatabufferslength
databuffers
reduceDatareducedResult initial
reduceDataitemsreduce last event initial
reduceDataitemsreduce last event
thisArgs reduceDatareducedResult
disposables
data buffers
datadata
r
data
databuffersflush
r
data buffers
datadata
r
r
data
databuffersflush