codeintel

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2026 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Overview

Package codeintel connects tool-facing code-intelligence operations to LSP servers.

Index

Constants

This section is empty.

Variables

View Source
var ErrLSPServerCommandRequired = errors.New("lsp server command is required")
View Source
var ErrLSPServerNameRequired = errors.New("lsp server name is required")

Functions

func ResolveServers

func ResolveServers(config Config, workspaceRoot string) []lsp.ServerConfig

Types

type CodeIntelService

type CodeIntelService struct {
	// contains filtered or unexported fields
}

func NewCodeIntelService

func NewCodeIntelService(config Config) *CodeIntelService

func (*CodeIntelService) Close

func (s *CodeIntelService) Close(ctx context.Context)

func (*CodeIntelService) DiagnosticsForFiles

func (s *CodeIntelService) DiagnosticsForFiles(ctx context.Context, primaryRoot string, additionalRoots []string, filePaths []string, timeout time.Duration) ([]tool.CodeIntelFileDiagnostics, error)

func (*CodeIntelService) Navigator

func (s *CodeIntelService) Navigator(primaryRoot string, additionalRoots []string) tool.CodeIntel

func (*CodeIntelService) SyncMutation

func (s *CodeIntelService) SyncMutation(ctx context.Context, primaryRoot string, additionalRoots []string, plan workspaceedit.SyncPlan)

func (*CodeIntelService) WorkspaceServerStatus

func (s *CodeIntelService) WorkspaceServerStatus(primaryRoot string, additionalRoots []string) *WorkspaceLSPStatus

type Config

type Config struct {
	AutoDiscover bool
	Servers      []lsp.ServerConfig
}

func DefaultConfig

func DefaultConfig() Config

func (Config) Validate

func (c Config) Validate() error

type WorkspaceLSPStatus

type WorkspaceLSPStatus struct {
	ActiveServers []string
}

Jump to

Keyboard shortcuts

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