UNPKG

@sussudio/platform

Version:

Internal APIs for VS Code's service injection the base services.

35 lines (33 loc) 1.55 kB
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ import { Event } from '@sussudio/base/common/event.mjs'; import { IChannel, IServerChannel } from '@sussudio/base/parts/ipc/common/ipc.mjs'; import { IExtensionRecommendationNotificationService, RecommendationsNotificationResult, RecommendationSource, } from '../common/extensionRecommendations.mjs'; export declare class ExtensionRecommendationNotificationServiceChannelClient implements IExtensionRecommendationNotificationService { private readonly channel; readonly _serviceBrand: undefined; constructor(channel: IChannel); get ignoredRecommendations(): string[]; promptImportantExtensionsInstallNotification( extensionIds: string[], message: string, searchValue: string, priority: RecommendationSource, ): Promise<RecommendationsNotificationResult>; promptWorkspaceRecommendations(recommendations: string[]): Promise<void>; hasToIgnoreRecommendationNotifications(): boolean; } export declare class ExtensionRecommendationNotificationServiceChannel implements IServerChannel { private service; constructor(service: IExtensionRecommendationNotificationService); listen(_: unknown, event: string): Event<any>; call(_: unknown, command: string, args?: any): Promise<any>; }