File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -77,9 +77,12 @@ def checkerDiagToLspDict(diag):
77
77
# Translate the error into LSP severity
78
78
severity = diag .severity
79
79
80
- if severity in (DiagType .INFO , DiagType .STYLE_INFO ):
81
- severity = defines .DiagnosticSeverity .Hint
82
- elif severity in (DiagType .STYLE_WARNING , DiagType .STYLE_ERROR ):
80
+ if severity in (
81
+ DiagType .STYLE_WARNING ,
82
+ DiagType .STYLE_ERROR ,
83
+ DiagType .INFO ,
84
+ DiagType .STYLE_INFO ,
85
+ ):
83
86
severity = defines .DiagnosticSeverity .Information
84
87
elif severity in (DiagType .WARNING ,):
85
88
severity = defines .DiagnosticSeverity .Warning
Original file line number Diff line number Diff line change @@ -115,8 +115,8 @@ def __str__(self):
115
115
class TestCheckerDiagToLspDict (unittest2 .TestCase ):
116
116
@parameterized .parameterized .expand (
117
117
[
118
- (DiagType .INFO , defines .DiagnosticSeverity .Hint ),
119
- (DiagType .STYLE_INFO , defines .DiagnosticSeverity .Hint ),
118
+ (DiagType .INFO , defines .DiagnosticSeverity .Information ),
119
+ (DiagType .STYLE_INFO , defines .DiagnosticSeverity .Information ),
120
120
(DiagType .STYLE_WARNING , defines .DiagnosticSeverity .Information ),
121
121
(DiagType .STYLE_ERROR , defines .DiagnosticSeverity .Information ),
122
122
(DiagType .WARNING , defines .DiagnosticSeverity .Warning ),
You can’t perform that action at this time.
0 commit comments