context

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2021 License: MPL-2.0 Imports: 12 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 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 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 RootModuleFinder added in v0.9.0

func RootModuleFinder(ctx context.Context) (rootmodule.RootModuleFinder, error)

func RootModuleLoader added in v0.5.0

func RootModuleLoader(ctx context.Context) (rootmodule.RootModuleLoader, error)

func RootModuleManager added in v0.4.0

func RootModuleManager(ctx context.Context) (rootmodule.RootModuleManager, error)

func RootModuleWalker added in v0.5.0

func RootModuleWalker(ctx context.Context) (*rootmodule.Walker, error)

func SetClientCapabilities

func SetClientCapabilities(ctx context.Context, caps *lsp.ClientCapabilities) 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 TerraformFormatterFinder added in v0.5.0

func TerraformFormatterFinder(ctx context.Context) (rootmodule.TerraformFormatterFinder, error)

func Watcher added in v0.4.0

func Watcher(ctx context.Context) (watcher.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 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 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 WithRootModuleFinder added in v0.9.0

func WithRootModuleFinder(ctx context.Context, rmcf rootmodule.RootModuleFinder) context.Context

func WithRootModuleLoader added in v0.5.0

func WithRootModuleLoader(ctx context.Context, rml rootmodule.RootModuleLoader) context.Context

func WithRootModuleManager added in v0.4.0

func WithRootModuleManager(ctx context.Context, wm rootmodule.RootModuleManager) context.Context

func WithRootModuleWalker added in v0.5.0

func WithRootModuleWalker(ctx context.Context, w *rootmodule.Walker) 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 WithTerraformFormatterFinder added in v0.5.0

func WithTerraformFormatterFinder(ctx context.Context, tef rootmodule.TerraformFormatterFinder) context.Context

func WithWatcher added in v0.4.0

func WithWatcher(ctx context.Context, w watcher.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