Skip to content

Commit 4ce2a2c

Browse files
feedback
1 parent 4e3daf1 commit 4ce2a2c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/PowerShellEditorServices/Services/PowerShellContext/Session/Host/EditorServicesPSHostUserInterface.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ private async Task WritePromptStringToHostAsync(CancellationToken cancellationTo
729729
{
730730
}
731731

732-
PSCommand promptCommand = new PSCommand().AddScript("prompt", useLocalScope: true);
732+
PSCommand promptCommand = new PSCommand().AddCommand("prompt");
733733

734734
cancellationToken.ThrowIfCancellationRequested();
735735
string promptString =

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ internal class PSReadLinePromptContext : IPromptContext
3636
Sort-Object -Descending Version |
3737
Select-Object -First 1
3838
if (-not $module) {{
39-
Import-Module {_psReadLineModulePath}
39+
Import-Module '{_psReadLineModulePath.Replace("'", "''")}'
4040
return [Microsoft.PowerShell.PSConsoleReadLine]
4141
}}
4242

0 commit comments

Comments
 (0)