From 47c3a4e0d074da4e0a402df5dda51a7d95d3f7d8 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Fri, 17 Mar 2017 17:44:15 -0700 Subject: [PATCH] Suppress Import-Module error in DscBreakpointCapability Fixes PowerShell/vscode-powershell#575. --- .../Session/Capabilities/DscBreakpointCapability.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PowerShellEditorServices/Session/Capabilities/DscBreakpointCapability.cs b/src/PowerShellEditorServices/Session/Capabilities/DscBreakpointCapability.cs index b766ed0d6..17365b218 100644 --- a/src/PowerShellEditorServices/Session/Capabilities/DscBreakpointCapability.cs +++ b/src/PowerShellEditorServices/Session/Capabilities/DscBreakpointCapability.cs @@ -93,7 +93,7 @@ public static DscBreakpointCapability CheckForCapability( powerShell.AddCommand("Import-Module"); powerShell.AddArgument(@"C:\Program Files\DesiredStateConfiguration\1.0.0.0\Modules\PSDesiredStateConfiguration\PSDesiredStateConfiguration.psd1"); powerShell.AddParameter("PassThru"); - powerShell.AddParameter("ErrorAction", "SilentlyContinue"); + powerShell.AddParameter("ErrorAction", "Ignore"); PSObject moduleInfo = null;