Found one of the possible causes of the Remote Invocation Exception we something see:
Repro:
Type "@if", press Tab.
Required property 'TextDocument' not found in JSON. Path ''.
at StreamJsonRpc.JsonRpc.<InvokeCoreAsync>d__154`1.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
at Microsoft.AspNetCore.Razor.LanguageServer.ClientConnection.<SendRequestAsync>d__3`2.MoveNext() in D:\Code\alt-razor\src\Razor\src\Microsoft.AspNetCore.Razor.LanguageServer\ClientConnection.cs:line 26
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
at Microsoft.AspNetCore.Razor.LanguageServer.InlineCompletion.InlineCompletionEndpoint.<HandleRequestAsync>d__10.MoveNext() in D:\Code\alt-razor\src\Razor\src\Microsoft.AspNetCore.Razor.LanguageServer\InlineCompletion\InlineCompletionEndPoint.cs:line 104
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
at Microsoft.CommonLanguageServerProtocol.Framework.QueueItem`3.<StartRequestAsync>d__20.MoveNext() in D:\NugetCache\microsoft.commonlanguageserverprotocol.framework\4.11.0-1.24214.4\contentFiles\cs\netstandard2.0\QueueItem.cs:line 150
Found one of the possible causes of the Remote Invocation Exception we something see:
Repro: Type "@if", press Tab.