This project is read-only.

Peek doesn't translate line offsets for projection buffers


If I hit Alt+F12 on any local variable defined within a Razor CSHTML file, the peek window will take the line number within the internal C# buffer, and show that line number in the outer CSHTML, showing the wrong line.

You need to translate line numbers into the outer projection buffer in this scenario.
CreateDocumentPeekResult() looks like the right place to do this; it should probably try to query the workspace for the text container and check if it's a projection buffer.