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

Allow completion details to be selected #55853

Closed
octref opened this issue Aug 6, 2018 · 10 comments · Fixed by #81198
Closed

Allow completion details to be selected #55853

octref opened this issue Aug 6, 2018 · 10 comments · Fixed by #81198
Assignees
Labels
feature-request Request for new features or functionality help wanted Issues identified as good community contribution opportunities suggest IntelliSense, Auto Complete ux User experience issues
Milestone

Comments

@octref
Copy link
Contributor

octref commented Aug 6, 2018

Issue Type: Feature Request

Currently when clicking or dragging on the completion details, it'll go away, making it impossible to select text inside it.

VS Code version: Code - Insiders 1.26.0-insider (4fa62b2, 2018-08-03T12:25:19.888Z)
OS version: Darwin x64 17.7.0

un

@octref octref added the suggest IntelliSense, Auto Complete label Aug 6, 2018
@vscodebot vscodebot bot added the insiders label Aug 6, 2018
@jrieken jrieken assigned ramya-rao-a and unassigned jrieken Aug 6, 2018
@ramya-rao-a ramya-rao-a added feature-request Request for new features or functionality help wanted Issues identified as good community contribution opportunities and removed insiders labels Aug 6, 2018
@ramya-rao-a ramya-rao-a added this to the Backlog milestone Aug 6, 2018
@ramya-rao-a
Copy link
Contributor

ramya-rao-a commented Aug 6, 2018

The parameter hint widget allows for text to be selected, we should be able to do the same with the details part of the suggest widget.
PRs are welcome.

Edit Its the hover widget that allows for text to be selected, not parameter hint

@ozyx
Copy link
Contributor

ozyx commented Aug 7, 2018

I'll give this one a go.

@luiszun
Copy link
Contributor

luiszun commented Aug 8, 2018

I cannot select the contents of the parameter hint widget either, although it does not disappear on click like the details of the suggest widget.
I double checked I'm looking at the right widget by breaking on show()
in \src\vs\editor\contrib\parameterHints\parameterHintsWidget.ts

@ozyx
Copy link
Contributor

ozyx commented Aug 8, 2018

I also noticed this while investigating. Can confirm that the parameter hint widget text is not selectable. Right now I have a commit which is making the suggest completion details selectable. Just working on tidying it up as currently selecting the text causes keyboard shortcuts to no longer function (arrow keys for selecting a suggestion, esc key for exiting the popup). I'm probably just missing something somewhere.

@ramya-rao-a
Copy link
Contributor

@luiszun @ozyx Below shows selection and copy possible in the parameter hint widget

hover-select

@luiszun
Copy link
Contributor

luiszun commented Aug 9, 2018

@ramya-rao-a It seems like that the widget you're showing there is the hover widget.
That one shows on src\vs\editor\contrib\hover\hoverWidgets.ts at showAt()

The one referred in the issue happens on suggestWidgets.ts, and the parameter hint on parameterHintsWidget.ts
Am I terribly lost?

I apologize for the text-only description, I need to find how to make those nifty gifs :)

edit: Added the nifty gif :)

vscodewidget

@ramya-rao-a
Copy link
Contributor

@luiszun You are right. My mistake. Yes, I was referring to the hover widget. I have updated my comment above.

@luiszun
Copy link
Contributor

luiszun commented Aug 9, 2018

Good to know! I was worried that I was just adding confusion to this issue :)

@wistcc
Copy link
Contributor

wistcc commented Aug 9, 2018

Actually, I wasn't able to mimic the hover widget behavior but here is another way to fix it.

@fbaligand

This comment has been minimized.

octref added a commit that referenced this issue Sep 24, 2019
Allow selection on completion detail. Fix #55853
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality help wanted Issues identified as good community contribution opportunities suggest IntelliSense, Auto Complete ux User experience issues
Projects
None yet
8 participants
@jrieken @fbaligand @octref @wistcc @ozyx @luiszun @ramya-rao-a and others