bug icon indicating copy to clipboard operation
bug copied to clipboard

REPL should show code actions

Open som-snytt opened this issue 2 years ago • 0 comments

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")

som-snytt avatar Aug 14 '23 01:08 som-snytt