926
927
constructor(
928
>
@IExtensionService private readonly _extensionService: IExtensionService,
languageModels.ts
929
>
@ILogService private readonly _logService: ILogService,
930
>
@IStorageService private readonly _storageService: IStorageService,
931
>
@IContextKeyService private readonly _contextKeyService: IContextKeyService,
932
>
@ILanguageModelsConfigurationService private readonly _languageModelsConfigurationService: ILanguageModelsConfigurationService,
933
>
@IQuickInputService private readonly _quickInputService: IQuickInputService,
934
>
@ISecretStorageService private readonly _secretStorageService: ISecretStorageService,
935
>
@IProductService private readonly _productService: IProductService,
936
>
@IRequestService private readonly _requestService: IRequestService,
937
>
@INotificationService private readonly _notificationService: INotificationService,
938
>
@IOpenerService private readonly _openerService: IOpenerService,
939
>
@ITelemetryService private readonly _telemetryService: ITelemetryService,
940
>
) {
941
>
this._hasUserSelectableModels = ChatContextKeys.languageModelsAreUserSelectable.bindTo(_contextKeyService);
942
>
this._hasNonCopilotUserSelectableModels = ChatContextKeys.nonCopilotLanguageModelsAreUserSelectable.bindTo(_contextKeyService);
943
>
this._recentlyUsedModelIds = this._readRecentlyUsedModels();
944
>
this._pinnedModelIds = this._readPinnedModels();
945
>
this._readVisibility();
946
>
this._initChatControlData();
947
>
948
>
this._store.add(this.onDidChangeLanguageModels(() => {
949
let hasUserSelectable = false;
950
let hasNonCopilotUserSelectable = false;