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 { setTimeout0, setTimeout0IsFaster } from '../../../common/platform.js';
import { TimeApi } from './timeApi.js';
import { VirtualEvent } from './virtualClock.js';
/**
* # The processor/host embedding
*
* An {@link Embedding} is the contract between the processor's pure state
* machine and the host event loop. It is invoked once per virtual step that
* produced progress, and decides *how* the processor reaches the host before
* the next step.
*
* ## Contract
*
* On each invocation the embedding MUST do exactly one of:
*
* 1. Return `'continueSync'` **without** calling `then`. The processor will
* loop in place on the same host stack frame.
*
* 2. Schedule `then` on a host primitive (microtask, macrotask, paint frame)
* and return `'cbScheduled'`. The processor will return and wait for the
* callback to re-enter the trampoline.
*
* The embedding MUST NOT call `then` synchronously and also return
* `'cbScheduled'` (that would re-enter the trampoline before this call
* completed). Likewise, returning `'continueSync'` while having scheduled
* `then` async would cause `then` to fire after the trampoline already
* looped — also a bug.
*
* ## Why a callback contract instead of async/await
*
* Every `await` is an implicit microtask hop. For code whose job is to
* decide host hops, that's the wrong abstraction: the reader has to mentally
* compile the `await` to a boundary. With this contract, every host hop is
* a named call to a single primitive (`api.setTimeout`, `setTimeout0`,
* `api.requestAnimationFrame`, …) at exactly one site in this file.
*/
nextEvent VirtualEvent
syncEmbedding
realApi TimeApi Embedding
next then
nextpreferRealAnimationFrame realApirequestAnimationFrame
realApi
realApi then
api TimeApi
setTimeout0IsFaster cb
apisetImmediate apicb
apicb