-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP - set hint message in relatedInformation parameter in diagnostic
- Loading branch information
Showing
8 changed files
with
99 additions
and
54 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
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
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
17 changes: 14 additions & 3 deletions
17
modules/core/src/main/scala/scala/build/errors/Severity.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 |
---|---|---|
@@ -1,8 +1,19 @@ | ||
package scala.build.errors | ||
|
||
sealed abstract class Severity extends Product with Serializable | ||
import ch.epfl.scala.bsp4j as b | ||
import ch.epfl.scala.bsp4j.DiagnosticSeverity | ||
sealed abstract class Severity extends Product with Serializable { | ||
def toBsp4j: b.DiagnosticSeverity | ||
} | ||
|
||
object Severity { | ||
case object Error extends Severity | ||
case object Warning extends Severity | ||
case object Error extends Severity { | ||
override def toBsp4j: DiagnosticSeverity = b.DiagnosticSeverity.ERROR | ||
} | ||
case object Warning extends Severity { | ||
override def toBsp4j: DiagnosticSeverity = b.DiagnosticSeverity.WARNING | ||
} | ||
case object Hint extends Severity { | ||
override def toBsp4j: DiagnosticSeverity = b.DiagnosticSeverity.HINT | ||
} | ||
} |
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