DidOpen notifies the file system that a file was opened.
(params *lsp.DidOpenTextDocumentParams)
| 24 | |
| 25 | // DidOpen notifies the file system that a file was opened. |
| 26 | func (fs *MemFS) DidOpen(params *lsp.DidOpenTextDocumentParams) { |
| 27 | fs.set(params.TextDocument.URI, []byte(params.TextDocument.Text)) |
| 28 | } |
| 29 | |
| 30 | // DidChange notifies the file system that a file was changed. |
| 31 | func (fs *MemFS) DidChange(params *lsp.DidChangeTextDocumentParams) error { |
no test coverage detected