UNPKG

sussudio

Version:

An unofficial VS Code Internal API

36 lines (35 loc) 1.53 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}`); } }