diff --git a/clients/tabby-agent/src/config/index.ts b/clients/tabby-agent/src/config/index.ts index 759c669a7a2c..e600578f2874 100644 --- a/clients/tabby-agent/src/config/index.ts +++ b/clients/tabby-agent/src/config/index.ts @@ -181,8 +181,8 @@ export class Configurations extends EventEmitter implements Feature { } async refreshClientProvidedConfig(): Promise { - 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; }