How do you bind a Request to an Event in VS Code - LSP? (Request DocumentSymbol on Change text)

时间:2019-03-19 14:48:02

标签: language-server-protocol

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?

0 个答案:

没有答案