try icon indicating copy to clipboard operation
try copied to clipboard

Link to docs doesn't work for Span<byte>

Open eerhardt opened this issue 6 years ago • 2 comments

Describe the bug

There's an awesome feature that when you display a type, it outputs the type's name and a hyperlink to the docs.

However, if you display the type Span<byte>, the URL isn't correct.

Did this error occur while using dotnet try or online?

  • [ ] dotnet-try
  • [x] .NET Jupyter Notebook
  • [ ] online

What kind of error was it?

  • [ ] User Interface (UI): For example the output never displayed
  • [ ] Service Error: For example "The service is temporarily unavailable. We are working on it"
  • [x] Other:

Screenshots

image

clicking that hyperlink brings me to:

https://docs.microsoft.com/en-us/dotnet/api/System.Span%601%5B%5BSystem.Byte,%20System.Private.CoreLib,%20Version=4.0.0.0,%20Culture=neutral,%20PublicKeyToken=7cec85d7bea7798e%5D%5D?view=netcore-3.0

Please complete the following:

  • OS
    • [x] Windows 10
    • [ ] macOS
    • [ ] Linux (Please specify distro)
    • [ ] iOS
    • [ ] Android
  • Browser
    • [x] Chrome
    • [ ] Edge
    • [ ] Safari

eerhardt avatar Nov 22 '19 19:11 eerhardt

This feature is an example of some of the ideas we have for using custom formatters for specific types. @BillWagner and I discussed expanding this to query docs.microsoft.com in order to more accurately locate the correct documentation.

jonsequitur avatar Nov 22 '19 23:11 jonsequitur

It is an awesome feature BTW. Looking forward to more innovation in this space.

eerhardt avatar Nov 22 '19 23:11 eerhardt