Extract
code action should support fewer baces syntax
#7138
Labels
bug
Something that is making a piece of functionality unusable
code action
Related to LSP code actions
Scala 3
Generic ticket relating to Scala 3
spree
When using the
Extract
code action on the following code that uses fewer braces syntax:the result is the following (obviously incorrect and non-compiling) code:
This seems to suggest that
Extract
code action doesn't support the fewer braces syntax and just inlines the entire raw content of theApply
.Expected behaviour:
I would expect for the result of the code action to correctly recognize that the fewer braces syntax was used and produce correct code (without the dangling
:
) i.e.Operating system:
Linux
Java version:
17.0.13
Editor/extension:
Visual Studio Code v1.96.2
Metals version:
1.4.2
Extra context or search terms:
scala3
extract code action
fewer braces
Workspace information:
0. scala-cli v1.5.4
The text was updated successfully, but these errors were encountered: