I’m trying to make PowerShell extension using PowerShell Editor Services and implement language support and the debugger.
By making a prototype I found that Nova’s Language Client throws an error when receiving custom notifications that doesn’t contains params key in it and doesn’t hit onNotification(method, callback)
for processing:
PowerShell Editor Services have following notifications without params key:
{
"jsonrpc" : "2.0",
"method" : "powerShell\/sendKeyPress"
}
{
"jsonrpc" : "2.0",
"method" : "powerShell\/startDebugger"
}
{
"jsonrpc" : "2.0",
"method" : "powerShell\/sendKeyPress"
}
Those messages are send when debugger is in use to Language Client.
TL;DR;
There is LSP/DAP implementations that sends a custom notifications without params key and Nova cannot handle it