hover

package
v0.0.0-...-c9c0277 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package hover provides functionality for generating hover information.

Package hover provides functionality for generating hover information in the LSP server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HoverInfo

type HoverInfo struct {
	// Content is the markdown content to display
	Content []string
	// Range is the range in the document that this hover applies to
	Position position.RawPosition
}

HoverInfo represents the information to be displayed in a hover tooltip

func BuildHoverResponseFromParse

func BuildHoverResponseFromParse(ctx context.Context, info *parser.ParsedTemplateFile, hoverPosition position.RawPosition, registry *ast.Registry) (*HoverInfo, error)

func FormatHoverResponse

func FormatHoverResponse(ctx context.Context, variable *parser.VariableLocation, method *ast.TemplateMethodInfo, typeInfo *ast.FieldInfo) (*HoverInfo, error)

FormatHoverResponse formats a hover response for a variable or function

Jump to

Keyboard shortcuts

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