Skip to content

Commit 47c3a4e

Browse files
committed
Suppress Import-Module error in DscBreakpointCapability
Fixes PowerShell/vscode-powershell#575.
1 parent b6b4528 commit 47c3a4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PowerShellEditorServices/Session/Capabilities/DscBreakpointCapability.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public static DscBreakpointCapability CheckForCapability(
9393
powerShell.AddCommand("Import-Module");
9494
powerShell.AddArgument(@"C:\Program Files\DesiredStateConfiguration\1.0.0.0\Modules\PSDesiredStateConfiguration\PSDesiredStateConfiguration.psd1");
9595
powerShell.AddParameter("PassThru");
96-
powerShell.AddParameter("ErrorAction", "SilentlyContinue");
96+
powerShell.AddParameter("ErrorAction", "Ignore");
9797

9898
PSObject moduleInfo = null;
9999

0 commit comments

Comments
 (0)