(uri lsp.DocumentURI)
| 99 | } |
| 100 | |
| 101 | func (fs *MemFS) get(uri lsp.DocumentURI) ([]byte, bool) { |
| 102 | path := uriToMemFSPath(uri) |
| 103 | fs.mu.Lock() |
| 104 | defer fs.mu.Unlock() |
| 105 | content, found := fs.m[path] |
| 106 | return content, found |
| 107 | } |
| 108 | |
| 109 | func uriToMemFSPath(uri lsp.DocumentURI) string { |
| 110 | if IsURI(uri) { |