This repository was archived by the owner on Feb 22, 2020. It is now read-only.
This repository was archived by the owner on Feb 22, 2020. It is now read-only.
withConnection triggers additional (undesired) registrations #41
Closed
Description
Through a string of calls through connect
, initializeConnection
, and registering capabilities, withConnection
ends up registering hover/def/ref providers on top of what was already registered.
This combined with the fact that the Sourcegraph app calls all of the providers whenever the set changes caused an infinite loop in the Go extension while I was integrating lsp-client.
I see a couple ways to solve this:
- Do not call all providers when the set changes (it may be high time to take another stab at https://github.com/sourcegraph/sourcegraph/issues/2962#issuecomment-478389985)
- Skip registering providers when the connection is initiated by
withConnection
Metadata
Metadata
Assignees
Labels
No labels