Version Used: Visual Studio 2022 Preview 2
Steps to Reproduce:
- Create a C# library with the following:
public class C
{
public override string ToString()
{
return "asdf";
}
}
- Right click on
ToString and select Go To Base
Expected Behavior:
Navigation to metadata
Actual Behavior:
Nothing. Internally an exception is swalled:
System.ArgumentException
HResult=0x80070057
Message=bufferAdapter is not a VsTextDocData
Source=Microsoft.VisualStudio.Editor.Implementation
StackTrace:
at Microsoft.VisualStudio.Editor.Implementation.VsEditorAdaptersFactoryService.GetAdapter(IVsTextBuffer bufferAdapter)
at Microsoft.VisualStudio.Editor.Implementation.VsEditorAdaptersFactoryService.GetDataBuffer(IVsTextBuffer bufferAdapter)
at Microsoft.VisualStudio.LanguageServices.Implementation.VisualStudioSymbolNavigationService.TryNavigateToSymbol(ISymbol symbol, Project project, OptionSet options, CancellationToken cancellationToken) in D:\Code\roslyn\src\VisualStudio\Core\Def\Implementation\Workspace\VisualStudioSymbolNavigationService.cs:line 136
Version Used: Visual Studio 2022 Preview 2
Steps to Reproduce:
ToStringand select Go To BaseExpected Behavior:
Navigation to metadata
Actual Behavior:
Nothing. Internally an exception is swalled: