Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Input ¶ added in v0.23.0
type Input struct{}
Input is a simple completion provider that returns the input keyword as a completion item at suitable times.
type PackageRefs ¶ added in v0.23.0
type PackageRefs struct{}
PackageRefs is a completion provider that returns completions when importing packages.
func (*PackageRefs) Name ¶ added in v0.24.0
func (*PackageRefs) Name() string
func (*PackageRefs) Run ¶ added in v0.23.0
func (*PackageRefs) Run( _ context.Context, c *cache.Cache, params types.CompletionParams, _ *Options, ) ([]types.CompletionItem, error)
type Policy ¶ added in v0.24.0
type Policy struct {
// contains filtered or unexported fields
}
Policy provides suggestions that have been determined by Rego policy.
type RuleHead ¶ added in v0.23.0
type RuleHead struct{}
RuleHead is a completion provider that returns completions for rules found in the same package at the start of a line, so when adding new heads, the user can easily add new ones.
type RuleHeadKeyword ¶ added in v0.23.0
type RuleHeadKeyword struct{}
RuleHeadKeyword will return completions for the keywords when starting a new rule. The current cases are supported: - [rule-name] if - [rule-name] := - [rule-name] contains - [rule-name] contains if These completions are mandatory, that means they are the only ones to be shown.
func (*RuleHeadKeyword) Name ¶ added in v0.24.0
func (*RuleHeadKeyword) Name() string
func (*RuleHeadKeyword) Run ¶ added in v0.23.0
func (*RuleHeadKeyword) Run( _ context.Context, c *cache.Cache, params types.CompletionParams, _ *Options, ) ([]types.CompletionItem, error)