Versions in this module Expand all Collapse all v0 v0.0.2 Apr 25, 2026 v0.0.1 Apr 11, 2026 Changes in this version + type Reader interface + Read func() (*lsproto.Message, error) + func ToReader(r io.Reader) Reader + type Server struct + func NewServer(opts *ServerOptions) *Server + func (s *Server) InitComplete() <-chan struct{} + func (s *Server) IsActive() bool + func (s *Server) NpmInstall(cwd string, args []string) ([]byte, error) + func (s *Server) ProgressFinish(message *diagnostics.Message, args ...any) + func (s *Server) ProgressStart(message *diagnostics.Message, args ...any) + func (s *Server) PublishDiagnostics(ctx context.Context, params *lsproto.PublishDiagnosticsParams) error + func (s *Server) RefreshCodeLens(ctx context.Context) error + func (s *Server) RefreshDiagnostics(ctx context.Context) error + func (s *Server) RefreshInlayHints(ctx context.Context) error + func (s *Server) RequestConfiguration(ctx context.Context) (lsutil.UserPreferences, error) + func (s *Server) Run(ctx context.Context) error + func (s *Server) SendTelemetry(ctx context.Context, telemetry lsproto.TelemetryEvent) error + func (s *Server) Session() *project.Session + func (s *Server) SetCompilerOptionsForInferredProjects(ctx context.Context, options *core.CompilerOptions) + func (s *Server) UnwatchFiles(ctx context.Context, id project.WatcherID) error + func (s *Server) WatchFiles(ctx context.Context, id project.WatcherID, ...) error + type ServerOptions struct + Cwd string + DefaultLibraryPath string + Err io.Writer + FS vfs.FS + In Reader + NpmInstall func(cwd string, args []string) ([]byte, error) + Out Writer + ParseCache *project.ParseCache + ProgressDelay time.Duration + TypingsLocation string + type Writer interface + Write func(msg *lsproto.Message) error + func ToWriter(w io.Writer) Writer