diff options
Diffstat (limited to 'packages/core/src')
| -rw-r--r-- | packages/core/src/ide/ide-client.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/core/src/ide/ide-client.ts b/packages/core/src/ide/ide-client.ts index 6d8be7fa..69329bee 100644 --- a/packages/core/src/ide/ide-client.ts +++ b/packages/core/src/ide/ide-client.ts @@ -211,16 +211,16 @@ export class IdeClient { this.state.status === IDEConnectionStatus.Disconnected && status === IDEConnectionStatus.Disconnected; - // Only update details if the state wasn't already disconnected, so that - // the first detail message is preserved. + // Only update details & log to console if the state wasn't already + // disconnected, so that the first detail message is preserved. if (!isAlreadyDisconnected) { this.state = { status, details }; - } - - if (status === IDEConnectionStatus.Disconnected) { if (logToConsole) { logger.error(details); } + } + + if (status === IDEConnectionStatus.Disconnected) { logger.debug(details); ideContext.clearIdeContext(); } |
