diff --git a/src/PowerShellEditorServices.Protocol/LanguageServer/ShowHelpRequest.cs b/src/PowerShellEditorServices.Protocol/LanguageServer/ShowHelpRequest.cs index ae2922ebd..0d73074d2 100644 --- a/src/PowerShellEditorServices.Protocol/LanguageServer/ShowHelpRequest.cs +++ b/src/PowerShellEditorServices.Protocol/LanguageServer/ShowHelpRequest.cs @@ -9,14 +9,6 @@ namespace Microsoft.PowerShell.EditorServices.Protocol.LanguageServer { - [Obsolete("This class is deprecated. Use ShowHelpRequest instead.")] - public class ShowOnlineHelpRequest - { - public static readonly - RequestType Type = - RequestType.Create("powerShell/showOnlineHelp"); - } - public class ShowHelpRequest { public static readonly diff --git a/src/PowerShellEditorServices.Protocol/Server/LanguageServer.cs b/src/PowerShellEditorServices.Protocol/Server/LanguageServer.cs index 0d1e02e27..2ae9cc3d4 100644 --- a/src/PowerShellEditorServices.Protocol/Server/LanguageServer.cs +++ b/src/PowerShellEditorServices.Protocol/Server/LanguageServer.cs @@ -132,7 +132,6 @@ public void Start() DocumentRangeFormattingRequest.Type, this.HandleDocumentRangeFormattingRequest); - this.messageHandlers.SetRequestHandler(ShowOnlineHelpRequest.Type, this.HandleShowOnlineHelpRequest); this.messageHandlers.SetRequestHandler(ShowHelpRequest.Type, this.HandleShowHelpRequest); this.messageHandlers.SetRequestHandler(ExpandAliasRequest.Type, this.HandleExpandAliasRequest); @@ -291,19 +290,6 @@ protected async Task HandleShowHelpRequest( await requestContext.SendResult(null); } - protected async Task HandleShowOnlineHelpRequest( - string helpParams, - RequestContext requestContext - ) - { - PSCommand commandDeprecated = new PSCommand() - .AddCommand("Microsoft.PowerShell.Utility\\Write-Verbose") - .AddParameter("Message", "'powerShell/showOnlineHelp' has been deprecated. Use 'powerShell/showHelp' instead."); - - await editorSession.PowerShellContext.ExecuteCommand(commandDeprecated, sendOutputToHost: true); - await this.HandleShowHelpRequest(helpParams, requestContext); - } - private async Task HandleSetPSSARulesRequest( object param, RequestContext requestContext)