Skip to content

Commit c6bd091

Browse files
corbobrjmholt
authored andcommitted
Removed ShowOnlineHelp Message (#775)
1 parent 6427f9f commit c6bd091

File tree

2 files changed

+0
-22
lines changed

2 files changed

+0
-22
lines changed

Diff for: src/PowerShellEditorServices.Protocol/LanguageServer/ShowHelpRequest.cs

-8
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,6 @@
99
namespace Microsoft.PowerShell.EditorServices.Protocol.LanguageServer
1010
{
1111

12-
[Obsolete("This class is deprecated. Use ShowHelpRequest instead.")]
13-
public class ShowOnlineHelpRequest
14-
{
15-
public static readonly
16-
RequestType<string, object, object, object> Type =
17-
RequestType<string, object, object, object>.Create("powerShell/showOnlineHelp");
18-
}
19-
2012
public class ShowHelpRequest
2113
{
2214
public static readonly

Diff for: src/PowerShellEditorServices.Protocol/Server/LanguageServer.cs

-14
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,6 @@ public void Start()
132132
DocumentRangeFormattingRequest.Type,
133133
this.HandleDocumentRangeFormattingRequest);
134134

135-
this.messageHandlers.SetRequestHandler(ShowOnlineHelpRequest.Type, this.HandleShowOnlineHelpRequest);
136135
this.messageHandlers.SetRequestHandler(ShowHelpRequest.Type, this.HandleShowHelpRequest);
137136

138137
this.messageHandlers.SetRequestHandler(ExpandAliasRequest.Type, this.HandleExpandAliasRequest);
@@ -291,19 +290,6 @@ protected async Task HandleShowHelpRequest(
291290
await requestContext.SendResult(null);
292291
}
293292

294-
protected async Task HandleShowOnlineHelpRequest(
295-
string helpParams,
296-
RequestContext<object> requestContext
297-
)
298-
{
299-
PSCommand commandDeprecated = new PSCommand()
300-
.AddCommand("Microsoft.PowerShell.Utility\\Write-Verbose")
301-
.AddParameter("Message", "'powerShell/showOnlineHelp' has been deprecated. Use 'powerShell/showHelp' instead.");
302-
303-
await editorSession.PowerShellContext.ExecuteCommand<PSObject>(commandDeprecated, sendOutputToHost: true);
304-
await this.HandleShowHelpRequest(helpParams, requestContext);
305-
}
306-
307293
private async Task HandleSetPSSARulesRequest(
308294
object param,
309295
RequestContext<object> requestContext)

0 commit comments

Comments
 (0)