Skip to content

Conversation

@MaedahBatool
Copy link
Contributor

@MaedahBatool MaedahBatool commented Jan 15, 2025

@vercel
Copy link

vercel bot commented Jan 15, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sourcegraph-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 29, 2025 1:16am

@MaedahBatool MaedahBatool self-assigned this Jan 15, 2025
@MaedahBatool MaedahBatool added the documentation Improvements or additions to documentation label Jan 15, 2025
- Add a subtitle and description for the auto-edits feature
- Outline the capabilities of auto-edits
- Provide guidance on enabling auto-edits for Enterprise customers
- Explain how auto-edits work and how they differ from autocomplete
- List common use cases for auto-edits
- Acknowledge known limitations of the feature
@jdorfman
Copy link
Member

@jdorfman jdorfman self-assigned this Jan 15, 2025
Copy link

@sagtanih sagtanih left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found some duplication in the docs and added some additional comments. Some additional points:

  • Should we have some videos on the page to highlight the feature in action
  • we should mention that auto-edits can Conflict in decorations when used with other code suggestions extensions enabled. it is recommended to disable other extensions.
  • We should add a section mentioning how users can disable the feature from vscode settings. (Also why certain users might not be able to use it even though they are able to select auto-edit option in the UI )

- Update the subtitle and description for the auto-edits feature
- Clarify the capabilities of auto-edits
- Provide guidance on enabling auto-edits for Pro and Enterprise customers
- Explain how auto-edits differ from autocomplete
- List common use cases for auto-edits
- Acknowledge known limitations of the feature

- Only proposes content after the cursor position

- Suggests on every character typed
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only proposes content after the cursor position

There's also a limitation from the VS Code API: our autocomplete can only suggest content after the cursor position on the current line. So, if the model proposes an insertion into the middle or end of the following line, we don't have a way to render it. There's no such limitation for auto-edit.

@@ -0,0 +1,89 @@
# Auto-edits
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, Hitesh already caught it 👍

Co-authored-by: Valery Bugakov <[email protected]>
- Update the feature name from "Auto-edits" to "Auto-edit" throughout the documentation
- Adjust the subtitle and description to reflect the singular "Auto-edit" name
- Update the section headings and references to use the singular "Auto-edit" terminology
- Add an auto-edit demo image to the documentation
- Include a note indicating the image needs to be uploaded to GCP
- Provide details on how Enterprise customers can enable the auto-edit feature
- Explain the two-step process required to make auto-edit available to developers
- Clarify that Auto-edit suggestions are limited to a fixed number of lines around the cursor
- Document that Auto-edit may not propose all necessary changes in complex refactoring scenarios
- Explain that manual deletion or cleanup of code may still be required in some cases
- Note that Auto-edit suggestions may not cover all similar instances of code that could be changed
@jdorfman jdorfman marked this pull request as ready for review January 20, 2025 19:11
This change replaces the static image demonstrating the auto-edit feature with an embedded video, providing a more dynamic and engaging visual representation for users.
@MaedahBatool
Copy link
Contributor Author

@jdorfman can you please take care of these changes?

This change adds two additional steps to the instructions for enabling the auto-edit feature for Cody Enterprise customers. Specifically, it requires site administrators to allow the Fireworks provider as an allowed provider, in addition to enabling the feature flag
This change removes the "Scope" row from the comparison table between auto-edit and autocomplete features, as the information was redundant and not providing additional value.
This change expands the description of the auto-edit feature, providing more detailed information about the various repetitive tasks it can assist with, including:
- Function signature refactoring
- Updating function call sites after signature changes
- Repetitive modifications in test files
- Parameter additions and function unpacking
- Type system updates across multiple locations
This change removes the requirement for at least one character edit in the codebase before auto-edit suggestions become active. This simplifies the user experience and allows the feature to provide suggestions immediately upon enabling.
…ind)

This change expands the description of the auto-edit feature, providing more detailed information about the various repetitive tasks it can assist with, including:
- Test file maintenance
- Parameter refactoring
- Type system modifications
…owed LLM provider (via Aravind)

This change adds a new section to the auto-edit feature documentation that provides an example of how to configure Fireworks as an allowed LLM provider in the Sourcegraph Cody Gateway model configuration. This allows users to utilize Fireworks models for the auto-edit feature.
@MaedahBatool
Copy link
Contributor Author

MaedahBatool commented Jan 29, 2025

Thanks everyone for contributing. I am merging this PR to our release branch. Any follow-up changes will be tackled later after the release. Let's go! 🚀

@MaedahBatool MaedahBatool changed the base branch from main to sg-next-jan1-2025 January 29, 2025 06:58
@MaedahBatool MaedahBatool merged commit af559eb into sg-next-jan1-2025 Jan 29, 2025
7 checks passed
@MaedahBatool MaedahBatool deleted the auto-edits-docs branch January 29, 2025 06:59
| ---------------------- | -------------------------------------- | -------------------------------------------------- |
| **Text modification** | Can only insert text, not delete | Can both insert and delete text |
| **Cursor position** | Only proposes content after the cursor | Can modify code before and after the cursor |
| **Suggestion trigger** | Suggests on every character typed | Proposes changes based on context and recent edits |

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the amazing doc @MaedahBatool
I just noticed this section, I think Suggestion trigger for Auto-edit should be every char typed + Cursor movement within the codebase. Since based on context and recent edits are just the context sources which we use in the autocomplete as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants