I am using the roslyn API and ace text editor to create an IDE web environment.
When I hang over the data, I need to find the symbol in this place. This works in some situations by invoking the roslyn method:
var symbol = SymbolFinder.FindSymbolAtPosition(semanticModel, offset, dotNetCodeManager.Solution.Workspace, cancellationToken);
Example situations where this works when I hover over the word βtableβ in the example below.
var SchemaName = table.Schema.Name;
However, when I hover over the word Schema or Name SymbolFinder.FindSymbolAtPosition, it returns null.
However: If I go to the end of the word table and ask for autocomplete information, I get the Schema in the list of recommended characters
var result = Recommender.GetRecommendedSymbolsAtPosition(semanticModel, offset, solution.Workspace);
How to get roslyn to search for characters that are properties, methods or fields of objects?
source share