- Onboarding
- Autocomplete
- Commands
- Chat
- Inline Edit
- Multi-repo context
- Sourcegraph Code Search
- Product-led growth
- Other
- Context
- Model dropdown
- Inline Edit
Prerequisite: You have to sign out from all existing accounts.
- Navigate to
Cody
tool window and useSign in with GitHub
. - Browser is launched automatically and IDE freezes with spinning
Login to Sourcegraph
dialog. - Authorize with a valid account.
- IDE should receive a valid token automatically.
Commands
andChat
tabs are ready to use.
Verify the remaining SSO methods by performing the same steps for Sign in with GitLab
and Sign in with Google
.
Prerequisite: You have to be signed in. This is important because we expect certain components to be refreshed automatically.
- Navigate to
Settings
>Sourcegraph & Cody
. - Remove all accounts and apply settings.
Cody
tool window is automatically refreshed and the user is greeted with theWelcome to Cody
panel.- Status bar widget has a
No account signed-in
status. Status bar is located in the bottom right corner of the IDE.
- Paste the following Java code:
// print Hello World! System.out.
- Place a cursor at the end of the
System.out.
line. - Trigger autocompletion with Alt +
\
(or option +\
on Mac).
- Paste the following Java code:
public void bubbleSort(int[] array) {
- Place the cursor at the end of the line.
- Trigger autocompletion with Alt +
\
(or option +\
on Mac).
- Paste the following Java code:
// print System.out.println("Hello World!");
- Place cursor at the end of the
// print
line. - Trigger autocompletion with Alt +
\
(or option +\
on Mac).
- Paste the following Java code:
public void bubbleSort(int[] array) {
- Place the cursor at the end of the line.
- Cycle forward with Alt + ] or backward with Alt + [. (option + [ or ] for Mac)
- Navigate to
Cody
tool window and openCommands
.
- List of commands is immediately available after the tool window is displayed. No refresh is required.
Command | Windows / Linux | MacOs |
---|---|---|
Explain Code | Alt + Shift + 1 | control + Shift + E |
Smell Code | Alt + Shift + 2 | control + Shift + S |
Edit Code | control + Shift + Enter | |
Document Code | control + Shift + H | |
Generate Unit Test | control + Shift + T |
- Commands work as executed from any other place (the tool window opens if needed).
- Open file with source code and select some fragment.
- Show context menu with right mouse button, navigate to
Cody
, and choose one of the commands.
- All commands are visible in Cody context menu and can be selected.
- All commands are visible in the Commands panel and can be selected.
- All commands works after selection.
- Open file with source code and select some fragment.
- Visually confirm that the hotkeys for Edit and Chat are displayed at the end of the selection.
It should show something like this: Ctrl + Shift + ⏎ to Edit
(Note: that text above is not intended to be accurate. The actual hotkeys displayed
should match whatever we have most recently set them to; they change now and then.)
- There should only be one hint visible at a time, and should update as the selection changes.
- The hint should disappear as soon as the selection disappears.
- The hotkeys displayed in the hint should be correct.
- The colors chosen should be clearly visible on all themes.
- It is OK if the hint is not visible in some places because it's offscreen.
- The hint should not appear in any views/panes in the IDE other than code editor tabs.
- The hint should not appear if there is an active edit session.
- Paste the following Java code:
System.out.println("Hello, Cody!");
- Select line and use
Cody | Commands | Explain Code
.
- User is automatically switched to
Chat
tab. - Chat responds with a description of the selected code and will elaborate on the fields, classes, and methods, going into technical details, often structuring the text in bullet points.
- Paste the following Java code:
public static String greet(String name) { return "Hello, " + name + "!"; }
- Select line and use
Cody | Commands | Smell Code
- User is automatically switched to
Chat
tab. - Chat responds with potential issues and suggestions like missing nullability checks or input sanitization ( response may vary).
Unless otherwise specified, all tests for the dialog begin with:
- Open any source file.
- Right-click in the file to bring up the code context menu.
- alternatively, position your caret in the editor and type ctrl+shift+enter or select Edit Code from the Commands panel.
- Choose Cody, then Edit Code. Confirm that the dialog appears.
All tests involving prompt history should end with:
- Close and reopen the current Project to clear prompt history.
- Open the dialog and check its position.
- Dialog should always appear beneath the line you chose/clicked on.
- The horizontal position of the dialog is always the same, indented a bit from the left edge.
- Dialog always remains floating on top of the IDE and is not obsured by other IDE windows.
- Observe the dialog's appearance.
- Dialog has rounded corners.
- Switch IDE themes by going to Settings and choosing a new theme.
- Dialog's colors should change to match the new theme.
- Check the dialog's mouse interaction and modality:
- Dialog can be dragged by clicking and dragging in the "title bar" area.
- Dialog can be resized by carefully positioning the cursor at the corners and dragging.
- Close the dialog, and press Ctrl+Shift+Enter (Mac)
- Dialog should appear, just as if it had been opened with the context menu
- Open the dialog and check the layout.
- The file path suffix is displayed, truncated with ellipsis if needed.
- The instructions field is empty and is displaying the "ghost text" help.
- The history widget is not shown in the bottom center.
- The Edit Code button is initially disabled.
- Type some non-whitespace text into the text field.
- The Edit Code button is enabled.
- Delete all the text in the text field.
- The Edit Code button is disabled.
- Click the expansion icon at the right of the text field.
- The text field expands to allow more of your instructions to be visible.
- You can collapse it to return to the regular view.
- Change the IDE font size to 22 and try the dialog. It should lay out correctly.
- then try at font size 6 to ensure it works there too.
- Open a project file with a pathname of 80+ characters, then the Instructions dialog.
- The tail end of the path should be displayed, with the first part replaced with "…".
- Hover over the truncated file path.
- It should pop up a tooltip with the full/absolute file path.
- Press the ESC key while the dialog has the focus.
- Dialog should always close, no matter which component in the dialog has the focus.
- Mouse-click the "[esc] to cancel" label in the lower left.
- Dialog should close.
- Close the editor tab from which the dialog was opened.
- Dialog should close along with the tab.
- With text in the instructions field, press the OS-specific hotkey shown next to Edit Code.
- The dialog should close and initiate an Edit request.
- Type "one" into the text field (or anything you like as the first history item).
- Click Edit Code to submit the edit command, which closes the dialog.
- Then cancel the running command with the Cancel code lens.
- Reopen the instructions dialog anywhere in the document (or even another tab).
- The text field should now contain the text "one".
- The
↑↓ for history
label should now appear at the bottom of the dialog. - Typing the up/down the arrows at this point only moves the cursor.
- Replace the text with "two", then oncce again Edit Code, cancel op, and reopen dialog.
- Text field contents should now be "two".
- Up/down arrows should cycle between "one" and "two".
- Type "my long instruction" into the text field. (Anything longer than 10 characters.)
- Up-arrow should take you to the most recent history item.
- Cycling the arrows, you should now also find "my long instruction" in the history.
- When signed in to an Enterprise account, verify that the model dropdown is not present in the dialog.
- When signed in to a Cody Free or Cody Pro account, verify that the model dropdown is available in the dialog.
- When signed in to a Cody Free or Cody Pro user, click the model dropdown and ensure that it shows the same models as the dropdown in the Chat window.
- Open the dialog, enter a valid instruction, such as "add comment", and press Edit Code.
- Verify that Cody has applied the edits inline according to your instructions.
- Open any project file and highlight a selection of code.
- Use the keyboard shortcut, Cody context menu, or option in the Commands panel to execute the Document Code command.
- Cody should apply documentation above the selected code.
- Move your cursor inside of a different function in the file without highlighting any code.
- Execute the Document command.
- Cody should apply documentation above the function that contains your cursor.
- Open a project file that does not have any associated test files.
- Highlight a selection of code.
- Use the keyboard shortcut, Cody context menu, or option in the Commands panel to execute the Document Code command.
- Cody should create a new, unsaved test file, adds the suggested unit tests to the file, and recommends a name/location for the file to be saved to.
- Open a project file that does have an associated test file.
- Execute the Document Code command.
- Cody should add the suggested unit tests to the bottom of the existing test file.
- Instead of highlighting code, leave your cursor in a line on the file and execute the Document Code command.
- Cody should treat the function containing your cursor as "highlighted code" and perform the same behaviors as above.
- Execute any inline edit command (Edit Code, Document Code, or Generate Unit Test)
- While an inline edit command is in progress, there should be a code lens indicating that the command is in progress and an option to Cancel.
- Hitting Cancel aborts the command
- Once a command has been executed, there should be a code lens with options to Accept, Undo, Edit & Retry, or Show Diff and their associated keyboard shortcuts.
- Clicking or using the shortcut to Accept applies the inline edit and removes the code lens
- Clicking or using the shortcut to Undo removes the inline edit as well as the code lens
- Clicking or using the shortcut to Edit & Retry opens the Edit Code dialog, undoes the initial edit, and applies new edits according to your new instructions.
- Clicking or using the shortcut to Show Diff opens a new tab with a diff view of the edits.
- Execute any inline edit command.
- Observe where the first "Cody is working" code lens group is positioned.
- if there is a nonblank line below the lens group, then the first widget (the Cody logo, a spinner, etc.) should be indented to the same indentation level as the first non-blank line in the code beneath the lens group.
- if there is no next non-blank line, the lens group should indent 20 pixels
- It is not a bug is the first widget is positioned only "close" to the first character of the next line, within a character's width on either side of the leftmost widget. But if it is indented much more or less, it is a bug.
- Wait until the Accept (or Error) lens group appears.
- Follow the steps above to verify that the first widget is indented the same way.
- Initiate an inline edit and wait for the Accept lens group to appear.
- Switch IDE themes while the lenses are visible.
- Verify that the lenses switch to match the new theme.
- Note that the "buttons" remain dark on light themes.
- Verify that the lenses switch to match the new theme.
- Keeping the code lenses visible, test it with different font sizes.
- In Settings/Preferences, change the Editor font size to 6
- Scroll until the code lenses are visible again, if necessary.
- Verify that they are drawing correctly for the new size.
- The widgets should not be taller than the inlay, padding should look right, etc.
- Try it all over again at font size 26 or higher. Everything in the lenses should still look good.
- In Settings/Preferences, change the Editor font size to 6
- While you have it set to a large font size, test the Working lens group.
- Undo the current inline edit
- Initiate a new inline edit, ideally one that will take a while
- For instance, you could make a large selection of 50+ lines and ask the LLM to add thorough inline comments.
- While Cody is "thinking", you should see the Working lens group.
- Check that the spinner is spinning, and is sized and positioned correctly when the font is large.
- Check that no other widgets are drawing out of bounds or oddly in some other way.
- Ensure that the Cody Logo, present in all lens groups, is scaling with the font size.
It is critical to test sequential commands and insure that each command continues to behave as expected:
- Run multiple Edit commands and try each of the code lenses
- Run multiple Document commands and try each of the code lenses
- Run multiple Test commands and try each of the code lenses
- Run various combinations of commands (e.g. Run a Document command, then a Test command, and then an Edit)
- Fill the
Chat
with messages until the scrollbar appears. - Scroll all the way down.
- Add new message.
- Scrollbar is automatically scrolled to the bottom. New message tokens are visible.
- Fill the
Chat
with messages until the scrollbar appears. - Scroll up. Latest message should be not visible or partially visible.
- Add new message.
- Scrollbar is not moving automatically while new message tokens are generated. You can easily read older messages without interruptions and scrolling is smooth.
You should be able to organize multiple chats and follow up previous conversations. Cody should "remember" your questions and chat responses, even after closing IDE.
- Start a new chat
- Send message similar to
my favorite color is blue
- Close IDE
- Run IDE and open previous conversation
- Ask
what's my favorite color?
- Response should be similar to
your favorite color is blue
Useful tips:
- Transcript data is located in
PROJECT_DIR/.idea/cody_history.xml
. - You can force-save transcript by using the
Ctrl
+S
.
Test ideas:
- Delete "active" chat. You should be able to delete the currently opened chat. Messages should be removed from Chat tab.
- Restore historical chat, focus on chat input field and use UP/DOWN keys to cycle between previous questions.
- Press "new chat" as fast as you can. Especially during the IDE startup.
- Switch between chats as fast as you can.
- Press "new chat" while being inside
My Account
tab or something other than Chat tab. Tabs should switch automatically. - Use commands/recipes inside empty, new chat. Verify serialization/deserialization.
- Ask about codebase to force response with listed context files and verify if everything is correctly serialized/deserialized. Links to context files should be clickable.
- Remove all chats using history UI. Tree presentation is empty and branches like "Today" are removed from panel. File with transcripts should also disappear.
- Use only the keyboard. For example, navigate transcripts with arrows, delete, enter.
- Start typing while being focused on Chat History to perform search-by-title.
- Open multiple chats and ask few simultaneous questions in several sessions at once.
- Open new chat with Alt + = shortcut (or Option + = on Mac).
- Open existing chat with shortcut Alt + - (or Option + - on Mac) and start typing question. Tab should be switched automatically on Chat.
- Second click Alt + <kbd- should hide tool window if focused (similar behavior as other tool windows).
- Click Esc while being focused inside Cody tool window. You should be automatically focused on code.
Prerequisite: You need two working accounts. Preferably one Free, and one Enterprise.
- Switch to first account.
- Send a message.
- Switch to second account.
- Send a message.
These two chats should be isolated between different accounts. Both accounts should have one conversation each.
You should also be able to switch between accounts while tokens are still being generated.
- Open Cody chat
- Type
@
in the chat input and verify that a list of available local files appears. - Select one of the files from the list for Cody to use as chat context.
- Ask Cody a question about that file and verify that the answer is correct.
Note: It's important to test performance on large repos here.
- Start new chat
- Submit message "Hello". Confirm you get a reply and that the chat input is empty.
- Press
Up
arrow. Confirm that the chat input is populated with the message "Hello". - Empty chat input and type multiline message "A\n\nB"
- Press
Up
arrow. Confirm that the caret is positioned in the empty line between A and B.
When testing Cody Ignore, please reload the editor after each policy change. Outside of the required testing steps, please also make sure general product usability is not affected when Cody Ignore policies are turned on.
Please use the SG02 endpoint to test and change Cody Ignore configuration.
Policy | Workspace Repository | Test Steps |
---|---|---|
"cody.contextFilters": {"exclude": [{"repoNamePattern": "^github\\.com\\/sourcegraph\\/cody"}], "include": [{"repoNamePattern": "^github\\.com\\/sourcegraph\\/.+"}]} |
github.com/sourcegraph/sourcegraph | Chat:
|
"cody.contextFilters": {"exclude": [{"repoNamePattern": "^github\\.com\\/sourcegraph\\/cody"}], "include": [{"repoNamePattern": "^github\\.com\\/sourcegraph\\/.+"}]} |
github.com/sourcegraph/cody | Chat:
|
"cody.contextFilters": {"exclude": [{"repoNamePattern": "^github\\.com\\/sourcegraph\\/sourcegraph"}]} |
github.com/sourcegraph/sourcegraph | Chat:
|
"cody.contextFilters": {"exclude": [{"repoNamePattern": "^github\\.com\\/sourcegraph\\/sourcegraph"}]} |
github.com/sourcegraph/cody | Chat:
|
"cody.contextFilters": {"include": [{"repoNamePattern": "^github\\.com\\/sourcegraph\\/sourcegraph"}]} |
github.com/sourcegraph/sourcegraph | Chat:
|
"cody.contextFilters": {"include": [{"repoNamePattern": "^github\\.com\\/sourcegraph\\/sourcegraph"}]} |
github.com/sourcegraph/cody | Chat:
|
"cody.contextFilters" field not set |
any | All functionality should be working as normal |
No matter what combination of include/exclude policies you use, all of the following should be true for each test:
- Whenever the current repo/file is ignored, inline edits and commands should stop working.
- Chat should still work, but files from the ignored repositories should not be used as context.
- When the current file's policy changes back to non-ignored, inline edits, commands, and context fetching should start working normally again.
Cody should work correctly on Microsoft Windows setups that are configured with Windows Subsystem for Linux ("WSL").
The main thing to check is that a project or repo cloned onto a WSL volume should work. WSL volumes/drives have
paths that begin with either \\wsl.localhost\
or \\wsl$\
for short. Both are correct.
For these tests, make sure you have a WSL-enabled Windows setup, and clone a repo onto the WSL drive.
As an example, I cloned github.com/redisson/redisson
(a medium-sized Java project) into my WSL home
directory: \\wsl.localhost\Ubuntu\home\stevey\redisson
- Open the WSL project in IDEA.
- The project should open correctly.
- You should be able to browse and navigate to source files.
- Check that Cody started up and has no errors.
- Verify that Cody can explain some code from the project.
- Verify that autocompletions work in the source code.
- Verify that Inline Edits work in the source code. (Just checking one edit should be enough.)
- Verify that Cody can explain open files inside jar files:
- From the
Navigate
IDEA menu,Symbol...
and verify that the Navigation dialog opens (with tabs for All, Class, Files, Symbols, ...) - Choose "Projects and Libraries" from the menu in the upper-right corner
- Choose the Symbols tab
- Type
Project
and from the dropdown, chooseProject of com.intellij.openapi.Project
- Verify that this opens the Project interface class in an editor tab
- Locate the method in the interface,
getBaseDir()
:
- From the
@Deprecated
VirtualFile getBaseDir();
- Select the whole second line (
VirtualFile getBaseDir()
) - Ask Cody to explain it. Cody should give a sensible explanation involving virtual files.
- Open
sourcegraph/cody
project with non-enterprise account. - Open new chat and ask question about current repo (e.g. some class) - assistant should know the answer.
- Open new chat and ask question about squirrel - assistant should describe you an animal.
- Open new chat and disable local context. Ask about current repo (e.g. some class) - assistant should not have a context.
- Close the IDE. Reopen the IDE.
- Go to Chat History tab and open previous chats one by one. Both history and context settings are properly preserved.
- Open new chat and check if it properly inherits all setting from previously opened historical chat
- Open
sourcegraph/cody
project with enterprise account. - Re-do all check from
Testing free/pro accounts
section but now with enterprise account. - Click [✏️] button in the context panel and type sourcegraph repo url (
github.com/sourcegraph/sourcegraph
)- Validator should block accepting incomplete or invalid URL.
- Validator should highlight any repos added past a list of 10.
- Add the
sourcegraph/sourcegraph
repo by hitting [CMD + Enter] (mac) [CTRL + ENTER] (windows) .
- Open new chat and ask question about squirrel - assistant should describe you an HTTP server, NOT animal.
- Open new chat and disable
sourcegraph/sourcegraph
remote repo context. - Ask question about squirrel. It should again describe you an animal or have no context.
- Close the IDE. Reopen the IDE.
- Go to Chat History tab and open previous chats one by one. Check if both history and context settings are properly preserved.
- Open new chat and check if it properly inherits all setting from previously opened historical chat
- If
sourcegraph/sourcegraph
repo was previously added please remove it clicking the [✏️] (pencil) icon and removing the 'sourcegraph/sourcegraph' line - Ask question about squirrel. It should again describe you an animal or have no context.
All Code Search
actions are available under the same Sourcegraph
right-click context menu, so for simplicity, we
describe only the Expected behaviours.
To open the context menu:
- Open a file in the repository that is indexed by Sourcegraph.
- Select the fragment of code you want to search for (for example:
System.out.println
orprintln
may be the simplest candidate). - Right-click on selected fragment, navigate to the
Sourcegraph
sub-menu and choose one of the actions.
// todo, it's not working for me
- The browser is launched.
- The result is a list of fragments that are found in all indexed repositories.
- The browser is launched.
- The result is a list of fragments that are found within the same repository from which the searched fragment originates.
- The browser is launched.
- The result is a single indexed file from which the searched fragment originates.
- The line with fragment is visible and there is no need to manually scroll to it.
- A link is copied to the clipboard.
- Notification pops up with successful message.
- After pasting the link into the browser, the Code Search page opens with the file and the exact line from which the searched fragment originates.
- Log in to Sourcegraph.com with a Free account and
cody-pro-jetbrains
feature flag enabled. - Go to
Cody
tool window and openMy Account
tab. - Verify:
- The current tier should be
Cody Free
. - The
Upgrade
button is visible and it points tohttps://sourcegraph.com/cody/subscription
. - The
Check Usage
button is visible and it points tohttps://sourcegraph.com/cody/manage
.
- The current tier should be
- Go to accounts settings and switch to Pro account.
- Go to
My Account
tab. - Verify:
- The current tier should be
Cody Pro
. - The
Upgrade
is not visible.
- The current tier should be
- Go to account settings and switch to an Enterprise account (AKA non-dotcom).
- Verify:
My Account
tab is not visible inCody
tool window. - Go to accounts settings and switch back to the Free account.
- Verify:
My Account
tab is visible.
- Log in to a Sourcegraph.com with a Free account with rate limits exceeded.
- Go to the
Chat
and type a message. - Verify: A notification about the exceeded rate limit is shown. It should suggest upgrading to Cody Pro.
- Trigger autocomplete in the editor.
- Verify: A similar notification is shown to the user.
- Open the sourcegraph/sourcegraph repo locally in the IDE to be tested
- Go to the
Chat
- Verify: Local context is enabled:
-
Type: "what is squirrel?"
-
Verify: You get an answer similar to:
"Squirrel is a code intelligence service developed by Sourcegraph that uses tree-sitter for syntactic analysis of code. Some key things about Squirrel"
-
Disable Local context
-
Create (or refresh) a new Chat thread
-
Type: "what is squirrel?"
-
Verify: You get an answer similar to:
Squirrels are small, bushy-tailed rodents that are found all over the world. Here are some key facts about squirrels...
- Login to Cody Pro account
- Create new chat
- Default model for new Pro users is Claude 3 Sonnet
- Default model for existing Pro users is their previously selected model
- User is able to change default LLM
- Change model to ChatGPT 4
- Send message
What model are you?
- User should get the response that model is ChatGPT
- Change account to different one and then back to your pro account
- Open
What model are you?
chat from the history - Send again message
What model are you?
- User should again get the response that model is ChatGPT
- Login to Cody Pro account
- Go to commands panel
- Trigger command
- Command should be executed with default model
- Login to Cody Free account
- Create new chat
- User sees model dropdown, but non-default LLM is disabled
- Default model is Claude 3 Sonnet
- Login to Cody Pro account that has trial expired
- Create new chat
- User doesn't see model dropdown
- Login to Cody Enterprise account
- Create new chat
- User should see the default model in the dropdown but is unable to change it
- Login to Cody Enterprise account
- Go to commands panel
- Trigger command
- Command should be executed with default model
- Open project with enabled Git VCS. This repository must be publicly available on GitHub.
- Open to
Cody
tool window. - Click on repository button to open
Context Selection
dialog. Button is placed insideCody
tool window on left, bottom corner.
- Repository
Git URL
has been successfully inferred from VCS history. Value is similar togithub.com/sourcegraph/jetbrains
.
- Open project with enabled Git VCS. This repository must be publicly available on GitHub.
- Open to
Cody
tool window. - Click on repository button to open
Context Selection
dialog. - Change
Git URL
to a different, valid Git URL repository. - Click
OK
button and restart IDE. - Navigate again to
Context Selection
.
- Repository
Git URL
is same as before restart.
- Ask Cody Chat question to which it will reply with various layout elements (list, code snippets, etc)
- Change theme in settings or using Themes action.
- Verify that chat text is readable, as well as that there is clear colour distinction between user and assistant sections. Both sections colors should also correspond to the chosen theme.
Repeat the above starting from different themes.
Changing theme should lead to full repaint of the colours according to the current theme.
In chat ask Cody a question to generate over 10 lines of text, for instance: Please implement DFS in at least 10 lines of Haskell
When hovering over a code snippet printed by Cody, a set of buttons will appear. The disabled one on the right-hand side is expected to say Guardrails Check Passed. The tooltip for the button should say Snippet not found on Sourcegraph.com.
The button is expected for a short time period (less than 10s) to indicate search is running rather than a positive check result. The button label at that point will just be Attribution search.
Select some code and right-click on it. Got to Cody > Edit Code
.
Write a prompt and click "OK".
The "Show Diff" feature should present two sides:
- Right-Hand Side: This should display the current state of the editor, including all changes made by Cody and any user edits.
- Left-Hand Side: This should display the state of the editor including all user changes made at various stages:
- Before triggering Cody's inline edit.
- After triggering Cody's inline edit but before Cody started writing.
- While Cody is writing (before Cody finished).
- After Cody has finished writing.
In other words, the left-hand side should show the right hand side WITHOUT Cody Inline Edit changes.
Steps:
- Above the area that you want to apply the inline edit, add or remove one or more lines.
- Trigger the
Cody Inline Edit
. - Trigger the
Show Diff
.
Scenario 2: User Adds/Removes a Line Above the Selected Area After Triggering the Inline Edit But Before Cody Starts Writing
Steps:
- Trigger the
Cody Inline Edit
. - Before Cody starts writing, add or remove lines above the selected area.
- Allow Cody to complete its edits.
- Activate the
Show Diff
.
Scenario 3: User Adds/Removes a Line Above the Selected Area After Cody Starts Writing But Before It Finishes
Steps:
- Trigger the
Cody Inline Edit
. - While Cody is writing, add or remove lines above the targeted edit area.
- Allow Cody to complete its edits.
- Trigger the
Show Diff
.
Steps:
- Trigger the
Cody Inline Edit
. - After Cody's edits are done, add or remove lines above the edited area.
- Trigger the
Show Diff
.
Scenario 5: Scenarios 1, 2, 3, 4 But With Lines Addition/Removal Between the Inline Edit Changed lines
Inline Edit
can modify some particular line in the selected "target" area but leave the other lines unchanged (in that
area).
The changes to the lines unmodified by Cody should not be reflected in the Show Diff
.
Scenario 6: Scenarios 1, 2, 3, 4 But With Lines Addition/Removal After the Inline Edit Changed lines
Similarly, the changes after the selected "target" area should not be reflected in the Show Diff
.