cody
cody copied to clipboard
Chat: update code context template formatting
The changes in this commit improve the formatting of the code context templates used in the Cody prompt. Specifically:
- The
populateCodeContextTemplatefunction now uses a more concise template for the "edit" case, removing the{filePath}and{inRepo}placeholders. - The
SELECTED_CODE_CONTEXT_TEMPLATEhas been updated to include the{languageID}and{filePathToParse}placeholders, providing more context about the selected code. - The
populateCurrentSelectedCodeContextTemplatefunction has been updated to leverage the new placeholders in theSELECTED_CODE_CONTEXT_TEMPLATE.
These changes aim to provide a cleaner and more informative presentation of the code context in the Cody prompt.
Test plan
Check recordings.