@@ -137,7 +137,7 @@ private async Task CreateEditorServicesAndRunUntilShutdown()
137
137
HostStartupInfo hostStartupInfo = CreateHostStartupInfo ( ) ;
138
138
139
139
// If we just want a temp debug session, run that and do nothing else
140
- if ( isTempDebugSession )
140
+ if ( isTempDebugSession )
141
141
{
142
142
await RunTempDebugSessionAsync ( hostStartupInfo ) . ConfigureAwait ( false ) ;
143
143
return ;
@@ -153,9 +153,9 @@ private async Task CreateEditorServicesAndRunUntilShutdown()
153
153
154
154
// Unsubscribe the host logger here so that the integrated console is not polluted with input after the first prompt
155
155
_logger . Log ( PsesLogLevel . Verbose , "Starting server, deregistering host logger and registering shutdown listener" ) ;
156
- if ( _loggersToUnsubscribe != null )
156
+ if ( _loggersToUnsubscribe != null )
157
157
{
158
- foreach ( IDisposable loggerToUnsubscribe in _loggersToUnsubscribe )
158
+ foreach ( IDisposable loggerToUnsubscribe in _loggersToUnsubscribe )
159
159
{
160
160
loggerToUnsubscribe . Dispose ( ) ;
161
161
}
@@ -166,22 +166,22 @@ private async Task CreateEditorServicesAndRunUntilShutdown()
166
166
PsesLanguageServer languageServer = await CreateLanguageServerAsync ( hostStartupInfo ) . ConfigureAwait ( false ) ;
167
167
168
168
Task < PsesDebugServer > debugServerCreation = null ;
169
- if ( creatingDebugServer )
169
+ if ( creatingDebugServer )
170
170
{
171
171
debugServerCreation = CreateDebugServerWithLanguageServerAsync ( languageServer , usePSReadLine : _config . ConsoleRepl == ConsoleReplKind . PSReadLine ) ;
172
172
}
173
173
174
174
Task languageServerStart = languageServer . StartAsync ( ) ;
175
175
176
176
Task debugServerStart = null ;
177
- if ( creatingDebugServer )
177
+ if ( creatingDebugServer )
178
178
{
179
179
// We don't need to wait for this to start, since we instead wait for it to complete later
180
180
debugServerStart = StartDebugServer ( debugServerCreation ) ;
181
181
}
182
182
183
183
await languageServerStart . ConfigureAwait ( false ) ;
184
- if ( debugServerStart != null )
184
+ if ( debugServerStart != null )
185
185
{
186
186
await debugServerStart . ConfigureAwait ( false ) ;
187
187
}
@@ -210,7 +210,7 @@ private async Task StartDebugServer(Task<PsesDebugServer> debugServerCreation)
210
210
211
211
// When the debug server shuts down, we want it to automatically restart
212
212
// To do this, we set an event to allow it to create a new debug server as its session ends
213
- if ( ! _alreadySubscribedDebug )
213
+ if ( ! _alreadySubscribedDebug )
214
214
{
215
215
_logger . Log ( PsesLogLevel . Diagnostic , "Subscribing debug server for session ended event" ) ;
216
216
_alreadySubscribedDebug = true ;
@@ -268,7 +268,7 @@ private HostStartupInfo CreateHostStartupInfo()
268
268
_logger . Log ( PsesLogLevel . Diagnostic , "Creating startup info object" ) ;
269
269
270
270
ProfilePathInfo profilePaths = null ;
271
- if ( _config . ProfilePaths . AllUsersAllHosts != null
271
+ if ( _config . ProfilePaths . AllUsersAllHosts != null
272
272
|| _config . ProfilePaths . AllUsersCurrentHost != null
273
273
|| _config . ProfilePaths . CurrentUserAllHosts != null
274
274
|| _config . ProfilePaths . CurrentUserCurrentHost != null )
@@ -298,7 +298,7 @@ private HostStartupInfo CreateHostStartupInfo()
298
298
299
299
private void WriteStartupBanner ( )
300
300
{
301
- if ( _config . ConsoleRepl == ConsoleReplKind . None )
301
+ if ( _config . ConsoleRepl == ConsoleReplKind . None )
302
302
{
303
303
return ;
304
304
}
0 commit comments