sid-srini commented on PR #7747:
URL: https://github.com/apache/netbeans/pull/7747#issuecomment-2346657085
> Is there an IDE options UI for this?!
>
Thanks. I will try to add this.
- Currently, this is implemented only for Java.
- So, shall I add this only in the specific UI for _Java_ within the
_Editor_ > _Code Completions_ preferences?
- Perhaps later when someone else needs this implemented for other
languages, it could be exposed there.
> I'm curious at the reasoning for adding this where it is? It seems similar
to the guess filled method arguments option? Between them they feel like they
cover 3 states? (no fill, parameter names, guess values)
>
Yes, that progression in the complexity for insertions makes sense to me.
1. boolean "completion-insert-text-parameters":
- on/off inserting parameter values
- inserted values maybe parameter names or guessed local variables or
something else.
- possibly more widely available in different completion contexts
2. boolean "guessMethodArguments":
- on/off guessing a value from locally available variables
- inserted value takes effect only when the flag above is on.
- possibly unavailable in different completion contexts
Given that the latter is already a defined preference key, it seems easier
to maintain backward compatibility and a minimal state increase with the added
boolean flag.
When implementing the UI above, I could try to introduce joint states for
these 2. However, it may become difficult to move the first setting to other
languages.
Let me know if this analysis makes sense.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists