lsp

package
v1.210.0-test.10 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLSPCommand

func NewLSPCommand() *cobra.Command

NewLSPCommand creates a new `atmos lsp` command.

func NewLSPStartCommand

func NewLSPStartCommand() *cobra.Command

NewLSPStartCommand creates a new `atmos lsp start` command.

Types

type ConfigLoader

type ConfigLoader func(configAndStacksInfo schema.ConfigAndStacksInfo, processStacks bool) (schema.AtmosConfiguration, error)

ConfigLoader is a function type for loading Atmos configuration. This allows for dependency injection in tests.

type LSPServer

type LSPServer interface {
	RunStdio() error
	RunTCP(address string) error
	RunWebSocket(address string) error
}

LSPServer defines the interface for LSP server operations. This interface enables dependency injection and testing.

type Provider

type Provider struct{}

Provider implements CommandProvider for the lsp command.

func (*Provider) GetAliases

func (p *Provider) GetAliases() []internal.CommandAlias

GetAliases returns a list of command aliases to register.

func (*Provider) GetCommand

func (p *Provider) GetCommand() *cobra.Command

GetCommand returns the lsp command.

func (*Provider) GetCompatibilityFlags

func (p *Provider) GetCompatibilityFlags() map[string]compat.CompatibilityFlag

GetCompatibilityFlags returns compatibility flags for this command.

func (*Provider) GetFlagsBuilder

func (p *Provider) GetFlagsBuilder() flags.Builder

GetFlagsBuilder returns the flags builder for this command.

func (*Provider) GetGroup

func (p *Provider) GetGroup() string

GetGroup returns the command group for help organization.

func (*Provider) GetName

func (p *Provider) GetName() string

GetName returns the command name.

func (*Provider) GetPositionalArgsBuilder

func (p *Provider) GetPositionalArgsBuilder() *flags.PositionalArgsBuilder

GetPositionalArgsBuilder returns the positional args builder for this command.

func (*Provider) IsExperimental

func (p *Provider) IsExperimental() bool

IsExperimental returns whether this command is experimental.

type ServerFactory

type ServerFactory func(ctx context.Context, atmosConfig *schema.AtmosConfiguration) (LSPServer, error)

ServerFactory is a function type for creating LSP servers. This allows for dependency injection in tests.

Jump to

Keyboard shortcuts

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