Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added autocomplete for constructors.
This was done by adding an additional case to the completion logic in ScalaCompletions. To avoid problems with completion overwrites, similar to Eclipse Java only tooltips are shown for constructor completion. A known defect is the ability to complete constructors of classes with mixins on the same line. See #1001950 Fix #1001272
- Loading branch information
Daniel Chia
committed
Nov 5, 2013
1 parent
8ed264f
commit 5159853
Showing
6 changed files
with
55 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
org.scala-ide.sdt.core.tests/test-workspace/completion/src/t1001272/A.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package t1001272 | ||
|
||
class A(a: Int) { | ||
def this() = this(123) | ||
|
||
class InnerA(i: Int) | ||
} | ||
|
||
class B extends A(1) | ||
|
||
object D { | ||
class E(i: Int) | ||
} | ||
|
||
object Test { | ||
val a = new A( /*!*/ ) | ||
val b = new B( /*!*/ ) | ||
val e = new D.E( /*!*/ ) | ||
val ia = new a.InnerA( /*!*/ ) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters