From fda75a5f00d64b1431273dc1911d7cc049f9a12c Mon Sep 17 00:00:00 2001 From: Tyler Leonhardt Date: Mon, 23 Mar 2020 17:40:08 -0700 Subject: [PATCH] codacy --- .../Services/PowerShellContext/Handlers/GetCommandHandler.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PowerShellEditorServices/Services/PowerShellContext/Handlers/GetCommandHandler.cs b/src/PowerShellEditorServices/Services/PowerShellContext/Handlers/GetCommandHandler.cs index 4886f54c3d..9d38b9c0d3 100644 --- a/src/PowerShellEditorServices/Services/PowerShellContext/Handlers/GetCommandHandler.cs +++ b/src/PowerShellEditorServices/Services/PowerShellContext/Handlers/GetCommandHandler.cs @@ -75,11 +75,11 @@ public async Task> Handle(GetCommandParams request, Cance _logger.LogDebug("Old version of PackageManagement detected. Attempting to update."); var takeActionText = "Yes"; - MessageActionItem messageAction = await _languageServer.Window.ShowMessage(new ShowMessageRequestParams() + MessageActionItem messageAction = await _languageServer.Window.ShowMessage(new ShowMessageRequestParams { Message = "You have a version of PackageManagement that causes issues with the PowerShell extension. Would you like to update PackageManagement (You will need to restart the PowerShell extension after)?", Type = MessageType.Warning, - Actions = new MessageActionItem[] + Actions = new [] { new MessageActionItem {