Skip to content

Inline should support indentation sensitive blocks #7137

Closed
scala/scala3
#22915
@kasiaMarek

Description

@kasiaMarek

Describe the bug

Inlining newValue in the following code:

def foo =
    val newValue =
      val x = true
      x
    val xx = newValue // inline this value

Results in:

def foo =
  val xx = val x = true
    x

Expected behavior

def foo =
  val xx =
    val x = true
    x

Operating system

macOS

Editor/Extension

VS Code

Version of Metals

v1.4.2

Extra context or search terms

inline value

Metadata

Metadata

Assignees

Labels

Scala 3Generic ticket relating to Scala 3bugSomething that is making a piece of functionality unusablecode actionRelated to LSP code actionspresentation-compilerSomething relating to the presentation compilerspree

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions