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 * as assert from 'assert';
import * as sinon from 'sinon';
import { timeout } from '../../../../../base/common/async.js';
import { Disposable } from '../../../../../base/common/lifecycle.js';
import { ISettableObservable, observableValue } from '../../../../../base/common/observable.js';
import { URI } from '../../../../../base/common/uri.js';
import { upcast } from '../../../../../base/common/types.js';
import { ensureNoDisposablesAreLeakedInTestSuite
ConfigurationTarget IConfigurationChangeEvent IConfigurationService
TestConfigurationService
IDialogService IPrompt
ServiceCollection
TestInstantiationService
ILogger ILoggerService ILogService NullLogger NullLogService
mcpAccessConfig McpAccessValue
IMcpSandboxConfiguration
INotificationService
TestNotificationService
IProductService
ISecretStorageService
TestSecretStorageService
IStorageService StorageScope
observableConfigValue
IWorkspaceFolderData
IConfigurationResolverService
ConfigurationResolverExpression Replacement
IOutputService
TestLoggerService TestStorageService
ContributionEnablementState EnablementModel isContributionEnabled
McpCollisionBehavior mcpServerCollisionBehaviorSection
McpRegistry
IMcpHostDelegate IMcpMessageTransport
IMcpSandboxService
McpServerConnection
McpCollisionEnablementModel
McpTaskManager
IMcpPotentialSandboxBlock LazyCollectionState McpCollectionDefinition McpCollectionProvenance McpServerDefinition McpServerLaunch McpServerTransportStdio McpServerTransportType McpServerTrust McpStartServerInteraction
TestMcpMessageTransport
_serviceBrand
interactiveCounter
resolvedVariables
resolvedVariables
resolvedVariables
folder IWorkspaceFolderData value
parsed ConfigurationResolverExpressionvalue
variable parsed
resolved resolvedVariablesvariableinner
resolved
parsedvariable resolved
parsed
folder IWorkspaceFolderData config section variables Record target ConfigurationTarget Map
parsed ConfigurationResolverExpressionconfig
result
result
result
k v result
replacement Replacement
id k
inner k
name k k
arg k
parsedreplacement v
result
priority
serverDefinition McpServerDefinition launch McpServerLaunch McpServerLaunch
launch
IMcpMessageTransport
_serviceBrand
_promptResult
_promptSpy sinonSinonStub
_promptSpy sinon
_promptSpy
result _promptResult
result
_promptResult result
sinonSinonStub
_promptSpy
options IPrompt result
options
nextDefinitionIdsToTrust
override
nextDefinitionIdsToTrust
_serviceBrand
callCount
enabled
lastLaunchCallArgs serverDef McpServerDefinition launch McpServerLaunch remoteAuthority configTarget ConfigurationTarget
serverDef McpServerDefinition launch McpServerLaunch remoteAuthority configTarget ConfigurationTarget McpServerLaunch
callCount
lastLaunchCallArgs serverDef launch remoteAuthority configTarget
enabled launchtype McpServerTransportTypeStdio
launch
command
launch
serverDef McpServerDefinition
enabled
_serverLabel _potentialBlocks IMcpPotentialSandboxBlock _existingSandboxConfig IMcpSandboxConfiguration message sandboxConfig IMcpSandboxConfiguration
_serverDef McpServerDefinition _mcpResource _configTarget ConfigurationTarget _potentialBlocks IMcpPotentialSandboxBlock _suggestedSandboxConfig IMcpSandboxConfiguration
store
registry TestMcpRegistry
testStorageService TestStorageService
testConfigResolverService TestConfigurationResolverService
testDialogService TestDialogService
testCollection McpCollectionDefinition serverDefinitions ISettableObservableMcpServerDefinition
baseDefinition McpServerDefinition
configurationService TestConfigurationService
logger ILogger
trustNonceBearer trustedAtNonce
taskManager McpTaskManager
testMcpSandboxService TestMcpSandboxService
testConfigResolverService
testStorageService store
testDialogService
configurationService mcpAccessConfig McpAccessValueAll
trustNonceBearer trustedAtNonce
testMcpSandboxService
services
IConfigurationService configurationService
IConfigurationResolverService testConfigResolverService
IStorageService testStorageService
ISecretStorageService
ILoggerService store
ILogService store
INotificationService
IOutputService
IDialogService testDialogService
IMcpSandboxService testMcpSandboxService
IProductService
logger
taskManager store
instaService store services
registry storeinstaServiceTestMcpRegistry
testCollection
id
label
remoteAuthority
serverDefinitions
trustBehavior McpServerTrustKindTrusted
scope StorageScope
configTarget ConfigurationTarget
order
baseDefinition
id
label
cacheNonce
launch
type McpServerTransportTypeStdio
command
args
env
envFile
cwd
sandbox
disposable registrytestCollection
storedisposable
assertregistrycollectionslength
assertregistrycollections testCollection
disposable
assertregistrycollectionslength
storeregistrytestCollection
pluginCollection
testCollection
id
provenance McpCollectionProvenancePlugin
serverDefinitions baseDefinition
storeregistrypluginCollection
spoofedCollection
testCollection
id
serverDefinitions baseDefinition
storeregistryspoofedCollection
configurationService
configurationServiceonDidChangeConfigurationEmitter
key key
IConfigurationChangeEvent
assertregistrycollectionscollection collectionid pluginCollectionid
assertregistrytestCollection baseDefinition collection server
assertregistryspoofedCollection baseDefinition collection server
assertregistrypluginCollection baseDefinitionserver baseDefinition
disposable registrytestCollection
storedisposable
assertregistrycollectionslength
configurationServicemcpAccessConfig McpAccessValueNone
configurationServiceonDidChangeConfigurationEmitter
affectedKeys mcpAccessConfig
change keys mcpAccessConfig overrides
source ConfigurationTarget
IConfigurationChangeEvent assertregistrycollectionslength
configurationServicemcpAccessConfig McpAccessValueAll
configurationServiceonDidChangeConfigurationEmitter
affectedKeys mcpAccessConfig
change keys mcpAccessConfig overrides
source ConfigurationTarget
IConfigurationChangeEvent
delegate
disposable registrydelegate
storedisposable
assertregistrydelegateslength
assertregistrydelegates delegate
disposable
assertregistrydelegateslength
definition McpServerDefinition
baseDefinition
launch
type McpServerTransportTypeStdio
command
args
env
envFile
cwd
sandbox
variableReplacement
section
target ConfigurationTarget
delegate
storeregistrydelegate
testCollectionserverDefinitionsdefinition
storeregistrytestCollection
connection registry collectionRef testCollection definitionRef definition logger trustNonceBearer taskManager McpServerConnection
assertconnection
assertconnectiondefinition definition
assertconnectionlaunchDefinition command command
assertconnectionlaunchDefinition env env
connection
connection2 registry collectionRef testCollection definitionRef definition logger trustNonceBearer taskManager McpServerConnection
assertconnection2
assertconnection2launchDefinition env env
connection2
registryStorageScope
connection3 registry collectionRef testCollection definitionRef definition logger trustNonceBearer taskManager McpServerConnection
assertconnection3
assertconnection3launchDefinition env env
connection3
definition McpServerDefinition
baseDefinition
launch
type McpServerTransportType
uri
headers
variableReplacement
section
target ConfigurationTarget
delegate
storeregistrydelegate
testCollectionserverDefinitionsdefinition
storeregistrytestCollection
connection registry collectionRef testCollection definitionRef definition logger trustNonceBearer taskManager McpServerConnection
launch connectionlaunchDefinition
assertlaunchtype McpServerTransportType
isUri launchuri
url launchuri
type launchtype
isUri
url
connection
customCollection McpCollectionDefinition
testCollection
def
deflaunch McpServerTransportStdio
env
definition McpServerDefinition
baseDefinition
variableReplacement
section
target ConfigurationTarget
delegate
storeregistrydelegate
testCollectionserverDefinitionsdefinition
storeregistrycustomCollection
connection registry
collectionRef customCollection
definitionRef definition
logger
trustNonceBearer
taskManager
McpServerConnection
assertconnection
assertconnectionlaunchDefinition McpServerTransportStdioenv
connection
testMcpSandboxServiceenabled
mcpResource
sandboxCollection McpCollectionDefinition serverDefinitions ISettableObservableMcpServerDefinition
testCollection
id
remoteAuthority
presentation
origin mcpResource
definition McpServerDefinition
baseDefinition
id
launch
type McpServerTransportTypeStdio
command
args
env
envFile
cwd
sandbox
delegate
storeregistrydelegate
sandboxCollectionserverDefinitionsdefinition
storeregistrysandboxCollection
connection registry
collectionRef sandboxCollection
definitionRef definition
logger
trustNonceBearer
taskManager
McpServerConnection
assertconnection
asserttestMcpSandboxServicecallCount
asserttestMcpSandboxServicelastLaunchCallArgsserverDef definition
asserttestMcpSandboxServicelastLaunchCallArgslaunch definitionlaunch
asserttestMcpSandboxServicelastLaunchCallArgsremoteAuthority
asserttestMcpSandboxServicelastLaunchCallArgsconfigTarget ConfigurationTarget
assertconnectionlaunchDefinition McpServerTransportStdiocommand
connection
lazyCollection McpCollectionDefinition
normalCollection McpCollectionDefinition
removedCalled
removedCalled
lazyCollection
testCollection
id
lazy
isCached
removedCalled
normalCollection
testCollection
id
serverDefinitions baseDefinition
disposable registrylazyCollection
storedisposable
assertregistrycollectionslength
assertregistrycollections lazyCollection
assertregistrylazyCollectionStatestate LazyCollectionStateHasUnknown
storeregistrylazyCollection
storeregistrynormalCollection
collections registrycollections
assertcollectionslength
assertcollections normalCollection
assertcollectionslazy
assertregistrylazyCollectionStatestate LazyCollectionStateAllKnown
lazyCollection
lazyCollection
lazy
lazyCollectionlazy
storeregistrynormalCollection
storeregistrylazyCollection
assertregistrylazyCollectionStatestate LazyCollectionStateHasUnknown
loadingPromise registry
assertregistrylazyCollectionStatestate LazyCollectionStateLoadingUnknown
loadingPromise
assertregistrycollectionslength
assertregistrylazyCollectionStatestate LazyCollectionStateAllKnown
assertremovedCalled
storeregistrylazyCollection
registry
assertremovedCalled
loadCalled
lazyCollection
lazyCollection
lazy
lazyCollectionlazy
loadCalled
storeregistrylazyCollection
configurationService
configurationServiceonDidChangeConfigurationEmitter
key key
IConfigurationChangeEvent
assert
registry collectionRef lazyCollection definitionRef baseDefinition logger trustNonceBearer taskManager
assertloadCalled
lazyCollectionlazyisCached
storeregistrylazyCollection
assertregistrylazyCollectionStatestate LazyCollectionStateAllKnown
uncachedLazy
lazyCollection
id
lazy
lazyCollectionlazy
isCached
storeregistryuncachedLazy
assertregistrylazyCollectionStatestate LazyCollectionStateHasUnknown
collection1
testCollection
id
label
collection2
testCollection
id
label
storeregistrycollection1
disposable2 registrycollection2
assertdisposable2 DisposableNone
assertregistrycollectionslength
assertregistrycollections collection1
assertregistrycollectionslabel
lazyCollection
testCollection
id
label
lazy
isCached
nonLazyCollection
testCollection
id
label
storeregistrylazyCollection
disposable2 storeregistrynonLazyCollection
assertdisposable2 DisposableNone
assertregistrycollectionslength
assertregistrycollections nonLazyCollection
assertregistrycollectionslabel
assertregistrycollectionslazy
nonLazyCollection
testCollection
id
label
lazyCollection
testCollection
id
label
lazy
isCached
storeregistrynonLazyCollection
disposable2 registrylazyCollection
assertdisposable2 DisposableNone
assertregistrycollectionslength
assertregistrycollections nonLazyCollection
assertregistrycollectionslabel
collection1
testCollection
id
label
collection2
testCollection
id
label
storeregistrycollection1
storeregistrycollection2
assertregistrycollectionslength
assertregistrycollectionsc cid
assertregistrycollectionsc cid
collection1
testCollection
id
label
collection2
testCollection
id
label
disposable1 storeregistrycollection1
disposable2 registrycollection2
assertdisposable2 DisposableNone
disposable2
assertregistrycollectionslength
assertregistrycollections collection1
disposable1
assertregistrycollectionslength
lazyCollection
testCollection
id
label
lazy
isCached
storeregistrylazyCollection
assertregistrycollectionslength
nonLazyFromExtension
testCollection
id
label
storeregistrynonLazyFromExtension
assertregistrycollectionslength
assertregistrycollectionslazy
duplicateAttempt
testCollection
id
label
disposable registryduplicateAttempt
assertdisposable DisposableNone
assertregistrycollectionslength
assertregistrycollections nonLazyFromExtension
enablementModel McpCollisionEnablementModel
baseEnablement EnablementModel
id
order
servers id label
McpCollectionDefinition serverDefinitions ISettableObservableMcpServerDefinition
id
label
remoteAuthority
order
serverDefinitions serverss
baseDefinition
id sid
label slabel
trustBehavior McpServerTrustKindTrusted
scope StorageScope
configTarget ConfigurationTarget
baseEnablement store testStorageService
collisionBehavior mcpServerCollisionBehaviorSection McpCollisionBehaviorDisable configurationService
enablementModel baseEnablement registry collisionBehavior
col1 id label
col2 id label
storeregistrycol1
storeregistrycol2
assertenablementModel
assertenablementModel
col1 id label
col2 id label
storeregistrycol1
storeregistrycol2
assertenablementModel
assertenablementModel
col1 id label
col2 id label
storeregistrycol1
storeregistrycol2
assertenablementModel
assertenablementModel
col2 id label
col1 id label
storeregistrycol2
storeregistrycol1
assertenablementModel
assertenablementModel
col1 id label
col2 id label
storeregistrycol1
storeregistrycol2
enablementModel ContributionEnablementStateEnabledWorkspace
assertenablementModel
assertenablementModel
assertenablementModel ContributionEnablementStateDisabledWorkspace
configurationService McpCollisionBehaviorSuffix
configurationServiceonDidChangeConfigurationEmitter
key key
IConfigurationChangeEvent
col1 id label
col2 id label
storeregistrycol1
storeregistrycol2
assertenablementModel
assertenablementModel
col1 id label
col2 id label
storeregistrycol1
storeregistrycol2
enablementModel ContributionEnablementStateDisabledProfile
assertenablementModel
assertenablementModel
col1 id label
col2 McpCollectionDefinition serverDefinitions ISettableObservableMcpServerDefinition
storeregistrycol1
storeregistrycol2
assertenablementModel
col2serverDefinitions baseDefinition id label
assertenablementModel
assertenablementModel
col1 id label
col2 id label
col3 id label
storeregistrycol1
storeregistrycol2
storeregistrycol3
assertenablementModel
assertenablementModel
assertenablementModel
col1 id label
col2 id label
col3 id label
storeregistrycol1
storeregistrycol2
storeregistrycol3
enablementModel ContributionEnablementStateEnabledWorkspace
assertenablementModel
assertenablementModel
assertenablementModel
col1 id label
col2 id label
col3 id label
storeregistrycol1
storeregistrycol2
storeregistrycol3
enablementModel ContributionEnablementStateDisabledProfile
assertenablementModel
assertenablementModel
assertenablementModel
col
id label
id label
storeregistrycol
assertenablementModel
assertenablementModel
col1 id label
col2 id label
storeregistrycol1
storeregistrycol2
baseEnablement ContributionEnablementStateEnabledWorkspace
baseEnablement ContributionEnablementStateEnabledWorkspace
assertenablementModel
assertenablementModel
col1 id label
col2 id label
storeregistrycol1
storeregistrycol2
enablementModel ContributionEnablementStateEnabledWorkspace
assertenablementModel
enablementModel
enablementModel
assertenablementModel
assertenablementModel
col1
id label
id label
col2
id label
id label
storeregistrycol1
storeregistrycol2
assertenablementModel
assertenablementModel
assertenablementModel
assertenablementModel
col1 id label
col2 id label
storeregistrycol1
storeregistrycol2
enablementModel ContributionEnablementStateEnabledWorkspace
assertenablementModel
assertenablementModel
trustBehavior McpServerTrustKindTrusted McpServerTrustKindTrustedOnNonce id McpCollectionDefinition serverDefinitions ISettableObservableMcpServerDefinition
id
label
remoteAuthority
serverDefinitions
trustBehavior
scope StorageScope
configTarget ConfigurationTarget
order
id cacheNonce McpServerDefinition
id
label
cacheNonce
launch
type McpServerTransportTypeStdio
command
args
env
envFile
cwd
sandbox
trustBehavior McpServerTrustKindTrusted McpServerTrustKindTrustedOnNonce McpServerTrustKindTrustedOnNonce cacheNonce
delegate
storeregistrydelegate
collection trustBehavior
definition cacheNonce
collectionserverDefinitionsdefinition
storeregistrycollection
collection definition delegate
collection definition McpServerTrustKindTrusted
connection registry
collectionRef collection
definitionRef definition
logger
trustNonceBearer
taskManager
assertconnection
assertregistrynextDefinitionIdsToTrust
connection
collection definition McpServerTrustKindTrustedOnNonce
trustNonceBearertrustedAtNonce
connection registry
collectionRef collection
definitionRef definition
logger
trustNonceBearer
taskManager
assertconnection
assertregistrynextDefinitionIdsToTrust
connection
collection definition McpServerTrustKindTrustedOnNonce
trustNonceBearertrustedAtNonce
registrynextDefinitionIdsToTrust definitionid
connection registry
collectionRef collection
definitionRef definition
logger
trustNonceBearer taskManager
assertconnection
asserttrustNonceBearertrustedAtNonce
connection
collection definition McpServerTrustKindTrustedOnNonce
trustNonceBearertrustedAtNonce
registrynextDefinitionIdsToTrust
connection registry
collectionRef collection
definitionRef definition
logger
trustNonceBearer taskManager
assertconnection
asserttrustNonceBearertrustedAtNonce
collection definition McpServerTrustKindTrustedOnNonce
trustNonceBearertrustedAtNonce
connection registry
collectionRef collection
definitionRef definition
logger
trustNonceBearer
autoTrustChanges
taskManager
assertconnection
asserttrustNonceBearertrustedAtNonce
assertregistrynextDefinitionIdsToTrust
connection
collection definition McpServerTrustKindTrustedOnNonce
trustNonceBearertrustedAtNonce
connection registry
collectionRef collection
definitionRef definition
logger
trustNonceBearer
promptType
taskManager
assertconnection
assertregistrynextDefinitionIdsToTrust
collection definition McpServerTrustKindTrustedOnNonce
trustNonceBearertrustedAtNonce
connection registry
collectionRef collection
definitionRef definition
logger
trustNonceBearer
promptType
taskManager
assertconnection
assertregistrynextDefinitionIdsToTrust
collection definition McpServerTrustKindTrustedOnNonce
trustNonceBearertrustedAtNonce
registrynextDefinitionIdsToTrust definitionid
connection registry
collectionRef collection
definitionRef definition
logger
trustNonceBearer
promptType
taskManager
assertconnection
asserttrustNonceBearertrustedAtNonce
connection
collection definition McpServerTrustKindTrustedOnNonce
trustNonceBearertrustedAtNonce
definition2
collectionserverDefinitionsdefinition definition2
interaction
interactionparticipantsdefinitionid s
interactionparticipantsdefinition2id s
trustNonceBearer2 trustedAtNonce
registrynextDefinitionIdsToTrust definitionid definition2id
connection1 connection2
registry
collectionRef collection
definitionRef definition
logger
trustNonceBearer
interaction
taskManager
registry
collectionRef collection
definitionRef definition2
logger
trustNonceBearer trustNonceBearer2
interaction
taskManager
assertconnection1
assertconnection2
asserttrustNonceBearertrustedAtNonce
asserttrustNonceBearer2trustedAtNonce
connection1
connection2
collection definition McpServerTrustKindTrustedOnNonce
trustNonceBearertrustedAtNonce
definition2
collectionserverDefinitionsdefinition definition2
interaction
interactionparticipantsdefinitionid s
interactionparticipantsdefinition2id s
trustNonceBearer2 trustedAtNonce
registrynextDefinitionIdsToTrust
connection1 connection2
registry
collectionRef collection
definitionRef definition
logger
trustNonceBearer
interaction
taskManager
registry
collectionRef collection
definitionRef definition2
logger
trustNonceBearer trustNonceBearer2
interaction
taskManager
assertconnection1
assertconnection2
collection definition McpServerTrustKindTrustedOnNonce
trustNonceBearertrustedAtNonce
definition2
collectionserverDefinitionsdefinition definition2
interaction
interactionparticipantsdefinitionid s
interactionparticipantsdefinition2id s
trustNonceBearer2 trustedAtNonce
registrynextDefinitionIdsToTrust definitionid
connection1 connection2
registry
collectionRef collection
definitionRef definition
logger
trustNonceBearer
interaction
taskManager
registry
collectionRef collection
definitionRef definition2
logger
trustNonceBearer trustNonceBearer2
interaction
taskManager
assertconnection1
assertconnection2
asserttrustNonceBearertrustedAtNonce
asserttrustNonceBearer2trustedAtNonce
connection1