Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(chat): expansion of current-tab generic mention when non editor t…
…abs are opened (#6910) Here are a few short videos: 1. The bug in action: https://github.com/user-attachments/assets/aba8daa5-0473-4ebb-b11d-142c1ccd89c4 2. Besides fixing the generic replacement I also added an option to `selectedCodePromptWithExtraFiles` in order to get rid of parenthesis wrapping the `otherMentions` if we don't need it such as in the case of the current-tabs. https://github.com/user-attachments/assets/8af553c5-afa3-4c63-bf30-c3a533d1449d and the fix: https://github.com/user-attachments/assets/0aab3f83-c06c-439e-a694-385fc100597e ## Test plan 1. Create a prompt that uses the current-tab mention. 2. Open the Settings panel on VSCode (command + ,) 4. Run the prompt and notice it being replaced by the opened editor tabs instead of remaining on cody://current-tabs <!-- Required. See https://docs-legacy.sourcegraph.com/dev/background-information/testing_principles. -->
- Loading branch information