Skip to content

Commit

Permalink
Cleaned up experience a little
Browse files Browse the repository at this point in the history
Signed-off-by: quobix <[email protected]>
  • Loading branch information
daveshanley committed Feb 7, 2024
1 parent 5d9fdcc commit 3092d78
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions language-server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ func NewServer(version string, lintRequest *utils.LintFileRequest) *ServerState

return nil
}

handler.TextDocumentCompletion = func(context *glsp.Context, params *protocol.CompletionParams) (any, error) {
return nil, nil
}
return state
}

Expand Down
5 changes: 3 additions & 2 deletions motor/rule_applicator.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"context"
"errors"
"fmt"
vacuumUtils "github.com/daveshanley/vacuum/utils"
v3 "github.com/pb33f/libopenapi/datamodel/high/v3"
"github.com/sourcegraph/conc"
"io"
Expand Down Expand Up @@ -499,8 +500,8 @@ func ApplyRulesToRuleSet(execution *RuleSetExecution) *RuleSetExecutionResult {
res := model.RuleFunctionResult{
RuleId: "circular-references",
Rule: circularRefRule,
StartNode: cr.Start.Node,
EndNode: cr.LoopPoint.Node,
StartNode: cr.ParentNode,
EndNode: vacuumUtils.BuildEndNode(cr.ParentNode),
Message: fmt.Sprintf("circular reference detected from %s", cr.Start.Definition),
Path: cr.GenerateJourneyPath(),
}
Expand Down

0 comments on commit 3092d78

Please sign in to comment.