You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Essentially it is per LSP spec to send a document position for { Line: 10, Column: 0 } in a file that has only 9 lines, if there is no newline at the end. We are currently working around this in our OmniSharp extension for formatting (the bug the above PR is fixing) but what that is essentially doing is putting some work in TypeScript, in a specific endpoint, to avoid our C# code crashing. We should just make the C# code more tolerant. Also the LSP spec specifically calls out this behaviour as being allowed.
The text was updated successfully, but these errors were encountered:
See #8669 (comment) and dotnet/roslyn#68081 for more context.
Essentially it is per LSP spec to send a document position for
{ Line: 10, Column: 0 }
in a file that has only 9 lines, if there is no newline at the end. We are currently working around this in our OmniSharp extension for formatting (the bug the above PR is fixing) but what that is essentially doing is putting some work in TypeScript, in a specific endpoint, to avoid our C# code crashing. We should just make the C# code more tolerant. Also the LSP spec specifically calls out this behaviour as being allowed.The text was updated successfully, but these errors were encountered: