2 instantiations of InteractionMessageAction
aspire (2)
Backchannel\ExtensionBackchannelDataTypes.cs (2)
94return new(displayName, command, filePath: null); 102return new(displayName, command: null, filePath);
36 references to InteractionMessageAction
aspire (14)
Backchannel\BackchannelJsonSerializerContext.cs (1)
41[JsonSerializable(typeof(InteractionMessageAction[]))]
Backchannel\ExtensionBackchannel.cs (4)
25Task DisplayMessageAsync(string emojiName, string message, InteractionMessageAction[] actions, CancellationToken cancellationToken); 29Task DisplayErrorAsync(string error, InteractionMessageAction[] actions, CancellationToken cancellationToken); 364public async Task DisplayMessageAsync(string emojiName, string message, InteractionMessageAction[] actions, CancellationToken cancellationToken) 428public async Task DisplayErrorAsync(string error, InteractionMessageAction[] actions, CancellationToken cancellationToken)
Backchannel\ExtensionBackchannelDataTypes.cs (2)
89public static InteractionMessageAction ExecuteCommand(string displayName, string command) 97public static InteractionMessageAction OpenFile(string displayName, string filePath)
Interaction\ExtensionInteractionService.cs (7)
21void DisplayError(string errorMessage, IReadOnlyList<InteractionMessageAction> actions, bool allowMarkup = false); 22void DisplayMessage(KnownEmoji emoji, string message, IReadOnlyList<InteractionMessageAction> actions, bool allowMarkup = false, ConsoleOutput? consoleOverride = null); 410public void DisplayError(string errorMessage, IReadOnlyList<InteractionMessageAction> actions, bool allowMarkup = false) 431public void DisplayMessage(KnownEmoji emoji, string message, IReadOnlyList<InteractionMessageAction> actions, bool allowMarkup = false, ConsoleOutput? consoleOverride = null) 485var diagnosticLogs = new List<(KnownEmoji Emoji, string Message, InteractionMessageAction Action)> 493InteractionMessageAction.OpenFile(InteractionServiceStrings.OpenCliLog, cliLogFilePath)) 504InteractionMessageAction.OpenFile(InteractionServiceStrings.OpenAppHostLog, appHostCliLogFilePath)));
Aspire.Cli.Tests (22)
Backchannel\BackchannelJsonSerializerContextTests.cs (3)
16InteractionMessageAction[] actions = 18InteractionMessageAction.ExecuteCommand("Retry", "aspire-vscode.retry"), 19InteractionMessageAction.OpenFile("Open CLI Log", @"C:\logs\aspire.cli.log")
Interaction\ExtensionInteractionServiceTests.cs (9)
69IReadOnlyList<InteractionMessageAction>? capturedActions = null; 83InteractionMessageAction.OpenFile("Open CLI Log", logFilePath), 84InteractionMessageAction.ExecuteCommand("Retry", "aspire-vscode.retry") 89Assert.IsAssignableFrom<IReadOnlyList<InteractionMessageAction>>(capturedActions), 111IReadOnlyList<InteractionMessageAction>? capturedActions = null; 140Assert.IsAssignableFrom<IReadOnlyList<InteractionMessageAction>>(capturedActions), 160IReadOnlyList<InteractionMessageAction>? capturedActions = null; 182var action = Assert.Single(Assert.IsAssignableFrom<IReadOnlyList<InteractionMessageAction>>(capturedActions));
Projects\ExtensionGuestLauncherTests.cs (2)
204public void DisplayError(string errorMessage, IReadOnlyList<InteractionMessageAction> actions, bool allowMarkup = false) => throw new NotImplementedException(); 205public void DisplayMessage(KnownEmoji emoji, string message, IReadOnlyList<InteractionMessageAction> actions, bool allowMarkup = false, ConsoleOutput? consoleOverride = null) => throw new NotImplementedException();
TestServices\TestExtensionBackchannel.cs (4)
18public Func<string, string, IReadOnlyList<InteractionMessageAction>, Task>? DisplayMessageWithActionsAsyncCallback { get; set; } 28public Func<string, IReadOnlyList<InteractionMessageAction>, Task>? DisplayErrorWithActionsAsyncCallback { get; set; } 106public Task DisplayMessageAsync(string emojiName, string message, InteractionMessageAction[] actions, CancellationToken cancellationToken) 130public Task DisplayErrorAsync(string errorMessage, InteractionMessageAction[] actions, CancellationToken cancellationToken)
TestServices\TestExtensionInteractionService.cs (4)
38public List<(string ErrorMessage, IReadOnlyList<InteractionMessageAction> Actions)> DisplayedErrorsWithActions { get; } = []; 40public List<(KnownEmoji Emoji, string Message, IReadOnlyList<InteractionMessageAction> Actions, ConsoleOutput? ConsoleOverride)> DisplayedMessagesWithActions { get; } = []; 131public void DisplayError(string errorMessage, IReadOnlyList<InteractionMessageAction> actions, bool allowMarkup = false) 148public void DisplayMessage(KnownEmoji emoji, string message, IReadOnlyList<InteractionMessageAction> actions, bool allowMarkup = false, ConsoleOutput? consoleOverride = null)