(uri lsproto.DocumentUri)
| 84 | } |
| 85 | |
| 86 | func (s *Snapshot) GetProjectsContainingFile(uri lsproto.DocumentUri) []ls.Project { |
| 87 | fileName := uri.FileName() |
| 88 | path := s.toPath(fileName) |
| 89 | // TODO!! sheetal may be change this to handle symlinks!! |
| 90 | return s.ProjectCollection.GetProjectsContainingFile(path) |
| 91 | } |
| 92 | |
| 93 | func (s *Snapshot) GetFile(fileName string) FileHandle { |
| 94 | return s.fs.GetFile(fileName) |