-
Notifications
You must be signed in to change notification settings - Fork 337
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improvement: Add fallback for inlay hints
For Scala 3.nightly, it maps old synthetic decorations to inlay hints. Its needed because inlay hints are not available for every Scala version
- Loading branch information
Showing
3 changed files
with
60 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
...shared/src/main/scala/scala/meta/internal/metals/CompilerSyntheticDecorationsParams.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package scala.meta.internal.metals | ||
|
||
import java.net.URI | ||
|
||
import scala.meta.pc.CancelToken | ||
import scala.meta.pc.SyntheticDecorationsParams | ||
import scala.meta.pc.VirtualFileParams | ||
|
||
case class CompilerSyntheticDecorationsParams( | ||
virtualFileParams: VirtualFileParams, | ||
inferredTypes: Boolean, | ||
typeParameters: Boolean, | ||
implicitParameters: Boolean, | ||
implicitConversions: Boolean | ||
) extends SyntheticDecorationsParams { | ||
override def uri(): URI = virtualFileParams.uri | ||
override def text(): String = virtualFileParams.text | ||
override def token(): CancelToken = virtualFileParams.token | ||
} |