Version Used:
Microsoft (R) Visual C# Interactive Compiler version 3.2.0-beta2-19303-01 ()
VS2019 16.2.0 Preview 2.0
Steps to Reproduce:
Open C# Interactive in VS2019
Press the below code: new int[0] { }
Press an Enter after the ]
Expected Behavior:
No Error happen
Actual Behavior:
Gold bar with the below stacktrace(only show once before restart)
System.ArgumentNullException: Value cannot be null. Parameter name: point
at Microsoft.VisualStudio.Text.Projection.Implementation.BufferGraph.CheckedMapUpToBuffer(SnapshotPoint point, PointTrackingMode trackingMode, Predicate`1 match, PositionAffinity affinity)
at Microsoft.VisualStudio.Text.Projection.Implementation.BufferGraph.MapUpToBuffer(SnapshotPoint point, PointTrackingMode trackingMode, PositionAffinity affinity, ITextBuffer targetBuffer)
at Microsoft.VisualStudio.Text.Projection.Implementation.BufferGraph.MapUpToSnapshot(SnapshotPoint position, PointTrackingMode trackingMode, PositionAffinity affinity, ITextSnapshot targetSnapshot)
at Microsoft.CodeAnalysis.Editor.Implementation.Formatting.Indentation.AbstractSmartTokenFormatterCommandHandler.CanHandleOurselves(ITextView view, ITextBuffer subjectBuffer)
at Microsoft.CodeAnalysis.Editor.Implementation.Formatting.Indentation.AbstractSmartTokenFormatterCommandHandler.ExecuteCommandWorker(ReturnKeyCommandArgs args, CancellationToken cancellationToken)
at Microsoft.CodeAnalysis.Editor.Implementation.Formatting.Indentation.AbstractSmartTokenFormatterCommandHandler.ExecuteCommand(ReturnKeyCommandArgs args, Action nextHandler, CommandExecutionContext context)
at Microsoft.VisualStudio.Commanding.CommandHandlerExtensions.ExecuteCommand[T](ICommandHandler commandHandler, T args, Action nextCommandHandler, CommandExecutionContext executionContext)
at Microsoft.VisualStudio.UI.Text.Commanding.Implementation.EditorCommandHandlerService.<>c__DisplayClass13_1`1.<Execute>b__1()
at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.CallExtensionPoint(Object errorSource, Action call, Predicate`1 exceptionFilter)
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)
Version Used: Microsoft (R) Visual C# Interactive Compiler version 3.2.0-beta2-19303-01 () VS2019 16.2.0 Preview 2.0
Steps to Reproduce:
C# Interactive
in VS2019new int[0] { }
Enter
after the]
Expected Behavior: No Error happen
Actual Behavior: Gold bar with the below stacktrace(only show once before restart)