- I have a working VS extension in VS 2019
- I trigger events when mousing over text in the editor (in this case, C#)
- My extension receives an EventArgs (actually MouseHoverEventArgs), which I can use to access the textPosition, and can get the line I'm mousing over as text
Question: How do I get this with syntactic context? i.e. a set of tokens for the line / area I am mousing over, in a way that I can generate the fully scoped name of the type? i.e. how do I hook into the syntactic content of the editor's live evaluation of the syntax of the file?
I'd want something like:
private string GetTypeOfMousedOverToken(EventArgs e)