32 references to RemoveMarkup
aspire (29)
Backchannel\ExtensionBackchannel.cs (3)
548
var choicesByFormattedValue = choicesList.ToDictionary(choice => StringUtils.
RemoveMarkup
(choiceFormatter(choice)), choice => choice);
578
var choicesByFormattedValue = choicesList.ToDictionary(choice => StringUtils.
RemoveMarkup
(choiceFormatter(choice)), choice => choice);
580
.Select(choice => StringUtils.
RemoveMarkup
(choiceFormatter(choice)))
Interaction\ConsoleInteractionService.cs (2)
598
var logMessage = allowMarkup ? StringUtils.
RemoveMarkup
(message) : message;
927
var availableChoices = string.Join(", ", choices.Select(c => StringUtils.
RemoveMarkup
(choiceFormatter(c))));
Interaction\ExtensionInteractionService.cs (21)
89
var result = _extensionTaskChannel.Writer.TryWrite(() => Backchannel.ShowStatusAsync(StringUtils.
RemoveMarkup
(statusText), _cancellationToken));
106
var result = _extensionTaskChannel.Writer.TryWrite(() => Backchannel.ShowStatusAsync(StringUtils.
RemoveMarkup
(initialStatusText), _cancellationToken));
115
var result = _extensionTaskChannel.Writer.TryWrite(() => Backchannel.ShowStatusAsync(StringUtils.
RemoveMarkup
(statusText), _cancellationToken));
130
var result = _extensionTaskChannel.Writer.TryWrite(() => Backchannel.ShowStatusAsync(StringUtils.
RemoveMarkup
(statusText), _cancellationToken));
173
result = await Backchannel.PromptForSecretStringAsync(StringUtils.
RemoveMarkup
(promptText), validator, required, _cancellationToken).ConfigureAwait(false);
183
result = await Backchannel.PromptForStringAsync(StringUtils.
RemoveMarkup
(promptText), binding?.DefaultValue, validator, required, _cancellationToken).ConfigureAwait(false);
225
var result = await Backchannel.PromptForFilePathAsync(StringUtils.
RemoveMarkup
(promptText), binding?.DefaultValue, directory, _cancellationToken).ConfigureAwait(false);
287
var result = await Backchannel.ConfirmAsync(StringUtils.
RemoveMarkup
(promptText), binding?.DefaultValue ?? false, _cancellationToken).ConfigureAwait(false);
335
var result = await Backchannel.PromptForSelectionAsync(StringUtils.
RemoveMarkup
(promptText), choices, choiceFormatter, _cancellationToken).ConfigureAwait(false);
374
var result = await Backchannel.PromptForSelectionsAsync(StringUtils.
RemoveMarkup
(promptText), choices, choiceFormatter, preSelected, _cancellationToken).ConfigureAwait(false);
412
await Backchannel.DisplayErrorAsync(allowMarkup ? StringUtils.
RemoveMarkup
(errorMessage) : errorMessage, _cancellationToken);
423
await Backchannel.DisplayErrorAsync(allowMarkup ? StringUtils.
RemoveMarkup
(errorMessage) : errorMessage, materializedActions, _cancellationToken);
433
await Backchannel.DisplayMessageAsync(emoji.Name, StringUtils.
RemoveMarkup
(message), _cancellationToken);
444
await Backchannel.DisplayMessageAsync(emoji.Name, StringUtils.
RemoveMarkup
(message), materializedActions, _cancellationToken);
537
var result = _extensionTaskChannel.Writer.TryWrite(() => Backchannel.DisplaySuccessAsync(StringUtils.
RemoveMarkup
(message), _cancellationToken));
544
var result = _extensionTaskChannel.Writer.TryWrite(() => Backchannel.DisplaySubtleMessageAsync(StringUtils.
RemoveMarkup
(message), _cancellationToken));
567
StringUtils.
RemoveMarkup
(line.Line))), _cancellationToken));
634
var result = _extensionTaskChannel.Writer.TryWrite(() => Backchannel.LogMessageAsync(LogLevel.Information, StringUtils.
RemoveMarkup
(markup), _cancellationToken));
656
var result = _extensionTaskChannel.Writer.TryWrite(() => Backchannel.LogMessageAsync(logLevel, StringUtils.
RemoveMarkup
(message), _cancellationToken));
688
var result = _extensionTaskChannel.Writer.TryWrite(() => Backchannel.WriteDebugSessionMessageAsync(StringUtils.
RemoveMarkup
(message), stdout, textStyle, _cancellationToken));
713
await Backchannel.DisplayErrorAsync(StringUtils.
RemoveMarkup
(ex.Message), _cancellationToken);
Utils\ConsoleActivityLogger.cs (2)
466
var nameWidth = Math.Max(timelineLabel.Length, orderedRecords.Max(r => StringUtils.
RemoveMarkup
(GetIndentedDisplayName(r)).Length));
493
var plainDisplayName = StringUtils.
RemoveMarkup
(displayName);
Utils\Markdown\MarkdownToSpectreConverter.Markup.cs (1)
189
.Select(static row => row.Select(static cell => StringUtils.
RemoveMarkup
(cell)).ToList())
Aspire.Cli.Tests (3)
TestServices\TestExtensionBackchannel.cs (3)
197
var choicesByFormattedValue = choices.ToDictionary(choice => StringUtils.
RemoveMarkup
(choiceFormatter(choice)));
217
var choicesByFormattedValue = choicesList.ToDictionary(choice => StringUtils.
RemoveMarkup
(choiceFormatter(choice)), choice => choice);
219
.Select(choice => StringUtils.
RemoveMarkup
(choiceFormatter(choice)))