templatehandler

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TemplateHandler

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

func NewTemplateHandler

func NewTemplateHandler(client protocol.Client, documents *document.DocumentStore, chartStore *charts.ChartStore, helmlintConfig util.HelmLintConfig) *TemplateHandler

func (*TemplateHandler) Completion

func (h *TemplateHandler) Completion(ctx context.Context, params *lsp.CompletionParams) (result *lsp.CompletionList, err error)

func (*TemplateHandler) Configure

func (h *TemplateHandler) Configure(ctx context.Context, helmlsConfig util.HelmlsConfiguration)

func (*TemplateHandler) Definition

func (h *TemplateHandler) Definition(_ context.Context, params *lsp.DefinitionParams) (result []lsp.Location, err error)

func (*TemplateHandler) DidOpen

func (h *TemplateHandler) DidOpen(ctx context.Context, params *lsp.DidOpenTextDocumentParams, helmlsConfig util.HelmlsConfiguration) (err error)

func (*TemplateHandler) DidSave

func (h *TemplateHandler) DidSave(ctx context.Context, params *lsp.DidSaveTextDocumentParams) (err error)

func (*TemplateHandler) DocumentSymbol

func (h *TemplateHandler) DocumentSymbol(ctx context.Context, params *lsp.DocumentSymbolParams) (result []interface{}, err error)

DocumentSymbol implements protocol.Server.

func (*TemplateHandler) GetDiagnostics

func (h *TemplateHandler) GetDiagnostics(uri lsp.DocumentURI) []lsp.PublishDiagnosticsParams

func (*TemplateHandler) Hover

func (h *TemplateHandler) Hover(ctx context.Context, params *lsp.HoverParams) (result *lsp.Hover, err error)

func (*TemplateHandler) NewGenericDocumentUseCase

func (h *TemplateHandler) NewGenericDocumentUseCase(
	params lsp.TextDocumentPositionParams,
	nodeSelection func(ast *sitter.Tree, position lsp.Position) (node *sitter.Node),
) (*languagefeatures.GenericDocumentUseCase, error)

func (*TemplateHandler) PostDidChange

func (h *TemplateHandler) PostDidChange(ctx context.Context, params *lsp.DidChangeTextDocumentParams) (err error)

func (*TemplateHandler) References

func (h *TemplateHandler) References(_ context.Context, params *lsp.ReferenceParams) (result []lsp.Location, err error)

func (*TemplateHandler) SetClient

func (h *TemplateHandler) SetClient(client protocol.Client)

Jump to

Keyboard shortcuts

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