( projectPath tspath.Path, program *compiler.Program, host Host, activeFile string, )
| 22 | } |
| 23 | |
| 24 | func NewLanguageService( |
| 25 | projectPath tspath.Path, |
| 26 | program *compiler.Program, |
| 27 | host Host, |
| 28 | activeFile string, |
| 29 | ) *LanguageService { |
| 30 | return &LanguageService{ |
| 31 | projectPath: projectPath, |
| 32 | host: host, |
| 33 | program: program, |
| 34 | converters: host.Converters(), |
| 35 | activeConfig: host.GetPreferences(activeFile), |
| 36 | documentPositionMappers: map[string]*sourcemap.DocumentPositionMapper{}, |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | func (l *LanguageService) toPath(fileName string) tspath.Path { |
| 41 | return tspath.ToPath(fileName, l.program.GetCurrentDirectory(), l.UseCaseSensitiveFileNames()) |
no test coverage detected