Skip to content

Commit

Permalink
fix(agent): fix guard when refresh client config.
Browse files Browse the repository at this point in the history
  • Loading branch information
icycodes committed Feb 20, 2025
1 parent df2dd80 commit 9b963ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clients/tabby-agent/src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ export class Configurations extends EventEmitter implements Feature {
}

async refreshClientProvidedConfig(): Promise<boolean> {
if (this.clientCapabilities?.workspace?.configuration) {
const config = await this.lspConnection?.workspace.getConfiguration();
if (this.lspConnection && this.clientCapabilities?.workspace?.configuration) {
const config = await this.lspConnection.workspace.getConfiguration();
this.updateClientProvidedConfig(config);
return true;
}
Expand Down

0 comments on commit 9b963ad

Please sign in to comment.