Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored May 29, 2024
1 parent 1173b51 commit a120f99
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions clients/vscode/src/chat/ChatViewProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class ChatViewProvider implements WebviewViewProvider {
};

if (this.isReady) {
await this.renderChatPage()
await this.renderChatPage();
} else {
webviewView.webview.html = this.getWelcomeContent();
}
Expand All @@ -46,12 +46,12 @@ export class ChatViewProvider implements WebviewViewProvider {
this.agent.on("didChangeStatus", async (status) => {
if (status === "ready" && !this.isReady) {
this.isReady = true;
await this.renderChatPage()
await this.renderChatPage();
}
});

this.agent.on("didUpdateServerInfo", async (serverInfo: ServerInfo) => {
await this.renderChatPage(serverInfo)
await this.renderChatPage(serverInfo);
});

// The event will not be triggered during the initial rendering.
Expand All @@ -74,12 +74,12 @@ export class ChatViewProvider implements WebviewViewProvider {
});
}

private async renderChatPage (serverInfo?: ServerInfo) {
private async renderChatPage(serverInfo?: ServerInfo) {
if (!serverInfo) {
serverInfo = await this.agent.fetchServerInfo();
}
if (this.webview) {
this.webview.webview.html = this.getWebviewContent(serverInfo)
this.webview.webview.html = this.getWebviewContent(serverInfo);
}
}

Expand Down

0 comments on commit a120f99

Please sign in to comment.