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

suggestion mode UI #6523

Merged
merged 4 commits into from
Jan 7, 2025
Merged

suggestion mode UI #6523

merged 4 commits into from
Jan 7, 2025

Conversation

hitesh-1997
Copy link
Contributor

@hitesh-1997 hitesh-1997 commented Jan 4, 2025

With auto-edits being a replacement of autocomplete. Based on the suggestion The, PR adds a drop-down for the users to choose between the "autocomplete", "auto-edits" and "Off".

The PR deprecates the 2 earlier configurations:

  1. cody.autocomplete.enabled
  2. cody.experimental.autoedits.enabled

And introduces the cody.suggestions.mode: 'autocomplete' | 'auto-edits' | 'off' for the users to choose from.

image

Test plan

Green CI
Also tested the agent test cases with the new config. Agent takes the default values from vscode/package.json which uses autocomplete as default for suggestion mode and it works.

"default": true
"cody.suggestions.mode": {
"type": "string",
"enum": ["autocomplete", "auto-edits (Experimental)", "off"],
Copy link
Member

Choose a reason for hiding this comment

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

Based on the recent thread where we decided to hide this from users who do not have access to the feature, do you think we should change this PR to use a quick pick menu or something else that can be dynamically updated based on feature flag values?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Following up on slack here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hey @valerybugakov
I will add a pop-up to communicate to the user why they are not eligible as per slack discussion.

It would be much easier for me to do this in #6463 this PR instead of current one, because it would create conflict between the PRs when I rebase. Would that be okay ?

Copy link
Member

Choose a reason for hiding this comment

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

Yep, let's do that!

@hitesh-1997 hitesh-1997 merged commit 4d04c9a into main Jan 7, 2025
23 checks passed
@hitesh-1997 hitesh-1997 deleted the hitesh/suggetion-mode-option branch January 7, 2025 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants