From 4ca689acf8447b4578bded77b39e58f3138887f7 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Tue, 2 Jul 2024 12:26:57 -0700 Subject: [PATCH] fix double adding of context providers --- core/config/load.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/config/load.ts b/core/config/load.ts index 1a6c2929a..69521ddaa 100644 --- a/core/config/load.ts +++ b/core/config/load.ts @@ -144,12 +144,12 @@ function loadSerializedConfig( // Set defaults if undefined (this lets us keep config.json uncluttered for new users) config.contextProviders ??= ideType === "vscode" - ? defaultContextProvidersVsCode - : defaultContextProvidersJetBrains; + ? [...defaultContextProvidersVsCode] + : [...defaultContextProvidersJetBrains]; config.slashCommands ??= ideType === "vscode" - ? defaultSlashCommandsVscode - : defaultSlashCommandsJetBrains; + ? [...defaultSlashCommandsVscode] + : [...defaultSlashCommandsJetBrains]; return config; }