UNPKG

@sussudio/platform

Version:

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

44 lines (43 loc) 1.44 kB
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ export class ExtensionRecommendationNotificationServiceChannelClient { channel; constructor(channel) { this.channel = channel; } get ignoredRecommendations() { throw new Error('not supported'); } promptImportantExtensionsInstallNotification(extensionIds, message, searchValue, priority) { return this.channel.call('promptImportantExtensionsInstallNotification', [ extensionIds, message, searchValue, priority, ]); } promptWorkspaceRecommendations(recommendations) { throw new Error('not supported'); } hasToIgnoreRecommendationNotifications() { throw new Error('not supported'); } } export class ExtensionRecommendationNotificationServiceChannel { service; constructor(service) { this.service = service; } listen(_, event) { throw new Error(`Event not found: ${event}`); } call(_, command, args) { switch (command) { case 'promptImportantExtensionsInstallNotification': return this.service.promptImportantExtensionsInstallNotification(args[0], args[1], args[2], args[3]); } throw new Error(`Call not found: ${command}`); } }