When using Roslyn in the context of a Visual Studio extension, every SyntaxNode object has a location defined in it (type Microsoft.CodeAnalysis.Location).
Is it somehow possible to let Visual Studio navigate to a specific location in the UI?
The EditorFeatures package has some extension methods to retrieve the TextBuffer and Snapshot from the location, but it's still quite some manual work to open the document when needed, etcetera. I have the feeling there is somewhere a method that can do that for me.
https://github.com/dotnet/roslyn/blob/main/src/EditorFeatures/Text/Extensions.cs