Versions in this module Expand all Collapse all v0 v0.0.1 Mar 15, 2025 Changes in this version + type Kind int + const KindAutoImportProvider + const KindAuxiliary + const KindConfigured + const KindInferred + func (i Kind) String() string + type LogLevel int + const LogLevelNormal + const LogLevelRequestTime + const LogLevelTerse + const LogLevelVerbose + type Logger struct + func NewLogger(outputs []io.Writer, level LogLevel) *Logger + func (l *Logger) EndGroup() + func (l *Logger) Error(s string) + func (l *Logger) HasLevel(level LogLevel) bool + func (l *Logger) Info(s string) + func (l *Logger) LoggingEnabled() bool + func (l *Logger) PerfTrace(s string) + func (l *Logger) StartGroup() + type Project struct + func NewConfiguredProject(configFileName string, configFilePath tspath.Path, projectService *Service) *Project + func NewInferredProject(compilerOptions *core.CompilerOptions, currentDirectory string, ...) *Project + func NewProject(name string, kind Kind, currentDirectory string, projectService *Service) *Project + func (p *Project) CurrentProgram() *compiler.Program + func (p *Project) DefaultLibraryPath() string + func (p *Project) FS() vfs.FS + func (p *Project) GetCompilerOptions() *core.CompilerOptions + func (p *Project) GetCurrentDirectory() string + func (p *Project) GetDefaultLibraryPath() string + func (p *Project) GetProgram() *compiler.Program + func (p *Project) GetProjectVersion() int + func (p *Project) GetRootFileNames() []string + func (p *Project) GetSourceFile(fileName string, path tspath.Path, languageVersion core.ScriptTarget) *ast.SourceFile + func (p *Project) Kind() Kind + func (p *Project) LanguageService() *ls.LanguageService + func (p *Project) Name() string + func (p *Project) NewLine() string + func (p *Project) Trace(msg string) + type ScriptInfo struct + func (s *ScriptInfo) FileName() string + func (s *ScriptInfo) LineMap() []core.TextPos + func (s *ScriptInfo) Path() tspath.Path + func (s *ScriptInfo) Text() string + type Service struct + func NewService(host ServiceHost, options ServiceOptions) *Service + func (s *Service) ChangeFile(fileName string, changes []ls.TextChange) + func (s *Service) Close() + func (s *Service) CloseFile(fileName string) + func (s *Service) EnsureDefaultProjectForFile(fileName string) (*ScriptInfo, *Project) + func (s *Service) GetScriptInfo(fileName string) *ScriptInfo + func (s *Service) MarkFileSaved(fileName string, text string) + func (s *Service) OpenFile(fileName string, fileContent string, scriptKind core.ScriptKind, ...) + func (s *Service) Projects() []*Project + func (s *Service) SourceFileCount() int + type ServiceHost interface + DefaultLibraryPath func() string + FS func() vfs.FS + GetCurrentDirectory func() string + NewLine func() string + type ServiceOptions struct + DefaultLibraryPath string + Logger *Logger