fix double adding of context providers

This commit is contained in:
Nate Sesti 2024-07-02 12:26:57 -07:00
parent 8f409e251a
commit 4ca689acf8

View file

@ -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;
}