sourcegraph / cody

Type less, code more: Cody is an AI code assistant that uses advanced search and codebase context to help you write and fix code.
https://cody.dev
Apache License 2.0
2.53k stars 261 forks source link

Get settings schema endpoint #5080

Closed pkukielka closed 1 month ago

pkukielka commented 1 month ago

Changes

This PR adds extensionConfiguration/getSettingsSchema endpoint which generates json schema file useful for validating cody settings and for documentation purposes.

Test plan

  1. Build Jenkins PR #1972 with CODY_DIR set to this PR branch.
  2. Run action Open Cody Settings Editor (you can use shift shift to find it)
  3. Change some Cody settings. E.g. you can try to disable autocomplete: "cody.autocomplete.enabled": true
  4. Hit Ctrl + S to trigger the config update
  5. Try to use autocomplete in some other file and make sure it does not work.
  6. Revert your changes and make sure autocomplete is enabled again.