File tree Expand file tree Collapse file tree 2 files changed +2
-16
lines changed
src/PowerShellEditorServices/Services/PowerShellContext Expand file tree Collapse file tree 2 files changed +2
-16
lines changed Original file line number Diff line number Diff line change @@ -597,7 +597,7 @@ public async Task<IEnumerable<TResult>> ExecuteCommandAsync<TResult>(
597
597
// cancelled prompt when it's called again.
598
598
if ( executionOptions . AddToHistory )
599
599
{
600
- this . PromptContext . AddToHistory ( executionOptions . InputString ?? psCommand . Commands [ 0 ] . CommandText ) ;
600
+ this . PromptContext . AddToHistory ( psCommand . Commands [ 0 ] . CommandText ) ;
601
601
}
602
602
603
603
bool hadErrors = false ;
@@ -685,9 +685,7 @@ public async Task<IEnumerable<TResult>> ExecuteCommandAsync<TResult>(
685
685
runspaceHandle = await this . GetRunspaceHandleAsync ( executionOptions . IsReadLine ) . ConfigureAwait ( false ) ;
686
686
if ( executionOptions . WriteInputToHost )
687
687
{
688
- this . WriteOutput (
689
- executionOptions . InputString ?? psCommand . Commands [ 0 ] . CommandText ,
690
- includeNewLine : true ) ;
688
+ this . WriteOutput ( psCommand . Commands [ 0 ] . CommandText , includeNewLine : true ) ;
691
689
}
692
690
693
691
if ( executionTarget == ExecutionTarget . Debugger )
Original file line number Diff line number Diff line change @@ -46,18 +46,6 @@ internal class ExecutionOptions
46
46
/// </summary>
47
47
public bool WriteInputToHost { get ; set ; }
48
48
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
-
61
49
/// <summary>
62
50
/// Gets or sets a value indicating whether the command to
63
51
/// be executed is a console input prompt, such as the
You can’t perform that action at this time.
0 commit comments