File tree Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ module github.com/DDP-Projekt/DDPLS
3
3
go 1.22.2
4
4
5
5
require (
6
- github.com/DDP-Projekt/Kompilierer v0.4.0-alpha.0.20240716185534-0591475a8ca3
6
+ github.com/DDP-Projekt/Kompilierer v0.4.0-alpha.0.20240727064752-82b1157e21d4
7
7
github.com/tliron/commonlog v0.2.8
8
8
github.com/tliron/glsp v0.2.2-0.20240309182338-ab78d718ad7d
9
9
)
Original file line number Diff line number Diff line change 1
- github.com/DDP-Projekt/Kompilierer v0.4.0-alpha.0.20240716185534-0591475a8ca3 h1:C9i7eOAI5iZadlDBX8EpC84QDsYlecIxaXaFeWT2wqE =
2
- github.com/DDP-Projekt/Kompilierer v0.4.0-alpha.0.20240716185534-0591475a8ca3 /go.mod h1:vp0zj11n6rP/B+o7BIXmUhhjrpZNO1c7/pf+VPSHIzM =
1
+ github.com/DDP-Projekt/Kompilierer v0.4.0-alpha.0.20240727064752-82b1157e21d4 h1:IFRza81KvPQZ8+7JJ/X7M1v+ppX1uYrsg3NsOwOaDYw =
2
+ github.com/DDP-Projekt/Kompilierer v0.4.0-alpha.0.20240727064752-82b1157e21d4 /go.mod h1:vp0zj11n6rP/B+o7BIXmUhhjrpZNO1c7/pf+VPSHIzM =
3
3
github.com/aymanbagabas/go-osc52/v2 v2.0.1 h1:HwpRHbFMcZLEVr42D4p7XBqjyuxQH5SMiErDT4WkJ2k =
4
4
github.com/aymanbagabas/go-osc52/v2 v2.0.1 /go.mod h1:uYgXzlJ7ZpABp8OJ+exZzJJhRNQ2ASbcXHWsFqH8hp8 =
5
5
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c =
Original file line number Diff line number Diff line change 86
86
)
87
87
88
88
func (d * diagnosticVisitor ) add (err ddperror.Error ) {
89
+ severity := & severityError
90
+ if err .Level == ddperror .LEVEL_WARN {
91
+ severity = & severityWarning
92
+ }
93
+
89
94
diagnostic := protocol.Diagnostic {
90
95
Range : helper .ToProtocolRange (err .Range ),
91
- Severity : & severityError ,
96
+ Severity : severity ,
92
97
Source : & errSrc ,
93
98
Message : fmt .Sprintf ("%s (%d)" , err .Msg , err .Code ),
94
99
}
@@ -100,8 +105,9 @@ func (d *diagnosticVisitor) add(err ddperror.Error) {
100
105
}
101
106
102
107
var (
103
- severityError = protocol .DiagnosticSeverityError
104
- errSrc = "ddp"
108
+ severityError = protocol .DiagnosticSeverityError
109
+ severityWarning = protocol .DiagnosticSeverityWarning
110
+ errSrc = "ddp"
105
111
)
106
112
107
113
func (* diagnosticVisitor ) Visitor () {}
You can’t perform that action at this time.
0 commit comments