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

Signature help inappropriately fired in totally unrealistic scenario #58492

Closed
DanielRosenwasser opened this issue Sep 12, 2018 · 2 comments
Closed
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug editor-parameter-hints Function, method and class parameter hint widget verified Verification succeeded
Milestone

Comments

@DanielRosenwasser
Copy link
Member

Great work on signature help characters @mjbvz! The scenario I really cared about seems significantly better.

I did find that holding down the comma character still does trigger signature help though.

holdcommadown

@vscodebot
Copy link

vscodebot bot commented Sep 12, 2018

(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

@vscodebot vscodebot bot added the editor label Sep 12, 2018
@mjbvz mjbvz self-assigned this Sep 12, 2018
@mjbvz
Copy link
Collaborator

mjbvz commented Sep 12, 2018

Interesting case. Here's why this happens:

  • We debounce signature help requests to only fire every 250ms or so.
  • The signature help request is counted as a retriever if either: the sig help is already showing or we have a pending signature help request that has been debounced but not applied yet.
  • In this case, we queue up two or more requests before actually asking TS for sig help. This results in the request we do finally fire being marked as a retrigger
  • I believe marking the request as a retrigger causes ts to return these sig help incorrectly here

Possible fixes

  • Only mark a request as retrigger if the sig help ux was really showing
  • Never make a trigger character a retrigger. Introduce a separate set of retrigger characters. However moving the cursor about would count as a retrigger.

@mjbvz mjbvz added the bug Issue identified by VS Code Team member as probable bug label Sep 18, 2018
@alexdima alexdima added editor-parameter-hints Function, method and class parameter hint widget and removed editor labels Sep 20, 2018
@mjbvz mjbvz added this to the November 2018 milestone Oct 27, 2018
@mjbvz mjbvz closed this as completed in c4a8608 Nov 20, 2018
@roblourens roblourens added the verified Verification succeeded label Dec 6, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Jan 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug editor-parameter-hints Function, method and class parameter hint widget verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

4 participants