| Summary: | [content assist] Code assist should be smart enough to remove redundant parenthesis | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Francis Upton IV <francisu> |
| Component: | Text | Assignee: | JDT-Text-Inbox <jdt-text-inbox> |
| Status: | ASSIGNED --- | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P5 | CC: | alexis, daniel_megert, deepakazad, markus.kell.r, remy.suen |
| Version: | 3.6 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Francis Upton IV
This doesn't happen when you have 'Completion overwrites' selected in the preferences (or hold Ctrl while inserting). Unfortunately, the Ctrl-toggling is not available when you have 'Insert single proposals automatically' enabled and Ctrl+Space only finds a single proposal. Nevertheless, I agree this is a real problem. Note that there are also scenarios where you do want the additional arguments list, e.g.:
get|(name)
and you want to change this to:
getRemote(path, credentials).get(name)
=> in this case the () after getRemote are not empty but contain auto-filled arguments.
*** Bug 405275 has been marked as a duplicate of this bug. *** Another related bug (bug 405275) : with either 'Completion inserts' or 'Completion overwrite' options activated, code assist inserts redundant parenthesis when a space separates the cursor and its following parenthesis : get<<CODE ASSIST>> (true); will insert: getSomething ( ) (true); Maybe also related to options of my code formatter, where I'm using settings that put spaces before parenthesis. |