Documentation
¶
Index ¶
- type Kind
- type LogLevel
- type Logger
- type Project
- 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
- type 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
- type ServiceOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func (*Logger) LoggingEnabled ¶
func (*Logger) StartGroup ¶
func (l *Logger) StartGroup()
type Project ¶
type Project struct {
// contains filtered or unexported fields
}
func NewConfiguredProject ¶
func NewInferredProject ¶
func NewProject ¶
func (*Project) CurrentProgram ¶
func (*Project) DefaultLibraryPath ¶
DefaultLibraryPath implements LanguageServiceHost.
func (*Project) GetCompilerOptions ¶
func (p *Project) GetCompilerOptions() *core.CompilerOptions
GetCompilerOptions implements LanguageServiceHost.
func (*Project) GetCurrentDirectory ¶
GetCurrentDirectory implements LanguageServiceHost.
func (*Project) GetDefaultLibraryPath ¶
GetDefaultLibraryPath implements ls.Host.
func (*Project) GetProgram ¶
GetProgram implements LanguageServiceHost. Updates the program if needed.
func (*Project) GetProjectVersion ¶
GetProjectVersion implements LanguageServiceHost.
func (*Project) GetRootFileNames ¶
GetRootFileNames implements LanguageServiceHost.
func (*Project) GetSourceFile ¶
func (p *Project) GetSourceFile(fileName string, path tspath.Path, languageVersion core.ScriptTarget) *ast.SourceFile
GetSourceFile implements LanguageServiceHost.
func (*Project) LanguageService ¶
func (p *Project) LanguageService() *ls.LanguageService
type ScriptInfo ¶
type ScriptInfo struct {
// contains filtered or unexported fields
}
func (*ScriptInfo) FileName ¶
func (s *ScriptInfo) FileName() string
func (*ScriptInfo) LineMap ¶
func (s *ScriptInfo) LineMap() []core.TextPos
func (*ScriptInfo) Path ¶
func (s *ScriptInfo) Path() tspath.Path
func (*ScriptInfo) Text ¶
func (s *ScriptInfo) Text() string
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(host ServiceHost, options ServiceOptions) *Service
func (*Service) ChangeFile ¶
func (s *Service) ChangeFile(fileName string, changes []ls.TextChange)
func (*Service) EnsureDefaultProjectForFile ¶
func (s *Service) EnsureDefaultProjectForFile(fileName string) (*ScriptInfo, *Project)
func (*Service) GetScriptInfo ¶
func (s *Service) GetScriptInfo(fileName string) *ScriptInfo
func (*Service) MarkFileSaved ¶
func (*Service) SourceFileCount ¶
SourceFileCount should only be used for testing.
type ServiceHost ¶
type ServiceOptions ¶
Click to show internal directories.
Click to hide internal directories.