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 {