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 assert from 'assert';
import { CancellationToken, CancellationTokenSource } from '../../../../../base/common/cancellation.js';
import { Emitter, Event } from '../../../../../base/common/event.js';
import { isWeb } from '../../../../../base/common/platform.js';
import { ensureNoDisposablesAreLeakedInTestSuite } from '../../../../../base/test/common/utils.js';
import { IInlineCompletionsService } from '../../../../../editor/browser/services/inlineCompletionsService.js';
import { ContextKeyExpression, IContextKeyService } from '../../../../../platform/contextkey/common/contextkey.js';
MockContextKeyService
IMarkdownRendererService
IStorageService StorageScope StorageTarget
ChatEntitlement IChatEntitlementService IChatSentiment
IStatusbarEntry IStatusbarEntryAccessor IStatusbarService
workbenchInstantiationService
InEditorZenModeContext
ChatQuotaResumeState ChatStatusBarEntry computeQuotaResumeState
IChatStatusItemService
UpdateTitleBarChatInProgressContext UpdateTitleBarContext UpdateTitleBarEditorVisibleContext
IChatEntitlementService
exhausted percentRemaining unlimited
available percentRemaining unlimited
pooledDepleted percentRemaining unlimited hasQuota
pooledAvailable percentRemaining unlimited hasQuota
override rules ContextKeyExpression
rules key key
name
previous ChatQuotaResumeState
entitlement ChatEntitlement
quotas Quotas
expected ChatQuotaResumeState
scenarios IScenario
name previous entitlement ChatEntitlementFree quotas premiumChat available expected
name previous entitlement ChatEntitlementFree quotas premiumChat exhausted expected
name previous entitlement ChatEntitlementFree quotas premiumChat available expected
name previous entitlement ChatEntitlementFree quotas premiumChat exhausted expected
name previous entitlement ChatEntitlementFree quotas expected
name previous entitlement ChatEntitlementFree quotas premiumChat exhausted additionalUsageEnabled expected
name previous entitlement ChatEntitlementFree quotas premiumChat exhausted additionalUsageEnabled expected
name previous entitlement ChatEntitlementFree quotas premiumChat available expected
name previous entitlement ChatEntitlementFree quotas premiumChat exhausted expected
name previous entitlement ChatEntitlementBusiness quotas premiumChat pooledDepleted expected
name previous entitlement ChatEntitlementEnterprise quotas premiumChat pooledDepleted expected
name previous entitlement ChatEntitlementBusiness quotas premiumChat pooledDepleted additionalUsageEnabled expected
name previous entitlement ChatEntitlementBusiness quotas premiumChat pooledAvailable expected
name previous entitlement ChatEntitlementPro quotas premiumChat exhausted expected
name previous entitlement ChatEntitlementProPlus quotas premiumChat exhausted expected
name previous entitlement ChatEntitlement quotas premiumChat exhausted expected
name previous entitlement ChatEntitlementPro quotas premiumChat available expected
name previous entitlement ChatEntitlementPro quotas premiumChat exhausted additionalUsageEnabled expected
name previous entitlement ChatEntitlementPro quotas expected
name previous entitlement ChatEntitlementUnresolved quotas expected
name previous entitlement ChatEntitlementUnavailable quotas expected
actual scenarioss name sname state sprevious sentitlement squotas
expected scenarioss name sname state sexpected
assertactual expected
store
opts quotas Quotas entitlement ChatEntitlement sentiment IChatSentiment
quotaExceeded store
quotaRemaining store
sentimentChanged store
entitlementChanged store
_serviceBrand
quotas optsquotas Quotas
entitlement optsentitlement ChatEntitlementFree
sentiment optssentiment completed IChatSentiment
onDidChangeQuotaExceeded quotaExceededevent
onDidChangeQuotaRemaining quotaRemainingevent
onDidChangeSentiment sentimentChangedevent
onDidChangeEntitlement entitlementChangedevent
quotaExceeded
quotaRemaining
sentimentChanged
entitlementChanged
opts quotas Quotas entitlement ChatEntitlement persisted ChatQuotaResumeState updateTitleBar updateTitleBarChatInProgress inDebugMode inZenMode
instantiationService
store
svc opts
statusbar
current IStatusbarEntry
entry IStatusbarEntry IStatusbarEntryAccessor
statusbarcurrent entry
e IStatusbarEntry statusbarcurrent e
instantiationServiceIChatEntitlementService svc
instantiationServiceIStatusbarService statusbar
instantiationServiceIInlineCompletionsService
_serviceBrand
onDidChangeIsSnoozing EventNone
snoozeTimeLeft
instantiationServiceIChatStatusItemService
_serviceBrand
onDidChange EventNone
instantiationServiceIMarkdownRendererService _serviceBrand
contextKeyService instantiationServiceIContextKeyService
UpdateTitleBarContextcontextKeyServiceoptsupdateTitleBar
UpdateTitleBarChatInProgressContextcontextKeyServiceoptsupdateTitleBarChatInProgress
contextKeyService optsinDebugMode
InEditorZenModeContextcontextKeyServiceoptsinZenMode
storageService instantiationServiceIStorageService
optspersisted
storageService optspersisted StorageScope StorageTarget
entry storeinstantiationServiceChatStatusBarEntry
entry
svc
statusbar
storageService
updateTitleBarVisible contextKeyServiceUpdateTitleBarEditorVisibleContext
storageService IStorageService
storageService StorageScope
resolve resolve
statusbar storageService entitlement ChatEntitlementFree quotas premiumChat exhausted
assertstatusbarcurrenttext
assertstorageService
withoutUpdate entitlement ChatEntitlementUnknown
withUpdate entitlement ChatEntitlementUnknown updateTitleBar
whileDebugging entitlement ChatEntitlementUnknown updateTitleBar inDebugMode
whileChatInProgress entitlement ChatEntitlementUnknown updateTitleBar updateTitleBarChatInProgress
inZenMode entitlement ChatEntitlementUnknown updateTitleBar inZenMode
defaultStatusText isWeb
assert
text
withoutUpdate withoutUpdatestatusbarcurrenttext
withUpdate withUpdatestatusbarcurrenttext
whileDebugging whileDebuggingstatusbarcurrenttext
whileChatInProgress whileChatInProgressstatusbarcurrenttext
inZenMode inZenModestatusbarcurrenttext
visibility
withoutUpdate withoutUpdateupdateTitleBarVisible
withUpdate withUpdateupdateTitleBarVisible
whileDebugging whileDebuggingupdateTitleBarVisible
whileChatInProgress whileChatInProgressupdateTitleBarVisible
inZenMode inZenModeupdateTitleBarVisible
text
withoutUpdate defaultStatusText
withUpdate
whileDebugging defaultStatusText
whileChatInProgress defaultStatusText
inZenMode
visibility
withoutUpdate
withUpdate
whileDebugging
whileChatInProgress
inZenMode
svc statusbar storageService entitlement ChatEntitlementFree quotas premiumChat exhausted
assertstorageService
svcquotas premiumChat available
svc
assertstatusbarcurrenttext
assertstorageService
statusbar storageService entitlement ChatEntitlementFree quotas premiumChat available persisted
assertstatusbarcurrenttext
assertstorageService
statusbar storageService entitlement ChatEntitlementBusiness quotas premiumChat pooledAvailable additionalUsageEnabled persisted
assertstatusbarcurrenttext
assertstorageService
statusbar storageService entitlement ChatEntitlementFree quotas premiumChat available persisted
assertstatusbarcurrenttext
tooltip statusbarcurrenttooltip token CancellationToken HTMLElement
cts
tooltipctstoken
cts
assertstatusbarcurrenttext
assertstorageService
svc statusbar storageService entitlement ChatEntitlementFree quotas premiumChat available persisted
assertstatusbarcurrenttext
svcquotas premiumChat exhausted
svc
assertstatusbarcurrenttext
assertstorageService