This is related to #1001125.
When importing an overloaded module's method, we should not display the completion proposal dialog. The method name should be simply injected without requiring user's interaction.
Here is an simple test case to reproduce the issue
I'm filing a ticket for this, instead of fixing it together with #1001125, because the current state of the code completion is such that implementing this correctly would make the code a bit more messy than it already is. I think we need to clean-up first (#1001912).
When importing an overloaded module's method, we should not display the completion proposal dialog. The method name should be simply injected without requiring user's interaction.
Here is an simple test case to reproduce the issue
object Foo {
def doNothingWith(that: Any): Unit = {}
def doNothingWith(that: String): Unit = {}
}
class Foo {
import Foo.doNo // <-- ask completion here
}
I'm filing a ticket for this, instead of fixing it together with #1001125, because the current state of the code completion is such that implementing this correctly would make the code a bit more messy than it already is. I think we need to clean-up first (#1001912).
Leave a comment
on 2013-10-15 05:56 *
By Mirco Dotta
Operative system set to Mac OSX
Version changed from 3.0.1-210 to 4.0.0-210
Summary changed from No completion proposal dialog should be displayed when importing overloaded module to No completion proposal dialog should be displayed when importing overloaded module's method
Description changed from
object Foo {
... to This is related to #1001125...
Milestone set to Lithium
on 2013-10-15 05:58 *
By Mirco Dotta
Description changed from This is related to #1001125... to This is related to #1001125...
In scala-ide:296e54ca7d5e1a6e1a79e907b80c0453a6b2afa0 Don't add parameter list on import completion for module's methods
Ticket assignment reverted due to inactivity.
No file chosen
You have an empty file field. Please select or remove it.
Name | Size |
---|