Documentation
¶
Overview ¶
Package codeintel connects tool-facing code-intelligence operations to LSP servers.
Index ¶
- Variables
- func ResolveServers(config Config, workspaceRoot string) []lsp.ServerConfig
- type CodeIntelService
- func (s *CodeIntelService) Close(ctx context.Context)
- func (s *CodeIntelService) DiagnosticsForFiles(ctx context.Context, primaryRoot string, additionalRoots []string, ...) ([]tool.CodeIntelFileDiagnostics, error)
- func (s *CodeIntelService) Navigator(primaryRoot string, additionalRoots []string) tool.CodeIntel
- func (s *CodeIntelService) SyncMutation(ctx context.Context, primaryRoot string, additionalRoots []string, ...)
- func (s *CodeIntelService) WorkspaceServerStatus(primaryRoot string, additionalRoots []string) *WorkspaceLSPStatus
- type Config
- type WorkspaceLSPStatus
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 (*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
type WorkspaceLSPStatus ¶
type WorkspaceLSPStatus struct {
ActiveServers []string
}
Click to show internal directories.
Click to hide internal directories.