Skip to content

Commit b276382

Browse files
authored
Temporarily add back the API that is depended by PSES to avoid breaking changes (#2533)
1 parent c614b3d commit b276382

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

PSReadLine/ReadLine.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,15 @@ public static string ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsi
310310
return ReadLine(runspace, engineIntrinsics, _defaultCancellationToken, lastRunStatus);
311311
}
312312

313+
/// <summary>
314+
/// Temporary entry point for PowerShell VSCode extension to avoid breaking the existing PSES.
315+
/// PSES will need to move away from this entry point to actually provide information about 'lastRunStatus'.
316+
/// </summary>
317+
public static string ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics, CancellationToken cancellationToken)
318+
{
319+
return ReadLine(runspace, engineIntrinsics, _defaultCancellationToken, lastRunStatus: null);
320+
}
321+
313322
/// <summary>
314323
/// Entry point - called by custom PSHost implementations that require the
315324
/// ability to cancel ReadLine.

0 commit comments

Comments
 (0)