microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.48k stars 28.97k forks source link

Add support to show the extension name from which inline suggestion is displayed in hover UI #205555

Open ganeshrn opened 8 months ago

ganeshrn commented 8 months ago

Creating issue based on discussion here https://github.com/microsoft/vscode-discussions/discussions/1056

Currently there is no clean way to show the users from which extension the inline suggestion comes from when users scroll through the list of inline suggestions from hover UI using next/previous buttons.

https://github.com/microsoft/vscode-discussions/assets/5292461/9e418053-0b95-4dc3-849f-be9d2be86697

In the above screen recording the first suggestion comes from copilot and the second suggestion is coming from Ansible Lightspeed extension.

For the inline suggestion displayed in editor it will good to display the name of the extension in the hover UI.

The issue here https://github.com/microsoft/vscode/issues/169336#issue-1499224373 describes removing Open GitHub Copilot from hover UI however this can be replaced with the name of the extension from which the inline suggestion is came from.

hediet commented 7 months ago

Extensions can return commands (e.g. "Open Copilot Settings"), such commands are only shown for an inline completion that has them. This could be used to indicate where an inline completion came from.

vscodenpa commented 7 months ago

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

ganeshrn commented 7 months ago

Extensions can return commands (e.g. "Open Copilot Settings"), such commands are only shown for an inline completion that has them. This could be used to indicate where an inline completion came from.

Can you please point to an example for this?

vscodenpa commented 7 months ago

:slightly_smiling_face: This feature request received a sufficient number of community upvotes and we moved it to our backlog. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!