Automatic import deletes comments between import statements
In the following example the comment is deleted if one imports
Result:
ListBuffer
:import scala.collection.mutable.Buffer
// comment
import scala.collection.mutable.Stack
object Test extends App {
val a = Buffer
val b = ListBuffer^
val c = Stack
}
Result:
import scala.collection.mutable.Buffer
import scala.collection.mutable.Stack
import scala.collection.mutable.ListBuffer
object Test extends App {
val a = Buffer
val b = ListBuffer^
val c = Stack
}
Leave a comment
on 2013-08-24 10:36 *
By Simon Schäfer
If one tries to work on that, #1001835 should be considered too.
on 2016-02-23 15:34 *
By Simon Schäfer
Version changed from 4.0.0-210 to 4.3.0
Assigned to set to Simon Schäfer
Do not alter comments during add import refactoring
With the last changes to the add import refactoring, this bug fix is
trivial. We simply have to ensure that we add the import at the correct
location.
Fix #1001848
Branch: master
Commit: scala-ide:c3c68eef8e
With the last changes to the add import refactoring, this bug fix is
trivial. We simply have to ensure that we add the import at the correct
location.
Fix #1001848
Branch: master
Commit: scala-ide:c3c68eef8e