Skip to content

Commit

Permalink
Fix test and server logs in vs-code.
Browse files Browse the repository at this point in the history
  • Loading branch information
kichunya authored and sava-cska committed Dec 28, 2022
1 parent 2219c38 commit fd3ad0d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion vscode-plugin/src/client/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,18 @@ export class Client {
if (this.noConnectionEstablishedBefore) {
this.noConnectionEstablishedBefore = false;
await this.events.onDidConnectFirstTimeEventEmitter.fire();
await Promise.all([
this.provideLogChannel(),
this.provideGTestChannel()
]);
}
if (!this.isConnectionEstablished()) {
messages.showInfoMessage(messages.successfullyConnected);
logger.info('Successfully connected to server');
await Promise.all([
this.provideLogChannel(),
this.provideGTestChannel()
]);
}
if (this.newClient || !response.getLinked()) {
await Promise.all([
Expand Down Expand Up @@ -238,7 +246,6 @@ export class Client {

private async writeGTestLog(responseAny: any): Promise<void> {
const gtestEntry = responseAny as LogEntry;
utbotUI.channels().outputGTestChannel.show(true);
utbotUI.channels().outputGTestChannel.appendLine(gtestEntry.getMessage());
}

Expand Down

0 comments on commit fd3ad0d

Please sign in to comment.