fix: server: ignore unknown implementation-dependent notifications
Fixes #383
This commit is contained in:
parent
898222686c
commit
d75d7aa0d5
1 changed files with 3 additions and 1 deletions
|
|
@ -416,7 +416,9 @@ section MessageHandling
|
|||
/- NOTE: textDocument/didChange is handled in the main loop. -/
|
||||
| "textDocument/didClose" => handle DidCloseTextDocumentParams handleDidClose
|
||||
| "$/cancelRequest" => handle CancelParams handleCancelRequest
|
||||
| _ => (←read).hLog.putStrLn s!"Got unsupported notification: {method}"
|
||||
| _ =>
|
||||
if !"$/".isPrefixOf method then -- implementation-dependent notifications can be safely ignored
|
||||
(←read).hLog.putStrLn s!"Got unsupported notification: {method}"
|
||||
end MessageHandling
|
||||
|
||||
section MainLoop
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue