-
Notifications
You must be signed in to change notification settings - Fork 296
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bugs in workspace::getConfiguration vscode shim (#6058)
## Changes `getConfiguration` was working incorrectly when scope was provided. Currently agent ignores scopes, but should respect configuration sections. In the buggy case if scope was give, `getConfiguration` was always returning top level scope ignoring section. ## Test plan Unittests are added. Test scenario with openctx providers: 1. Add the following configuration in the cody jetbrains settings: ``` "cody.experimental.noodle": true, "openctx": { "providers": { "https://gist.githubusercontent.com/thenamankumar/3708f084fb2abd57adafe7f14620bdf7/raw/e7c7059cb5b04f6feead002e7b3a90c5b1a4bb96/provider.js": true }, "enable": true } ``` 2. Restart IDE 3. You should see new @ provider ![image](https://github.com/user-attachments/assets/608881fb-90d6-4328-a427-2b13388d3db8)
- Loading branch information
Showing
2 changed files
with
85 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters