diagnostics

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2020 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Notifier

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

Notifier is a type responsible for processing documents and pushing diagnostics to the client

func NewNotifier

func NewNotifier(sessCtx context.Context, logger *log.Logger) *Notifier

func (*Notifier) DiagnoseHCL

func (n *Notifier) DiagnoseHCL(ctx context.Context, uri lsp.DocumentURI, text []byte)

DiagnoseHCL enqueues the document for HCL parsing. Documents will be parsed and notifications delivered in order that they are enqueued. Files that are actively changing should be enqueued in order, so that diagnostics remain insync with the current content of the file. This is the responsibility of the caller.

Jump to

Keyboard shortcuts

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