DidClose notifies the file system that a file was closed.
(params *lsp.DidCloseTextDocumentParams)
| 81 | |
| 82 | // DidClose notifies the file system that a file was closed. |
| 83 | func (fs *MemFS) DidClose(params *lsp.DidCloseTextDocumentParams) { |
| 84 | fs.del(params.TextDocument.URI) |
| 85 | } |
| 86 | |
| 87 | func (fs *MemFS) set(uri lsp.DocumentURI, content []byte) { |
| 88 | path := uriToMemFSPath(uri) |
no test coverage detected