Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-edits docs #899

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from
Draft

Auto-edits docs #899

wants to merge 10 commits into from

Conversation

MaedahBatool
Copy link
Collaborator

Docs for autoedits

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 16, 2025 7:26pm

@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

@hitesh-1997 hitesh-1997 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 )

docs/cody/capabilities/auto-edits.mdx Outdated Show resolved Hide resolved
docs/cody/capabilities/auto-edits.mdx Outdated Show resolved Hide resolved
docs/cody/capabilities/auto-edits.mdx Outdated Show resolved Hide resolved
docs/cody/capabilities/auto-edits.mdx Outdated Show resolved Hide resolved
docs/cody/capabilities/auto-edits.mdx Outdated Show resolved Hide resolved

- Can modify code before and after the cursor position

- 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.

It uses a bunch of other context sources. I think we can highlight that recent edits is important but not the only context source.

Copy link
Member

Choose a reason for hiding this comment

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

It uses a bunch of other context sources.

Tell me :)

docs/cody/capabilities/auto-edits.mdx Outdated Show resolved Hide resolved

- Sometimes doesn't propose all necessary changes

- May require manual deletion in some cases

Choose a reason for hiding this comment

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

not sure if I understand this correctly, is this overlapping with "Sometimes doesn't propose all necessary changes"

Copy link
Member

Choose a reason for hiding this comment

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

see below


- May require manual deletion in some cases

- Certain changes may need to be applied manually

Choose a reason for hiding this comment

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

not sure what this mean, can you please give more details here ?

Copy link
Member

Choose a reason for hiding this comment

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

@hitesh-1997 these where pulled from the Loom video transcript, I will work on rewording them for clarity

docs/cody/capabilities/auto-edits.mdx Outdated Show resolved Hide resolved
- 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.


- Requires at least one character edit in the codebase before suggestions become active
- May not propose all necessary changes in complex refactoring scenarios, requiring some manual edits
- Sometimes requires manual deletion or cleanup of code
Copy link
Member

Choose a reason for hiding this comment

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

I'd say this isn't necessary. It's an inherent property of LLM-generated code these days.

Copy link
Member

Choose a reason for hiding this comment

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

line 75 "- Sometimes requires manual deletion or cleanup of code" or all lines listed?

docs/cody/capabilities/auto-edits.mdx Outdated Show resolved Hide resolved
src/data/navigation.ts Outdated Show resolved Hide resolved
@@ -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
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.

4 participants