I am using the roslyn API and ace text editor to create a web IDE.
When i hover over data i need it to find the symbol at the given location. This works in some situations by calling the roslyn method:
var symbol = SymbolFinder.FindSymbolAtPosition(semanticModel, offset, dotNetCodeManager.Solution.Workspace, cancellationToken);
An example of the situations where this works is when i hover my mouse over the word "table" in the below example.
var SchemaName = table.Schema.Name;
However when i hover my mouse over the word Schema or Name SymbolFinder.FindSymbolAtPosition returns null.
However: If I go to the end of the word table and ask for autocomplete information I do get Schema in the list of recommended symbols
var result = Recommender.GetRecommendedSymbolsAtPosition(semanticModel, offset, solution.Workspace);
How do I get roslyn to find symbols that are properties, methods, or fields of objects?