Documentation
¶
Index ¶
- func Completion(ctx context.Context, params *protocol.CompletionParams, ...) (*protocol.CompletionList, error)
- func Definition(ctx context.Context, definitionLinkSupport bool, doc document.ComposeDocument, ...) (any, error)
- func DocumentHighlight(doc document.ComposeDocument, position protocol.Position) ([]protocol.DocumentHighlight, error)
- func DocumentHighlights(doc document.ComposeDocument, position protocol.Position) (string, dependencyReference)
- func DocumentLink(ctx context.Context, documentURI protocol.URI, doc document.ComposeDocument) ([]protocol.DocumentLink, error)
- func DocumentSymbol(ctx context.Context, doc document.ComposeDocument) (result []any, err error)
- func Formatting(doc document.ComposeDocument, options protocol.FormattingOptions) ([]protocol.TextEdit, error)
- func Hover(ctx context.Context, params *protocol.HoverParams, ...) (*protocol.Hover, error)
- func InlayHint(doc document.ComposeDocument, rng protocol.Range) ([]protocol.InlayHint, error)
- func NewComposeDiagnosticsCollector() textdocument.DiagnosticsCollector
- func NodeStructure(line int, rootNodes []*ast.MappingValueNode) []*ast.MappingValueNode
- func PrepareRename(doc document.ComposeDocument, params *protocol.PrepareRenameParams) (*protocol.Range, error)
- func Rename(doc document.ComposeDocument, params *protocol.RenameParams) (*protocol.WorkspaceEdit, error)
- type ComposeDiagnosticsCollector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Completion ¶ added in v0.4.0
func Completion(ctx context.Context, params *protocol.CompletionParams, manager *document.Manager, doc document.ComposeDocument) (*protocol.CompletionList, error)
func Definition ¶ added in v0.3.8
func Definition(ctx context.Context, definitionLinkSupport bool, doc document.ComposeDocument, params *protocol.DefinitionParams) (any, error)
func DocumentHighlight ¶ added in v0.5.0
func DocumentHighlight(doc document.ComposeDocument, position protocol.Position) ([]protocol.DocumentHighlight, error)
func DocumentHighlights ¶ added in v0.8.0
func DocumentHighlights(doc document.ComposeDocument, position protocol.Position) (string, dependencyReference)
func DocumentLink ¶
func DocumentLink(ctx context.Context, documentURI protocol.URI, doc document.ComposeDocument) ([]protocol.DocumentLink, error)
func DocumentSymbol ¶
func Formatting ¶ added in v0.6.0
func Formatting(doc document.ComposeDocument, options protocol.FormattingOptions) ([]protocol.TextEdit, error)
func Hover ¶ added in v0.4.0
func Hover(ctx context.Context, params *protocol.HoverParams, doc document.ComposeDocument) (*protocol.Hover, error)
func NewComposeDiagnosticsCollector ¶ added in v0.6.0
func NewComposeDiagnosticsCollector() textdocument.DiagnosticsCollector
func NodeStructure ¶ added in v0.4.0
func NodeStructure(line int, rootNodes []*ast.MappingValueNode) []*ast.MappingValueNode
func PrepareRename ¶ added in v0.5.0
func PrepareRename(doc document.ComposeDocument, params *protocol.PrepareRenameParams) (*protocol.Range, error)
func Rename ¶ added in v0.5.0
func Rename(doc document.ComposeDocument, params *protocol.RenameParams) (*protocol.WorkspaceEdit, error)
Types ¶
type ComposeDiagnosticsCollector ¶ added in v0.6.0
type ComposeDiagnosticsCollector struct { }
func (*ComposeDiagnosticsCollector) CollectDiagnostics ¶ added in v0.6.0
func (c *ComposeDiagnosticsCollector) CollectDiagnostics(source, workspaceFolder string, doc document.Document, text string) []protocol.Diagnostic
func (*ComposeDiagnosticsCollector) SupportsLanguageIdentifier ¶ added in v0.6.0
func (c *ComposeDiagnosticsCollector) SupportsLanguageIdentifier(languageIdentifier protocol.LanguageIdentifier) bool
Click to show internal directories.
Click to hide internal directories.