context

package
v0.0.0-...-c1f6c63 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2022 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiagnosticsNotifier

func DiagnosticsNotifier(ctx context.Context) (*notifiers.DiagnosticsNotifier, error)

func DocumentStorage

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

func ExperimentalFeatures

func ExperimentalFeatures(ctx context.Context) (settings.ExperimentalFeatures, 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 SetExperimentalFeatures

func SetExperimentalFeatures(ctx context.Context, expFeatures settings.ExperimentalFeatures) error

func SetRootDirectory

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

func WithDiagnosticsNotifier

func WithDiagnosticsNotifier(ctx context.Context, diags *notifiers.DiagnosticsNotifier) context.Context

func WithExperimentalFeatures

func WithExperimentalFeatures(ctx context.Context, expFeatures *settings.ExperimentalFeatures) 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