Skip to content

Commit

Permalink
Add some debug code to track nondeterministic test failures on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mhutch committed Sep 25, 2024
1 parent 1f8e22d commit 361e293
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Editor.Tests/Extensions/CommandServiceExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public static void Type (this IEditorCommandHandlerService commandService, strin
Enter (commandService);
break;
default:
System.Console.WriteLine($"Typing '{c}'");
commandService.CheckAndExecute ((v, b) => new TypeCharCommandArgs (v, b, c));
break;
}
Expand Down Expand Up @@ -50,7 +51,10 @@ public static void CheckAndExecute<T> (
if (textView != null) {
if (textView.Properties.TryGetProperty (typeof (IAsyncCompletionSession), out IAsyncCompletionSession session)) {
session.GetComputedItems (CancellationToken.None);
Console.WriteLine("Session open");
}
} else{
Console.WriteLine("Session not open");
}
}

Expand Down

0 comments on commit 361e293

Please sign in to comment.