package work

import "golang.org/x/tools/internal/lsp/work"

Index

Functions

func Completion

func Diagnostics

func Diagnostics(ctx context.Context, snapshot source.Snapshot) (map[source.VersionedFileIdentity][]*source.Diagnostic, error)

func DiagnosticsForWork

func DiagnosticsForWork(ctx context.Context, snapshot source.Snapshot, fh source.FileHandle) ([]*source.Diagnostic, error)

func Format

func Format(ctx context.Context, snapshot source.Snapshot, fh source.FileHandle) ([]protocol.TextEdit, error)

func Hover

func Hover(ctx context.Context, snapshot source.Snapshot, fh source.FileHandle, position protocol.Position) (*protocol.Hover, error)

Source Files

completion.go diagnostics.go format.go hover.go

Version
v0.1.10
Published
Mar 15, 2022
Platform
js/wasm
Imports
15 packages
Last checked
4 hours ago

Tools for package owners.