Skip to content

Commit 4004236

Browse files
we don't need this right now
1 parent d9fef9c commit 4004236

File tree

2 files changed

+2
-16
lines changed

2 files changed

+2
-16
lines changed

src/PowerShellEditorServices/Services/PowerShellContext/PowerShellContextService.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ public async Task<IEnumerable<TResult>> ExecuteCommandAsync<TResult>(
597597
// cancelled prompt when it's called again.
598598
if (executionOptions.AddToHistory)
599599
{
600-
this.PromptContext.AddToHistory(executionOptions.InputString ?? psCommand.Commands[0].CommandText);
600+
this.PromptContext.AddToHistory(psCommand.Commands[0].CommandText);
601601
}
602602

603603
bool hadErrors = false;
@@ -685,9 +685,7 @@ public async Task<IEnumerable<TResult>> ExecuteCommandAsync<TResult>(
685685
runspaceHandle = await this.GetRunspaceHandleAsync(executionOptions.IsReadLine).ConfigureAwait(false);
686686
if (executionOptions.WriteInputToHost)
687687
{
688-
this.WriteOutput(
689-
executionOptions.InputString ?? psCommand.Commands[0].CommandText,
690-
includeNewLine: true);
688+
this.WriteOutput(psCommand.Commands[0].CommandText, includeNewLine: true);
691689
}
692690

693691
if (executionTarget == ExecutionTarget.Debugger)

src/PowerShellEditorServices/Services/PowerShellContext/Session/ExecutionOptions.cs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,6 @@ internal class ExecutionOptions
4646
/// </summary>
4747
public bool WriteInputToHost { get; set; }
4848

49-
/// <summary>
50-
/// If this is set, we will use this string for history and writing to the host
51-
/// instead of grabbing the command from the PSCommand.
52-
/// </summary>
53-
public string InputString { get; set; }
54-
55-
/// <summary>
56-
/// If this is set, we will use this string for history and writing to the host
57-
/// instead of grabbing the command from the PSCommand.
58-
/// </summary>
59-
public bool UseNewScope { get; set; }
60-
6149
/// <summary>
6250
/// Gets or sets a value indicating whether the command to
6351
/// be executed is a console input prompt, such as the

0 commit comments

Comments
 (0)