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 queueing hcl diagnostics to be converted and sent to the client
func (*Notifier) PublishHCLDiags ¶
func (n *Notifier) PublishHCLDiags(ctx context.Context, dirPath string, diags map[string]hcl.Diagnostics, source string)
PublishHCLDiags accepts a map of hcl diagnostics per file and queues them for publishing. A dir path is passed which is joined with the filename keys of the map, to form a file URI. A source string is passed and set for each diagnostic, this is typically displayed in the client UI.
Click to show internal directories.
Click to hide internal directories.