HandleNotification processes an LSP notification
(method string, params json.RawMessage)
| 169 | |
| 170 | // HandleNotification processes an LSP notification |
| 171 | func (h *Handler) HandleNotification(method string, params json.RawMessage) { |
| 172 | switch method { |
| 173 | case "initialized": |
| 174 | h.handleInitialized() |
| 175 | case "exit": |
| 176 | h.handleExit() |
| 177 | case "textDocument/didOpen": |
| 178 | h.handleDidOpen(params) |
| 179 | case "textDocument/didChange": |
| 180 | h.handleDidChange(params) |
| 181 | case "textDocument/didClose": |
| 182 | h.handleDidClose(params) |
| 183 | case "textDocument/didSave": |
| 184 | h.handleDidSave(params) |
| 185 | } |
| 186 | } |
| 187 | |
| 188 | // handleInitialize handles the initialize request |
| 189 | func (h *Handler) handleInitialize(params json.RawMessage) (*InitializeResult, error) { |