Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Conversation

@philipp-spiess
Copy link
Contributor

Existing names are a bit confusing with the addition of inline multi-line completions, so I suggest that we:

  • Change the name we refer to for this feature to Cody completions as we discussed in Slack (I can look up the thread if you want)
  • Refer to the internal providers as inline or manual.
  • Inline provider has support for multi-line completions
  • The action to trigger completions in the side bar is now called "Cody: Generate completions"

Test plan

Screenshot 2023-05-23 at 14 42 01

Screenshot 2023-05-23 at 14 45 35

@philipp-spiess philipp-spiess requested review from a team, beyang and valerybugakov May 23, 2023 12:45
@cla-bot cla-bot bot added the cla-signed label May 23, 2023
@github-actions github-actions bot added the team/code-exploration Issues owned by the Code Exploration team label May 23, 2023
@sourcegraph-bot
Copy link
Contributor

sourcegraph-bot commented May 23, 2023

📖 Storybook live preview

Copy link
Contributor

@abeatrix abeatrix left a comment

Choose a reason for hiding this comment

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

Clean! I should do the same for inline assist too 😓

@philipp-spiess philipp-spiess force-pushed the ps/cody-completions-naming branch from 4b56496 to 200559c Compare May 23, 2023 13:34
Copy link
Member

@valerybugakov valerybugakov left a comment

Choose a reason for hiding this comment

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

This change makes things much easier to understand for a newcomer. Thanks, @philipp-spiess!

Comment on lines 142 to 143
"command": "cody.manual-completions",
"title": "Cody: Generate completions"
Copy link
Member

Choose a reason for hiding this comment

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

The new title is better than the previous version but still a bit unclear, as it doesn't differentiate from inline completions. I'll need to execute this command to understand its functionality.

Copy link
Contributor

Choose a reason for hiding this comment

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

Small nit, VS Code (and our ext) uses title case (https://title.sh) vs the usual Sourcegraph app style.

Copy link
Contributor

Choose a reason for hiding this comment

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

I was expecting it to generate/show some completions in the editor file (like what I'm familiar with), and was surprised it opened in a new window. But I'd love to know more about this feature so I can help with naming… because even playing with it, I must admit I don't quite understand (someone plz save me!)

Comment on lines 142 to 143
"command": "cody.manual-completions",
"title": "Cody: Generate completions"
Copy link
Contributor

Choose a reason for hiding this comment

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

Small nit, VS Code (and our ext) uses title case (https://title.sh) vs the usual Sourcegraph app style.

"title": "Cody: View Suggestions"
"command": "cody.manual-completions",
"title": "Cody: Generate completions"
},
Copy link
Contributor

Choose a reason for hiding this comment

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

Not caused by this PR, but I discovered it when I was trying to test it locally.

I think we're missing a when clause here, because the command is always visible in the quickpick menu but only gets registered if the cody.experimental.suggestions setting is true. And you get an error if you try to use it from the quickpick.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@toolmantim Fixed!

Comment on lines 142 to 143
"command": "cody.manual-completions",
"title": "Cody: Generate completions"
Copy link
Contributor

Choose a reason for hiding this comment

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

I was expecting it to generate/show some completions in the editor file (like what I'm familiar with), and was surprised it opened in a new window. But I'd love to know more about this feature so I can help with naming… because even playing with it, I must admit I don't quite understand (someone plz save me!)

@philipp-spiess philipp-spiess merged commit c028e30 into main May 25, 2023
@philipp-spiess philipp-spiess deleted the ps/cody-completions-naming branch May 25, 2023 14:34
ErikaRS pushed a commit that referenced this pull request Jun 22, 2023
Existing names are a bit confusing with the addition of inline
multi-line completions, so I suggest that we:

- Change the name we refer to for this feature to **Cody completions**
as we discussed in Slack (I can look up the thread if you want)
- Refer to the internal providers as _inline_ or _manual_. 
- Inline provider has support for multi-line completions
- The action to trigger completions in the side bar is now called "Cody:
Generate completions"

## Test plan

<img width="924" alt="Screenshot 2023-05-23 at 14 42 01"
src="https://github.com/sourcegraph/sourcegraph/assets/458591/8c690a3c-c9c4-4e74-b76b-e25d87051fc7">

<img width="1177" alt="Screenshot 2023-05-23 at 14 45 35"
src="https://github.com/sourcegraph/sourcegraph/assets/458591/c1fc8635-bfb8-4600-81a1-bf9837ae05a6">


<!-- All pull requests REQUIRE a test plan:
https://docs.sourcegraph.com/dev/background-information/testing_principles
-->
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla-signed team/code-exploration Issues owned by the Code Exploration team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants