context

package
v0.0.0-...-1f6fcca Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2022 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommandPrefix

func CommandPrefix(ctx context.Context) (string, bool)

func DocumentStorage

func DocumentStorage(ctx context.Context) (filesystem.DocumentStorage, error)

func LanguageServerVersion

func LanguageServerVersion(ctx context.Context) (string, bool)

func ProgressToken

func ProgressToken(ctx context.Context) (lsp.ProgressToken, bool)

func RootDirectory

func RootDirectory(ctx context.Context) (string, bool)

func SetCommandPrefix

func SetCommandPrefix(ctx context.Context, prefix string) error

func SetRootDirectory

func SetRootDirectory(ctx context.Context, dir string) error

func WithCommandPrefix

func WithCommandPrefix(ctx context.Context, prefix *string) context.Context

func WithLanguageServerVersion

func WithLanguageServerVersion(ctx context.Context, version string) context.Context

func WithProgressToken

func WithProgressToken(ctx context.Context, pt lsp.ProgressToken) context.Context

func WithRootDirectory

func WithRootDirectory(ctx context.Context, dir *string) context.Context

func WithSignalCancel

func WithSignalCancel(ctx context.Context, l *log.Logger, sigs ...os.Signal) (
	context.Context, context.CancelFunc)

Types

type MissingContextErr

type MissingContextErr struct {
	CtxKey *contextKey
}

func (*MissingContextErr) Error

func (e *MissingContextErr) Error() string

Jump to

Keyboard shortcuts

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