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

Track the signaturehelp session kind in signature help #10970

Merged
merged 1 commit into from
Jan 29, 2021

Conversation

cartermp
Copy link
Contributor

@cartermp cartermp commented Jan 29, 2021

This one was a little bit of a doozy.

Addresses the first issue mentioned in #10957

What this does is it tracks:

  • If we're already in a signature help session
  • Which kind it is - F# function application or a method call

It then adjusts the state of the session based on what we're trying to do.

I'm not 100% confident in this PR yet. Will need to test it out some more. But it seems to do what I wanted to do, which is it keeps the tooltip up in both kinds of signature help sessions.

sig-help-both

@cartermp
Copy link
Contributor Author

One approach I tried before this was splitting each into a separate signature help provider. However, neither would get triggered by Roslyn when I did that. There may be a better solution to this with some changes added to Roslyn bindings. But that solution would also not be portable to an LSP implementation, forcing tools like FSAC/Ionide to effectively implement what I have done here. Might as well just do it the same way everywhere so that at least the different editors share their approach to this kind of stuff.

@cartermp
Copy link
Contributor Author

I think I feel pretty comfortable taking this in giving it another look. Will of course improve upon anything suboptimal.

@cartermp cartermp merged commit 9092765 into dotnet:main Jan 29, 2021
@cartermp cartermp deleted the sighelp-update5 branch January 29, 2021 05:03
cartermp added a commit to cartermp/fsharp that referenced this pull request Jan 29, 2021
KevinRansom added a commit that referenced this pull request Feb 1, 2021
Cherry Pick into 16.9 - Track the signaturehelp session kind in signature help (#10970)
nosami pushed a commit to xamarin/visualfsharp that referenced this pull request Feb 23, 2021
nosami pushed a commit to xamarin/visualfsharp that referenced this pull request Jan 26, 2022
nosami pushed a commit to xamarin/visualfsharp that referenced this pull request Jan 26, 2022
nosami pushed a commit to xamarin/visualfsharp that referenced this pull request Jan 26, 2022
Cherry Pick into 16.9 - Track the signaturehelp session kind in signature help (dotnet#10970)
nosami pushed a commit to xamarin/visualfsharp that referenced this pull request Jan 26, 2022
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