Skip to content

Commit e7ab3f4

Browse files
committed
Activate RemoteEmptyWorkbenchPresentation on LifecyclePhase.Ready. For #159675
1 parent 3b26f30 commit e7ab3f4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/vs/workbench/contrib/remote/electron-sandbox/remote.contribution.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ class RemoteEmptyWorkbenchPresentation extends Disposable implements IWorkbenchC
107107
@IWorkspaceContextService contextService: IWorkspaceContextService
108108
) {
109109
super();
110+
console.log('XXXXX');
110111

111112
function shouldShowExplorer(): boolean {
112113
const startupEditor = configurationService.getValue<string>('workbench.startupEditor');
@@ -119,6 +120,7 @@ class RemoteEmptyWorkbenchPresentation extends Disposable implements IWorkbenchC
119120

120121
const { remoteAuthority, filesToDiff, filesToMerge, filesToOpenOrCreate, filesToWait } = environmentService;
121122
if (remoteAuthority && contextService.getWorkbenchState() === WorkbenchState.EMPTY && !filesToDiff?.length && !filesToMerge?.length && !filesToOpenOrCreate?.length && !filesToWait) {
123+
console.log('XXXXX');
122124
remoteAuthorityResolverService.resolveAuthority(remoteAuthority).then(() => {
123125
if (shouldShowExplorer()) {
124126
commandService.executeCommand('workbench.view.explorer');
@@ -135,7 +137,7 @@ const workbenchContributionsRegistry = Registry.as<IWorkbenchContributionsRegist
135137
workbenchContributionsRegistry.registerWorkbenchContribution(RemoteAgentDiagnosticListener, 'RemoteAgentDiagnosticListener', LifecyclePhase.Eventually);
136138
workbenchContributionsRegistry.registerWorkbenchContribution(RemoteExtensionHostEnvironmentUpdater, 'RemoteExtensionHostEnvironmentUpdater', LifecyclePhase.Eventually);
137139
workbenchContributionsRegistry.registerWorkbenchContribution(RemoteTelemetryEnablementUpdater, 'RemoteTelemetryEnablementUpdater', LifecyclePhase.Ready);
138-
workbenchContributionsRegistry.registerWorkbenchContribution(RemoteEmptyWorkbenchPresentation, 'RemoteEmptyWorkbenchPresentation', LifecyclePhase.Starting);
140+
workbenchContributionsRegistry.registerWorkbenchContribution(RemoteEmptyWorkbenchPresentation, 'RemoteEmptyWorkbenchPresentation', LifecyclePhase.Ready);
139141

140142
Registry.as<IConfigurationRegistry>(ConfigurationExtensions.Configuration)
141143
.registerConfiguration({

0 commit comments

Comments
 (0)