Documentation ¶
Index ¶
- func DiagnosticsNotifier(ctx context.Context) (*notifiers.DiagnosticsNotifier, error)
- func DocumentStorage(ctx context.Context) (filesystem.DocumentStorage, error)
- func ExperimentalFeatures(ctx context.Context) (settings.ExperimentalFeatures, error)
- func LanguageServerVersion(ctx context.Context) (string, bool)
- func ProgressToken(ctx context.Context) (lsp.ProgressToken, bool)
- func RootDirectory(ctx context.Context) (string, bool)
- func SetExperimentalFeatures(ctx context.Context, expFeatures settings.ExperimentalFeatures) error
- func SetRootDirectory(ctx context.Context, dir string) error
- func WithDiagnosticsNotifier(ctx context.Context, diags *notifiers.DiagnosticsNotifier) context.Context
- func WithDocumentStorage(ctx context.Context, fs filesystem.DocumentStorage) context.Context
- func WithExperimentalFeatures(ctx context.Context, expFeatures *settings.ExperimentalFeatures) context.Context
- func WithLanguageServerVersion(ctx context.Context, version string) context.Context
- func WithProgressToken(ctx context.Context, pt lsp.ProgressToken) context.Context
- func WithRootDirectory(ctx context.Context, dir *string) context.Context
- func WithSignalCancel(ctx context.Context, l *log.Logger, sigs ...os.Signal) (context.Context, context.CancelFunc)
- type MissingContextErr
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 ProgressToken ¶
func ProgressToken(ctx context.Context) (lsp.ProgressToken, bool)
func SetExperimentalFeatures ¶
func SetExperimentalFeatures(ctx context.Context, expFeatures settings.ExperimentalFeatures) error
func WithDiagnosticsNotifier ¶
func WithDocumentStorage ¶
func WithDocumentStorage(ctx context.Context, fs filesystem.DocumentStorage) context.Context
func WithProgressToken ¶
Types ¶
type MissingContextErr ¶
type MissingContextErr struct {
CtxKey *contextKey
}
func (*MissingContextErr) Error ¶
func (e *MissingContextErr) Error() string
Click to show internal directories.
Click to hide internal directories.