MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / HandleNotification

Method HandleNotification

pkg/lsp/handler.go:171–186  ·  view source on GitHub ↗

HandleNotification processes an LSP notification

(method string, params json.RawMessage)

Source from the content-addressed store, hash-verified

169
170// HandleNotification processes an LSP notification
171func (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
189func (h *Handler) handleInitialize(params json.RawMessage) (*InitializeResult, error) {

Callers 8

handleMessageMethod · 0.80
TestHandler_DidOpenFunction · 0.80
TestHandler_DidChangeFunction · 0.80
BenchmarkHandler_DidOpenFunction · 0.80
openDocFunction · 0.80
TestHandler_DidCloseFunction · 0.80
TestHandler_DidSaveFunction · 0.80

Calls 6

handleInitializedMethod · 0.95
handleExitMethod · 0.95
handleDidOpenMethod · 0.95
handleDidChangeMethod · 0.95
handleDidCloseMethod · 0.95
handleDidSaveMethod · 0.95

Tested by 7

TestHandler_DidOpenFunction · 0.64
TestHandler_DidChangeFunction · 0.64
BenchmarkHandler_DidOpenFunction · 0.64
openDocFunction · 0.64
TestHandler_DidCloseFunction · 0.64
TestHandler_DidSaveFunction · 0.64