Skip to content

Go To Base on a member with a single base in metadata fails to navigate #58964

@davidwengier

Description

@davidwengier

Version Used: Visual Studio 2022 Preview 2

Steps to Reproduce:

  1. Create a C# library with the following:
public class C
{
   public override string ToString()
   {
      return "asdf";
   }
}
  1. 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

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions