Skip to content

Commit

Permalink
fix: add missing new service
Browse files Browse the repository at this point in the history
  • Loading branch information
Loïc Mangeonjean committed Apr 9, 2024
1 parent f9ef1ee commit b229818
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
8 changes: 7 additions & 1 deletion src/missing-services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ import { INotebookKernelHistoryService, INotebookKernelService } from 'vs/workbe
import { INotebookRendererMessagingService } from 'vs/workbench/contrib/notebook/common/notebookRendererMessagingService'
import { IInteractiveDocumentService } from 'vs/workbench/contrib/interactive/browser/interactiveDocumentService'
import { IInlineChatService } from 'vs/workbench/contrib/inlineChat/common/inlineChat'
import { IChatAccessibilityService, IChatWidgetService, IQuickChatService } from 'vs/workbench/contrib/chat/browser/chat'
import { IChatAccessibilityService, IChatCodeBlockContextProviderService, IChatWidgetService, IQuickChatService } from 'vs/workbench/contrib/chat/browser/chat'
import { IRemoteExplorerService } from 'vs/workbench/services/remote/common/remoteExplorerService'
import { IAuthenticationExtensionsService, IAuthenticationService } from 'vs/workbench/services/authentication/common/authentication'
import { ITimelineService } from 'vs/workbench/contrib/timeline/common/timeline'
Expand Down Expand Up @@ -2931,6 +2931,12 @@ registerSingleton(IChatWidgetHistoryService, class ChatWidgetHistoryService impl
saveHistory = unsupported
}, InstantiationType.Delayed)

registerSingleton(IChatCodeBlockContextProviderService, class ChatCodeBlockContextProviderService implements IChatCodeBlockContextProviderService {
_serviceBrand: undefined
providers = []
registerProvider = unsupported
}, InstantiationType.Delayed)

registerSingleton(IInlineChatSessionService, class InlineChatSessionService implements IInlineChatSessionService {
_serviceBrand: undefined
onDidMoveSession = Event.None
Expand Down
6 changes: 4 additions & 2 deletions src/service-override/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { IEditorOverrideServices } from 'vs/editor/standalone/browser/standalone
import { SyncDescriptor } from 'vs/platform/instantiation/common/descriptors'
import { IChatService } from 'vs/workbench/contrib/chat/common/chatService'
import { IChatContributionService } from 'vs/workbench/contrib/chat/common/chatContributionService'
import { IChatWidgetService, IChatAccessibilityService, IQuickChatService } from 'vs/workbench/contrib/chat/browser/chat'
import { IChatWidgetService, IChatAccessibilityService, IQuickChatService, IChatCodeBlockContextProviderService } from 'vs/workbench/contrib/chat/browser/chat'
import { ChatContributionService } from 'vs/workbench/contrib/chat/browser/chatContributionServiceImpl'
import { ChatWidgetService } from 'vs/workbench/contrib/chat/browser/chatWidget'
import { ChatService } from 'vs/workbench/contrib/chat/common/chatServiceImpl'
Expand All @@ -20,6 +20,7 @@ import { InlineChatSessionServiceImpl } from 'vs/workbench/contrib/inlineChat/br
import { IInlineChatSavingService } from 'vs/workbench/contrib/inlineChat/browser/inlineChatSavingService'
import { InlineChatSavingServiceImpl } from 'vs/workbench/contrib/inlineChat/browser/inlineChatSavingServiceImpl'
import { ILanguageModelsService, LanguageModelsService } from 'vs/workbench/contrib/chat/common/languageModels'
import { ChatCodeBlockContextProviderService } from 'vs/workbench/contrib/chat/browser/codeBlockContextProviderService'
import 'vs/workbench/contrib/chat/browser/chat.contribution'
import 'vs/workbench/contrib/inlineChat/browser/inlineChat.contribution'

Expand All @@ -37,6 +38,7 @@ export default function getServiceOverride (): IEditorOverrideServices {
[IChatVariablesService.toString()]: new SyncDescriptor(ChatVariablesService, [], true),
[IInlineChatService.toString()]: new SyncDescriptor(InlineChatServiceImpl, [], true),
[IInlineChatSessionService.toString()]: new SyncDescriptor(InlineChatSessionServiceImpl, [], true),
[IInlineChatSavingService.toString()]: new SyncDescriptor(InlineChatSavingServiceImpl, [], true)
[IInlineChatSavingService.toString()]: new SyncDescriptor(InlineChatSavingServiceImpl, [], true),
[IChatCodeBlockContextProviderService.toString()]: new SyncDescriptor(ChatCodeBlockContextProviderService, [], true)
}
}

0 comments on commit b229818

Please sign in to comment.