Skip to content

REPL should show code actions #12844

Open
@som-snytt

Description

@som-snytt

Reproduction steps

Scala version: 2.13.12 with debug to show code actions

scala> val x = 's
               ^
       warning: symbol literal is deprecated; use Symbol("s") instead [CodeAction(replace symbol literal,Some(symbol literal is deprecated; use Symbol("s") instead),List(TextEdit(RangePosition(<console>, 8, 8, 10),Symbol("s"))))]
val x: Symbol = Symbol(s)

Problem

it would be nice to see something like

scala> val x = 's
               ^
       warning: symbol literal is deprecated; use Symbol("s") instead

scala> val x = Symbol("s")
val x: Symbol = Symbol(s)

or some other prompt in five letters

fixed> val x = Symbol("s")
retry> val x = Symbol("s")
hint!> val x = Symbol("s")

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions