context

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: May 26, 2021 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientCapabilities

func ClientCapabilities(ctx context.Context) (lsp.ClientCapabilities, error)

func ClientName added in v0.14.0

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

func CommandPrefix added in v0.9.0

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

func Diagnostics added in v0.8.0

func Diagnostics(ctx context.Context) (*diagnostics.Notifier, error)

func DocumentStorage added in v0.6.0

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

func ExperimentalFeatures added in v0.12.0

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

func LanguageServerVersion added in v0.11.0

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

func ModuleFinder added in v0.13.0

func ModuleFinder(ctx context.Context) (module.ModuleFinder, error)

func ModuleManager added in v0.13.0

func ModuleManager(ctx context.Context) (module.ModuleManager, error)

func ModuleWalker added in v0.13.0

func ModuleWalker(ctx context.Context) (*module.Walker, error)

func ProgressToken added in v0.11.0

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

func RootDirectory added in v0.4.0

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

func SetClientCapabilities

func SetClientCapabilities(ctx context.Context, caps *lsp.ClientCapabilities) error

func SetClientName added in v0.14.0

func SetClientName(ctx context.Context, name string) error

func SetCommandPrefix added in v0.9.0

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

func SetExperimentalFeatures added in v0.12.0

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

func SetRootDirectory added in v0.4.0

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

func TerraformExecLogPath

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

func TerraformExecPath added in v0.4.0

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

func TerraformExecTimeout added in v0.3.0

func TerraformExecTimeout(ctx context.Context) (time.Duration, bool)

func Watcher added in v0.4.0

func Watcher(ctx context.Context) (module.Watcher, error)

func WithClientCapabilities

func WithClientCapabilities(ctx context.Context, caps *lsp.ClientCapabilities) context.Context

func WithClientCapabilitiesSetter

func WithClientCapabilitiesSetter(ctx context.Context, caps *lsp.ClientCapabilities) context.Context

func WithClientName added in v0.14.0

func WithClientName(ctx context.Context, namePtr *string) context.Context

func WithCommandPrefix added in v0.9.0

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

func WithDiagnostics added in v0.8.0

func WithDiagnostics(ctx context.Context, diags *diagnostics.Notifier) context.Context

func WithDocumentStorage added in v0.6.0

func WithDocumentStorage(ctx context.Context, fs filesystem.DocumentStorage) context.Context

func WithExperimentalFeatures added in v0.12.0

func WithExperimentalFeatures(ctx context.Context, expFeatures *settings.ExperimentalFeatures) context.Context

func WithLanguageServerVersion added in v0.11.0

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

func WithModuleFinder added in v0.13.0

func WithModuleFinder(ctx context.Context, mf module.ModuleFinder) context.Context

func WithModuleManager added in v0.13.0

func WithModuleManager(ctx context.Context, wm module.ModuleManager) context.Context

func WithModuleWalker added in v0.13.0

func WithModuleWalker(ctx context.Context, w *module.Walker) context.Context

func WithProgressToken added in v0.11.0

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

func WithRootDirectory added in v0.4.0

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)

func WithTerraformExecLogPath

func WithTerraformExecLogPath(ctx context.Context, path string) context.Context

func WithTerraformExecPath added in v0.4.0

func WithTerraformExecPath(ctx context.Context, path string) context.Context

func WithTerraformExecTimeout added in v0.3.0

func WithTerraformExecTimeout(ctx context.Context, timeout time.Duration) context.Context

func WithWatcher added in v0.4.0

func WithWatcher(ctx context.Context, w module.Watcher) context.Context

Types

type MissingContextErr added in v0.2.1

type MissingContextErr struct {
	CtxKey *contextKey
}

func (*MissingContextErr) Error added in v0.2.1

func (e *MissingContextErr) Error() string

Jump to

Keyboard shortcuts

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