Open kit494way opened 3 years ago
I have the same issue, every capability is registered twice.
It has consequences on the client side:
Same issue here, any news on this one?
Same issue here.
Additionally, the omnisharp server sends diagnostics to the client even though it has not send initialized
yet. Might be also related to this problem.
This is still an issue in omnisharp v1.39.11
below is the workaround
const existingRegistrations = new Set<string>()
...
if (message.method === 'client/registerCapability'){
message.params.registrations = message.params.registrations.filter((registration:any) => {
return !existingRegistrations.has(registration.id)
})
message.params.registrations.forEach((registration:any) => {
existingRegistrations.add(registration.id)
})
}
It seems like
client/registerCapability
requests with same id are sent multiple times from v1.37.7.There is a warning from OmniSharp which is not output in v1.37.6.
When I tried to use omnisharp-roslyn from neovim with coc-omnisharp, I have the issue https://github.com/coc-extensions/coc-omnisharp/issues/53 . I think duplicate
client/registerCapability
requests is the one of the causes of the issue.