Skip to content

Commit

Permalink
fixed url in language server
Browse files Browse the repository at this point in the history
Signed-off-by: quobix <[email protected]>
  • Loading branch information
daveshanley committed Feb 9, 2024
1 parent cb3f380 commit e8ae7c1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions language-server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (
"github.com/tliron/glsp"
protocol "github.com/tliron/glsp/protocol_3_16"
glspserv "github.com/tliron/glsp/server"
"strings"
"time"
)

Expand Down Expand Up @@ -123,8 +124,8 @@ func (s *ServerState) runDiagnostic(doc *Document, notify glsp.NotifyFunc, delay

for _, vacuumResult := range result.Results {
severity := getDiagnosticSeverityFromRule(vacuumResult.Rule)
diagnosticErrorHref := fmt.Sprintf("%s/rules/%s/%s,", model.WebsiteUrl,
vacuumResult.Rule.RuleCategory.Id, vacuumResult.Rule.Id)
diagnosticErrorHref := fmt.Sprintf("%s/rules/%s/%s", model.WebsiteUrl,
vacuumResult.Rule.RuleCategory.Id, strings.ReplaceAll(vacuumResult.Rule.Id, "$", ""))
diagnostics = append(diagnostics, protocol.Diagnostic{
Range: protocol.Range{
Start: protocol.Position{Line: protocol.UInteger(vacuumResult.StartNode.Line - 1),
Expand Down

0 comments on commit e8ae7c1

Please sign in to comment.