languageserver

package
v0.11.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 9, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertResultIntoDiagnostic added in v0.9.11

func ConvertResultIntoDiagnostic(vacuumResult *model.RuleFunctionResult) protocol.Diagnostic

func ConvertResultsIntoDiagnostics added in v0.9.11

func ConvertResultsIntoDiagnostics(result *motor.RuleSetExecutionResult) []protocol.Diagnostic

func GetDiagnosticSeverityFromRule added in v0.9.11

func GetDiagnosticSeverityFromRule(rule *model.Rule) protocol.DiagnosticSeverity

Types

type Document

type Document struct {
	URI               protocol.DocumentUri
	RunningDiagnostic bool
	Content           string
}

type DocumentStore

type DocumentStore struct {
	// contains filtered or unexported fields
}

func (*DocumentStore) Add

func (s *DocumentStore) Add(uri string, content string) *Document

func (*DocumentStore) Get

func (s *DocumentStore) Get(uri string) (*Document, bool)

func (*DocumentStore) Remove

func (s *DocumentStore) Remove(uri string)

type ServerState

type ServerState struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(version string, lintRequest *utils.LintFileRequest) *ServerState

func (*ServerState) Run

func (s *ServerState) Run() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL