Skip to content

Commit

Permalink
revert severity changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jribbink committed Feb 20, 2024
1 parent d64ab76 commit 91333f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions languageserver/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -3211,8 +3211,7 @@ func convertDiagnostic(

var codeActionsResolver CodeActionResolver
var tags []protocol.DiagnosticTag

var severity protocol.DiagnosticSeverity
severity := protocol.SeverityWarning

switch linterDiagnostic.Category {
case linter.ReplacementCategory:
Expand Down Expand Up @@ -3272,6 +3271,7 @@ func convertDiagnostic(
linterDiagnostic.SecondaryMessage,
)
}
severity = protocol.SeverityHint
tags = append(tags, protocol.Deprecated)
case linter.CadenceV1Category:
severity = protocol.SeverityError
Expand Down

0 comments on commit 91333f0

Please sign in to comment.