Skip to content

Commit

Permalink
SLI-1504 SonarLint issue is not visible on hover action without click…
Browse files Browse the repository at this point in the history
…ing the issue
  • Loading branch information
eray-felek-sonarsource committed Oct 15, 2024
1 parent 965f123 commit 4dbe93e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public enum SonarLintSeverity {
BLOCKER(CodeInsightColors.WARNINGS_ATTRIBUTES, ProblemHighlightType.GENERIC_ERROR_OR_WARNING, HighlightSeverity.WARNING),
HIGH(CodeInsightColors.WARNINGS_ATTRIBUTES, ProblemHighlightType.GENERIC_ERROR_OR_WARNING, HighlightSeverity.WARNING),
MEDIUM(CodeInsightColors.WARNINGS_ATTRIBUTES, ProblemHighlightType.GENERIC_ERROR_OR_WARNING, HighlightSeverity.WARNING),
LOW(CodeInsightColors.WARNINGS_ATTRIBUTES, ProblemHighlightType.GENERIC_ERROR_OR_WARNING, HighlightSeverity.WEAK_WARNING),
LOW(CodeInsightColors.WARNINGS_ATTRIBUTES, ProblemHighlightType.GENERIC_ERROR_OR_WARNING, HighlightSeverity.WARNING),
INFO(CodeInsightColors.WARNINGS_ATTRIBUTES, ProblemHighlightType.GENERIC_ERROR_OR_WARNING, HighlightSeverity.WEAK_WARNING),
OLD_CODE(CodeInsightColors.WEAK_WARNING_ATTRIBUTES, ProblemHighlightType.GENERIC_ERROR_OR_WARNING, HighlightSeverity.WEAK_WARNING);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ void testBlockerSeverity() {

@Test
void testInfoSeverity() {
assertThat(SonarLintSeverity.LOW.highlightSeverity()).isEqualTo(HighlightSeverity.WEAK_WARNING);
assertThat(SonarLintSeverity.LOW.highlightSeverity()).isEqualTo(HighlightSeverity.WARNING);
assertThat(SonarLintSeverity.LOW.highlightType()).isEqualTo(ProblemHighlightType.GENERIC_ERROR_OR_WARNING);
assertThat(SonarLintSeverity.LOW.defaultTextAttributes()).isEqualTo(CodeInsightColors.WARNINGS_ATTRIBUTES);
}
Expand Down

0 comments on commit 4dbe93e

Please sign in to comment.