From 4c56aae984d398c4b05ec55caf2c638965d1d501 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Mangeonjean?= Date: Mon, 22 Jul 2024 19:35:30 +0200 Subject: [PATCH] fix: replace some unsupported by empty implementations --- src/missing-services.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/missing-services.ts b/src/missing-services.ts index 7ab4ec93..0786c51f 100644 --- a/src/missing-services.ts +++ b/src/missing-services.ts @@ -2106,10 +2106,8 @@ registerSingleton(IChatService, class ChatService implements IChatService { adoptRequest = unsupported isEnabled = () => false resendRequest = unsupported - onDidUnregisterProvider = Event.None clearAllHistoryEntries = unsupported onDidSubmitAgent = Event.None - onDidRegisterProvider = Event.None hasSessions = () => false onDidDisposeSession = Event.None transferredSessionData = undefined @@ -2117,7 +2115,6 @@ registerSingleton(IChatService, class ChatService implements IChatService { getSessionId = () => undefined transferredSessionId = undefined transferChatSession = unsupported - registerProvider = unsupported registerSlashCommandProvider = unsupported getProviderInfos = () => [] startSession = unsupported @@ -3007,7 +3004,7 @@ registerSingleton(IChatWidgetHistoryService, class ChatWidgetHistoryService impl registerSingleton(IChatCodeBlockContextProviderService, class ChatCodeBlockContextProviderService implements IChatCodeBlockContextProviderService { _serviceBrand: undefined providers = [] - registerProvider = unsupported + registerProvider = () => Disposable.None }, InstantiationType.Delayed) registerSingleton(IInlineChatSessionService, class InlineChatSessionService implements IInlineChatSessionService { @@ -3203,8 +3200,8 @@ registerSingleton(IWorkingCopyHistoryService, class WorkingCopyHistoryService im updateEntry = unsupported removeEntry = unsupported moveEntries = unsupported - getEntries = unsupported - getAll = unsupported + getEntries = async () => [] + getAll = async () => [] removeAll = unsupported }, InstantiationType.Delayed)