I'm having inconsistencies refreshing my outline (using Language Server Protocol). I want to refresh my outline information on every change on the document, but I don't find a way to do so.
As the DocumentSymbol is a request made by the client, I assume the change must be made client-side (in my VS Code plugin).
I'm using a modified version of the plugin offered by Microsoft [https://code.visualstudio.com/api/language-extensions/language-server-extension-guide] for the client side, and LSP4J server side.
Is there a way to bind calls to events?