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
Click to show internal directories.
Click to hide internal directories.