cody
cody copied to clipboard
Generating unit test command not working
This PR adds a class that attempts to normalize all the Uri with file paths that we get from the agent. Non-standard formatted uri causes inability to create file in editor (ex. file with unit tests). In addition, the editor does not support the creation of new files in memory by which the use of the prefix untitled in uri was incorrectly interpreted as a request to create a scratchpad file. This PR causes that if the agent request that a file needs to be created, it will be created as a project file (not a scratch file).
Test plan
- Open file with code
- Select code and open context menu
- Run Generate unit test command