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.71k stars 297 forks source link

Agent: support multi-root workspace on workspace change events #5211

Closed abeatrix closed 2 months ago

abeatrix commented 2 months ago

This PR addresses the issue where the workspace folder changes were not being handled correctly. The setWorkspaceFolders function has been updated to correctly add, remove, and update the workspace folders in the workspaceFolders array.

Additionally, the ChatsController has been updated to handle clients with a single webview, where the sidebar chat view is the only supported chat view.

Test plan

Green CI. Added test coverage for the workspace change in vs code shim.

Connect Agent to client to test the following:

Changelog