File tree 1 file changed +4
-7
lines changed
presentation-compiler/src/main/dotty/tools/pc 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -79,15 +79,14 @@ case class ScalaPresentationCompiler(
79
79
params : OffsetParams ,
80
80
codeActionId : String ,
81
81
codeActionPayload : Optional [T ]
82
- ): CompletableFuture [ju.List [TextEdit ]] = {
83
- (codeActionId, codeActionPayload.asScala) match {
82
+ ): CompletableFuture [ju.List [TextEdit ]] =
83
+ (codeActionId, codeActionPayload.asScala) match
84
84
case (
85
85
CodeActionId .ConvertToNamedArguments ,
86
86
Some (argIndices : ju.List [_])
87
87
) =>
88
- val payload = argIndices.asScala.collect { case i : Integer =>
89
- i.toInt
90
- }.toSet
88
+ val payload =
89
+ argIndices.asScala.collect { case i : Integer => i.toInt }.toSet
91
90
convertToNamedArguments(params, payload)
92
91
case (CodeActionId .ImplementAbstractMembers , _) =>
93
92
implementAbstractMembers(params)
@@ -108,8 +107,6 @@ case class ScalaPresentationCompiler(
108
107
CompletableFuture .failedFuture(
109
108
new IllegalArgumentException (s " Unsupported action id $id" )
110
109
)
111
- }
112
- }
113
110
114
111
override def withCompletionItemPriority (
115
112
priority : CompletionItemPriority
You can’t perform that action at this time.
0 commit comments