Skip to content

Commit 361e293

Browse files
committed
Add some debug code to track nondeterministic test failures on CI
1 parent 1f8e22d commit 361e293

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Editor.Tests/Extensions/CommandServiceExtensions.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ public static void Type (this IEditorCommandHandlerService commandService, strin
2222
Enter (commandService);
2323
break;
2424
default:
25+
System.Console.WriteLine($"Typing '{c}'");
2526
commandService.CheckAndExecute ((v, b) => new TypeCharCommandArgs (v, b, c));
2627
break;
2728
}
@@ -50,7 +51,10 @@ public static void CheckAndExecute<T> (
5051
if (textView != null) {
5152
if (textView.Properties.TryGetProperty (typeof (IAsyncCompletionSession), out IAsyncCompletionSession session)) {
5253
session.GetComputedItems (CancellationToken.None);
54+
Console.WriteLine("Session open");
5355
}
56+
} else{
57+
Console.WriteLine("Session not open");
5458
}
5559
}
5660

0 commit comments

Comments
 (0)