Documentation
¶
Index ¶
- type Reader
- type Server
- func (s *Server) Client() project.Client
- func (s *Server) DefaultLibraryPath() string
- func (s *Server) FS() vfs.FS
- func (s *Server) GetCurrentDirectory() string
- func (s *Server) Log(msg ...any)
- func (s *Server) RefreshDiagnostics(ctx context.Context) error
- func (s *Server) Run() error
- func (s *Server) SetCompilerOptionsForInferredProjects(options *core.CompilerOptions)
- func (s *Server) Trace(msg string)
- func (s *Server) TypingsLocation() string
- func (s *Server) UnwatchFiles(ctx context.Context, handle project.WatcherHandle) error
- func (s *Server) WatchFiles(ctx context.Context, watchers []*lsproto.FileSystemWatcher) (project.WatcherHandle, error)
- type ServerOptions
- type Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(opts *ServerOptions) *Server
func (*Server) DefaultLibraryPath ¶
DefaultLibraryPath implements project.ServiceHost.
func (*Server) GetCurrentDirectory ¶
GetCurrentDirectory implements project.ServiceHost.
func (*Server) RefreshDiagnostics ¶
RefreshDiagnostics implements project.Client.
func (*Server) SetCompilerOptionsForInferredProjects ¶
func (s *Server) SetCompilerOptionsForInferredProjects(options *core.CompilerOptions)
!!! temporary; remove when we have `handleDidChangeConfiguration`/implicit project config support
func (*Server) TypingsLocation ¶
TypingsLocation implements project.ServiceHost.
func (*Server) UnwatchFiles ¶
UnwatchFiles implements project.Client.
func (*Server) WatchFiles ¶
func (s *Server) WatchFiles(ctx context.Context, watchers []*lsproto.FileSystemWatcher) (project.WatcherHandle, error)
WatchFiles implements project.Client.
type ServerOptions ¶
Click to show internal directories.
Click to hide internal directories.