scala-ide/scala-refactoring

Extract local from interpolated String

michih57 opened this issue · 1 comments

Extract local from an expression inside an interpolated string currently mangles the source code.

An example:

val i = s"example string ${5+5}"

Extracting the expression 5+5 to the val extracted results in:

val extracted = 5+5
val i = extracted}"