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 { getRandomElement } from '../../../common/arrays.js';
import { CancelablePromise, createCancelablePromise, timeout } from '../../../common/async.js';
import { VSBuffer } from '../../../common/buffer.js';
import { CancellationToken, CancellationTokenSource } from '../../../common/cancellation.js';
import { memoize } from '../../../common/decorators.js';
import { CancellationError, ErrorNoTelemetry } from '../../../common/errors.js';
import { Emitter, Event, EventMultiplexer, Relay
createSingleCallFunction
DisposableStore dispose IDisposable toDisposable
revive
strings
isFunction isUndefinedOrNull
command arg cancellationToken CancellationToken
event arg Event
ctx TContext command arg cancellationToken CancellationToken
ctx TContext event arg Event
RequestType
PromiseCancel
EventListen
EventDispose
type RequestType
type
RequestType
RequestTypePromiseCancel
RequestTypeEventListen
RequestTypeEventDispose
type RequestType id channelName name arg
type RequestTypePromiseCancel id
type RequestTypeEventListen id channelName name arg
type RequestTypeEventDispose id
IRawPromiseRequest IRawPromiseCancelRequest IRawEventListenRequest IRawEventDisposeRequest
ResponseType
Initialize
PromiseSuccess
PromiseError
PromiseErrorObj
EventFire
type ResponseType
type
ResponseTypeInitialize
ResponseTypePromiseSuccess
ResponseTypePromiseError
ResponseTypePromiseErrorObj
ResponseTypeEventFire
type ResponseTypeInitialize
type ResponseTypePromiseSuccess id data
type ResponseTypePromiseError id data message name stack
type ResponseTypePromiseErrorObj id data
type ResponseTypeEventFire id data
IRawInitializeResponse IRawPromiseSuccessResponse IRawPromiseErrorResponse IRawPromiseErrorObjResponse IRawEventFireResponse
response IRawResponse
buffer VSBuffer
onMessage EventVSBuffer
drain
State
Uninitialized
Idle
channelName channel IServerChannelTContext
channelName
ctx TContext
connections ConnectionTContext
onDidAddConnection EventConnectionTContext
onDidRemoveConnection EventConnectionTContext
hub IConnectionHubTContext command arg cancellationToken CancellationToken ClientTContext
hub IConnectionHubTContext event arg ClientTContext
channelName router IClientRouterTContext
bytes VSBuffer
buffer VSBuffer
reader IReader
value
n n
next reader
value nextbuffer n
nextbuffer
value
vqlZero
writer IWriter value
value
writervqlZero
len
v2 value v2 v2 v2
len
scratch VSBufferlen
i value i
scratchbufferi value
value value
value
scratchbufferi
writerscratch
pos
buffer VSBuffer
bytes VSBuffer
result bufferpos pos bytes
pos resultbyteLength
result
IDisposable
buffers VSBuffer
VSBuffer
VSBufferbuffers
buffer VSBuffer
buffersbuffer
bufferslength
DataType
Undefined
String
Buffer
VSBuffer
Object
Int
value VSBuffer
result VSBuffer
resultvalue
result
BufferPresets
Undefined DataTypeUndefined
String DataTypeString
Buffer DataTypeBuffer
VSBuffer DataTypeVSBuffer
DataType
Object DataTypeObject
Uint DataTypeInt
writer IWriter data
data
writerBufferPresetsUndefined
data
buffer VSBufferdata
writerBufferPresetsString
writer bufferbyteLength
writerbuffer
VSBufferdata
buffer VSBufferdata
writerBufferPresetsBuffer
writer bufferbyteLength
writerbuffer
data
writerBufferPresetsVSBuffer
writer databyteLength
writerdata
data
writerBufferPresets
writer datalength
el data
writer el
data data data
writerBufferPresetsUint
writer data
buffer VSBufferdata
writerBufferPresetsObject
writer bufferbyteLength
writerbuffer
reader IReader
type reader
type
DataTypeUndefined
DataTypeString readerreader
DataTypeBuffer readerreaderbuffer
DataTypeVSBuffer readerreader
DataType
length reader
result
i i length i
resultreader
result
DataTypeObject readerreader
DataTypeInt reader
request IRawPromiseRequest IRawEventListenRequest
timeoutTimer Timeout
IDisposable
channels
activeRequests
protocolListener IDisposable
pendingRequests
protocol IMessagePassingProtocol ctx TContext logger IIPCLogger timeoutDelay
protocolListener protocolmsg msg
type ResponseTypeInitialize
channelName channel IServerChannelTContext
channelschannelName channel
channelName
response IRawResponse
responsetype
ResponseTypeInitialize
msgLength responsetype
loggermsgLength RequestInitiatorOtherSide responsetype
ResponseTypePromiseSuccess
ResponseTypePromiseError
ResponseTypeEventFire
ResponseTypePromiseErrorObj
msgLength responsetype responseid responsedata
loggermsgLength responseid RequestInitiatorOtherSide responsetype responsedata
header body
writer
writer header
writer body
writerbuffer
writer
message VSBuffer
protocolmessage
messagebyteLength
err
message VSBuffer
reader message
header reader
body reader
type header RequestType
type
RequestType
loggermessagebyteLength header RequestInitiatorOtherSide body
type id header channelName header name header arg body
RequestTypeEventListen
loggermessagebyteLength header RequestInitiatorOtherSide body
type id header channelName header name header arg body
RequestTypePromiseCancel
loggermessagebyteLength header RequestInitiatorOtherSide
type id header
RequestTypeEventDispose
loggermessagebyteLength header RequestInitiatorOtherSide
type id header
request IRawPromiseRequest
channel channelsrequestchannelName
channel
request
cancellationTokenSource
promise
promise ctx requestname requestarg cancellationTokenSourcetoken
err
promise err
id requestid
promisedata
id data type ResponseTypePromiseSuccess
err
err
id data
message errmessage
name errname
stack errstack errstack
type ResponseTypePromiseError
id data err type ResponseTypePromiseErrorObj
disposable
activeRequestsrequestid
disposable cancellationTokenSource
activeRequestsrequestid disposable
request IRawEventListenRequest
channel channelsrequestchannelName
channel
request
id requestid
event channelctx requestname requestarg
disposable data id data type ResponseTypeEventFire
activeRequestsrequestid disposable
request IRawRequest
disposable activeRequestsrequestid
disposable
disposable
activeRequestsrequestid
request IRawPromiseRequest IRawEventListenRequest
pendingRequests pendingRequestsrequestchannelName
pendingRequests
pendingRequests
pendingRequestsrequestchannelName pendingRequests
timer
requesttype RequestType
id requestid
data name message stack
type ResponseTypePromiseError
timeoutDelay
pendingRequests request timeoutTimer timer
channelName
requests pendingRequestschannelName
requests
request requests
requesttimeoutTimer
requestrequesttype
RequestType requestrequest
RequestTypeEventListen requestrequest
pendingRequestschannelName
protocolListener
protocolListener
protocolListener
activeRequests
activeRequests
RequestInitiator
LocalSide
OtherSide
msgLength requestId initiator RequestInitiator str data
msgLength requestId initiator RequestInitiator str data
IDisposable
isDisposed
state State StateUninitialized
activeRequests
handlers
lastRequestId
protocolListener IDisposable
logger IIPCLogger
_onDidInitialize
onDidInitialize _onDidInitializeevent
protocol IMessagePassingProtocol logger IIPCLogger
protocolListener protocolmsg msg
logger logger
channelName
that
command arg cancellationToken CancellationToken
thatisDisposed
thatchannelName command arg cancellationToken
event arg
thatisDisposed
EventNone
thatchannelName event arg
channelName name arg cancellationToken CancellationTokenNone
id lastRequestId
type RequestType
request IRawRequest id type channelName name arg
cancellationTokenisCancellationRequested
disposable IDisposable
disposableWithRequestCancel IDisposable
result c e
cancellationTokenisCancellationRequested
handler response
responsetype
ResponseTypePromiseSuccess
handlersid
responsedata
ResponseTypePromiseError
handlersid
error responsedatamessage
errorstack responsedatastack responsedatastack responsedatastack
errorname responsedataname
error
ResponseTypePromiseErrorObj
handlersid
responsedata
handlersid handler
request
err
handlersid
err
uninitializedPromise CancelablePromise
state StateIdle
uninitializedPromise _
uninitializedPromise
uninitializedPromise
uninitializedPromise
uninitializedPromise
uninitializedPromise
id type RequestTypePromiseCancel
disposable cancellationTokencancel
disposableWithRequestCancel
dispose
disposable
activeRequestsdisposableWithRequestCancel
result
disposable
activeRequestsdisposableWithRequestCancel
channelName name arg Event
id lastRequestId
type RequestTypeEventListen
request IRawRequest id type channelName name arg
uninitializedPromise CancelablePromise
emitter
handler res IRawResponse emitterres IRawEventFireResponsedata
handlersid handler
activeRequestsemitter
request
state StateIdle
uninitializedPromise _
uninitializedPromise
uninitializedPromise
uninitializedPromise
uninitializedPromise
uninitializedPromise
activeRequestsemitter
id type RequestTypeEventDispose
handlersid
emitterevent
request IRawRequest
requesttype
RequestType
RequestTypeEventListen
msgLength requesttype requestid requestchannelName requestname requestarg
loggermsgLength requestid RequestInitiatorLocalSide requestarg
RequestTypePromiseCancel
RequestTypeEventDispose
msgLength requesttype requestid
loggermsgLength requestid RequestInitiatorLocalSide requesttype
header body
writer
writer header
writer body
writerbuffer
writer
message VSBuffer
protocolmessage
messagebyteLength
err
message VSBuffer
reader message
header reader
body reader
type ResponseType header
type
ResponseTypeInitialize
loggermessagebyteLength RequestInitiatorLocalSide type
type header
ResponseTypePromiseSuccess
ResponseTypePromiseError
ResponseTypeEventFire
ResponseTypePromiseErrorObj
loggermessagebyteLength header RequestInitiatorLocalSide type body
type header id header data body
response IRawResponse
responsetype ResponseTypeInitialize
state StateIdle
_onDidInitialize
handler handlersresponseid
handlerresponse
EventonDidInitialize
state StateIdle
onDidInitializePromise
isDisposed
protocolListener
protocolListener
protocolListener
activeRequests
activeRequests
_onDidInitialize
protocol IMessagePassingProtocol
onDidClientDisconnect Event
channelServer ChannelServerTContext
channelClient ChannelClient
IRoutingChannelClientTContext IConnectionHubTContext IDisposable
channels
_connections
_onDidAddConnection
onDidAddConnection EventConnectionTContext _onDidAddConnectionevent
_onDidRemoveConnection
onDidRemoveConnection EventConnectionTContext _onDidRemoveConnectionevent
disposables
ConnectionTContext
result ConnectionTContext
_connectionsctx resultctx
result
onDidClientConnect EventClientConnectionEvent ipcLogger IIPCLogger timeoutDelay
disposables protocol onDidClientDisconnect
onFirstMessage EventprotocolonMessage
connectionDisposables
onFirstMessageDisposable msg
reader msg
ctx reader TContext
channelServer protocol ctx ipcLogger timeoutDelay
channelClient protocol ipcLogger
channelschannel name channelServername channel
connection ConnectionTContext channelServer channelClient ctx
_connectionsconnection
_onDidAddConnectionconnection
connectionDisposables
channelServer
channelClient
_connectionsconnection
_onDidRemoveConnectionconnection
disposablesconnectionDisposables
connectionDisposables
connectionDisposablesonFirstMessageDisposable
disposablesconnectionDisposables
channelName router IClientRouterTContext
channelName client ClientTContext
channelName routerOrClientFilter IClientRouterTContext client ClientTContext
that
command arg cancellationToken CancellationToken
connectionPromise ClientTContext
routerOrClientFilter
connection thatconnectionsrouterOrClientFilter
connectionPromise connection
connection
EventEventthatonDidAddConnection routerOrClientFilter
connectionPromise routerOrClientFilterthat command arg
channelPromise connectionPromise
connection connection ConnectionTContextchannelClientchannelName
channelPromise
command arg cancellationToken
event arg Event
routerOrClientFilter
thatchannelName routerOrClientFilter event arg
channelPromise routerOrClientFilterthat event arg
connection connection ConnectionTContextchannelClientchannelName
channelPromise
event arg
channelName client ClientTContext eventName arg Event
that
disposables DisposableStore
emitter
disposables
eventMultiplexer
map
connection ConnectionTContext
channel connectionchannelClientchannelName
event channeleventName arg
disposable eventMultiplexerevent
mapconnection disposable
connection ConnectionTContext
disposable mapconnection
disposable
disposable
mapconnection
thatconnectionsclientFilteronDidAddConnection
EventthatonDidAddConnection clientFilteronDidAddConnection disposables
thatonDidRemoveConnection disposables
eventMultiplexeremitterfire emitter disposables
disposableseventMultiplexer
disposables
disposables
thatdisposablesemitter
emitterevent
channelName channel IServerChannelTContext
channelschannelName channel
connection _connections
connectionchannelServerchannelName channel
disposables
connection _connections
connectionchannelClient
connectionchannelServer
_connections
channels
_onDidAddConnection
_onDidRemoveConnection
IChannelServerTContext IDisposable
channelClient ChannelClient
channelServer ChannelServerTContext
protocol IMessagePassingProtocol ctx TContext ipcLogger IIPCLogger
writer
writer ctx
protocolwriterbuffer
writer
channelClient protocol ipcLogger
channelServer protocol ctx ipcLogger
channelName
channelClientchannelName
channelName channel IServerChannelTContext
channelServerchannelName channel
channelClient
channelServer
promise
command arg cancellationToken CancellationToken
promisec ccommand arg cancellationToken
event arg Event
relay
promise
c relayinput cevent arg
relay
relayevent
channel
didTick
command arg cancellationToken CancellationToken
didTick
command arg cancellationToken
didTick
channelcommand arg cancellationToken
event arg Event
didTick
channelevent arg
relay
didTick
relayinput channelevent arg
relayevent
ctx TContext
hub IConnectionHubTContext ClientTContext
hub
hub IConnectionHubTContext ClientTContext
hub
hub IConnectionHubTContext ClientTContext
connection hubconnections
connectionctx
connection
EventhubonDidAddConnection
hub
ProxyChannel
disableMarshalling
unbufferedEvents
service disposables DisposableStore options ICreateServiceChannelOptions IServerChannelTContext
handler service key
disableMarshalling optionsdisableMarshalling
unbufferedEvents optionsunbufferedEvents optionsunbufferedEvents
mapEventNameToEvent
key handler
key unbufferedEventskey
mapEventNameToEventkey Eventhandlerkey Event key disposables
_ event arg Event
eventImpl mapEventNameToEventevent
eventImpl
eventImpl Event
target handlerevent
target
event
handler arg
event
unbufferedEventsevent
handlerevent Event
mapEventNameToEventevent Eventhandlerevent Event event disposables
mapEventNameToEventevent Event
_ command args
target handlercommand
target
disableMarshalling args
i i argslength i
argsi argsi
res handler args
res
res res
res
context
properties Map
channel IChannel options ICreateProxyServiceOptions
disableMarshalling optionsdisableMarshalling
_target propKey PropertyKey
propKey
optionspropertiespropKey
optionspropertiespropKey
propKey
propKey
arg
channelpropKey arg
propKey
channelpropKey
args
methodArgs
options optionscontext
methodArgs optionscontext args
methodArgs args
result propKey methodArgs
disableMarshalling
result
result
name
name name stringsname
name
name stringsname
colorTables
data
data
data
data data datatoString
result data
result
result
data
data
data
dataprettyWithoutArrays
data
direction totalLength msgLength req initiator RequestInitiator str data
data data
colorTable colorTablesinitiator
color colorTablereq colorTablelength
args
str
args argsdata
args
argsdata
args
_totalIncoming
_totalOutgoing
_outgoingPrefix
_incomingPrefix
msgLength requestId initiator RequestInitiator str data
_totalOutgoing msgLength
_outgoingPrefix _totalOutgoing msgLength requestId initiator str data
msgLength requestId initiator RequestInitiator str data
_totalIncoming msgLength
_incomingPrefix _totalIncoming msgLength requestId initiator str data