Skip to content

Commit

Permalink
fix(agent): fix vscode statusbar sync when trying connecting. (#3198)
Browse files Browse the repository at this point in the history
* fix(agent): remove unused logs for config.

* fix(agent): fix vscode statusbar not sync when trying connecting.
  • Loading branch information
icycodes authored Sep 25, 2024
1 parent 178832a commit 1644e54
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 0 additions & 5 deletions clients/tabby-agent/src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,6 @@ export class Configurations extends EventEmitter implements Feature {
private update() {
const old = this.mergedConfig;
const merged = mergeConfig(this.defaultConfig, this.configFile, this.clientProvided, this.serverProvided);
this.logger.debug("Updated configurations." + JSON.stringify({ defaultConfig: this.defaultConfig }));
this.logger.debug("Updated configurations." + JSON.stringify({ configFile: this.configFile?.config }));
this.logger.debug("Updated configurations." + JSON.stringify({ clientProvided: this.clientProvided }));
this.logger.debug("Updated configurations." + JSON.stringify({ serverProvided: this.serverProvided }));
this.logger.debug("Updated configurations." + JSON.stringify({ merged: merged }));
if (!deepEqual(old, merged)) {
this.mergedConfig = merged;
this.logger.trace("Updated configurations.", { config: merged });
Expand Down
4 changes: 4 additions & 0 deletions clients/tabby-agent/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,10 @@ export class Server {
this.connection.sendNotification(AgentIssuesSync.type, { issues: this.buildAgentIssues().issues });
});

this.tabbyApiClient.on("isConnectingUpdated", async () => {
this.connection.sendNotification(AgentStatusSync.type, { status: this.buildAgentStatus() });
});

this.tabbyApiClient.on("hasCompletionResponseTimeIssueUpdated", async () => {
this.connection.sendNotification(AgentIssuesSync.type, { issues: this.buildAgentIssues().issues });
});
Expand Down

0 comments on commit 1644e54

Please sign in to comment.