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

Show signature help according to the last selected completion item #2686

Merged
merged 1 commit into from
Jun 6, 2023

Conversation

jdneo
Copy link
Contributor

@jdneo jdneo commented Jun 6, 2023

Signed-off-by: Sheng Chen <sheche@microsoft.com>
@rgrunber
Copy link
Contributor

rgrunber commented Jun 6, 2023

Works for me. I've noticed we have a lot of for loops that iterate over the known signature information (See SignatureHelpHandler.signatureHelp(..)) so I wanted to make sure there wasn't a way to combine this proposed check into the one below, but it needs to verify every given entry before proceeding to the other strategy.

Maybe in the future we can look at a nicer way to perform these checks.

@rgrunber rgrunber merged commit 671b08b into eclipse-jdtls:master Jun 6, 2023
@rgrunber rgrunber added this to the End June 2023 milestone Jun 6, 2023
@jdneo jdneo deleted the cs/fix-signature-help branch June 7, 2023 00:14
@jdneo
Copy link
Contributor Author

jdneo commented Jun 7, 2023

@rgrunber
Copy link
Contributor

rgrunber commented Jun 7, 2023

Yes, but also the code immediately above the block you added in SignatureHelpUtils here. It's very low priority since I don't think there's a faster way, it's just an issue of whether it would be nicer to write those as some kind of stream() logic. Not worth it if they become more confusing though.

@jdneo
Copy link
Contributor Author

jdneo commented Jun 9, 2023

Yes, but also the code immediately above the block you added in SignatureHelpUtils here.

I see. I can think if we can combine the two for-loops into one as well as keep the readiness.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Completion for 'new String' is wrong
3 participants