Skip to content

Commit

Permalink
fix: missing contribution and service override
Browse files Browse the repository at this point in the history
  • Loading branch information
Loïc Mangeonjean committed Mar 11, 2024
1 parent 8744b21 commit 27c0436
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/service-override/remoteAgent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,14 @@ import { IRemoteUserDataProfilesService } from 'vs/workbench/services/userDataPr
import { IUserDataProfileService } from 'vs/workbench/services/userDataProfile/common/userDataProfile'
import { IActiveLanguagePackService } from 'vs/workbench/services/localization/common/locale'
import { IExtensionDescription } from 'vs/platform/extensions/common/extensions'
import { ITunnelService } from 'vs/platform/tunnel/common/tunnel'
import { TunnelService } from 'vs/workbench/services/tunnel/browser/tunnelService'
import getEnvironmentServiceOverride from './environment'
import { getWorkbenchConstructionOptions } from '../workbench'
import { registerServiceInitializePreParticipant } from '../lifecycle'
import 'vs/workbench/contrib/remote/common/remote.contribution'
import 'vs/workbench/contrib/remote/browser/remote.contribution'
import 'vs/workbench/contrib/remote/browser/remoteStartEntry.contribution'

class CustomRemoteSocketFactoryService extends RemoteSocketFactoryService {
constructor (@IBrowserWorkbenchEnvironmentService browserWorkbenchEnvironmentService: IBrowserWorkbenchEnvironmentService) {
Expand Down Expand Up @@ -91,6 +94,7 @@ export default function getServiceOverride ({ scanRemoteExtensions = false }: Re
[IRemoteAuthorityResolverService.toString()]: new SyncDescriptor(InjectedRemoteAuthorityResolverService, []),
[IRemoteExplorerService.toString()]: new SyncDescriptor(RemoteExplorerService, [], true),
[IExternalUriOpenerService.toString()]: new SyncDescriptor(ExternalUriOpenerService, [], true),
[IRemoteExtensionsScannerService.toString()]: new SyncDescriptor(CustomRemoteExtensionsScannerService, [scanRemoteExtensions], true)
[IRemoteExtensionsScannerService.toString()]: new SyncDescriptor(CustomRemoteExtensionsScannerService, [scanRemoteExtensions], true),
[ITunnelService.toString()]: new SyncDescriptor(TunnelService, [], true)
}
}

0 comments on commit 27c0436

Please sign in to comment.