isFileSystemRequest returns if this is an LSP method whose sole purpose is modifying the contents of the overlay file system.
(method string)
| 116 | // isFileSystemRequest returns if this is an LSP method whose sole |
| 117 | // purpose is modifying the contents of the overlay file system. |
| 118 | func isFileSystemRequest(method string) bool { |
| 119 | switch Method(method) { |
| 120 | case LSPMethodTextDocumentDidOpen, LSPMethodTextDocumentDidChange, LSPMethodTextDocumentDidClose, LSPMethodTextDocumentDidSave: |
| 121 | return true |
| 122 | default: |
| 123 | return false |
| 124 | } |
| 125 | } |