Skip to content

Commit 00f2805

Browse files
corbobrjmholt
authored andcommitted
Removed ShowOnlineHelp Message (PowerShell#775)
1 parent 575ae89 commit 00f2805

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
@@ -136,7 +136,6 @@ public void Start()
136136
this.HandleDocumentRangeFormattingRequest);
137137
this.messageHandlers.SetRequestHandler(FoldingRangeRequest.Type, this.HandleFoldingRangeRequestAsync);
138138

139-
this.messageHandlers.SetRequestHandler(ShowOnlineHelpRequest.Type, this.HandleShowOnlineHelpRequest);
140139
this.messageHandlers.SetRequestHandler(ShowHelpRequest.Type, this.HandleShowHelpRequest);
141140

142141
this.messageHandlers.SetRequestHandler(ExpandAliasRequest.Type, this.HandleExpandAliasRequest);
@@ -297,19 +296,6 @@ protected async Task HandleShowHelpRequest(
297296
await requestContext.SendResult(null);
298297
}
299298

300-
protected async Task HandleShowOnlineHelpRequest(
301-
string helpParams,
302-
RequestContext<object> requestContext
303-
)
304-
{
305-
PSCommand commandDeprecated = new PSCommand()
306-
.AddCommand("Microsoft.PowerShell.Utility\\Write-Verbose")
307-
.AddParameter("Message", "'powerShell/showOnlineHelp' has been deprecated. Use 'powerShell/showHelp' instead.");
308-
309-
await editorSession.PowerShellContext.ExecuteCommand<PSObject>(commandDeprecated, sendOutputToHost: true);
310-
await this.HandleShowHelpRequest(helpParams, requestContext);
311-
}
312-
313299
private async Task HandleSetPSSARulesRequest(
314300
object param,
315301
RequestContext<object> requestContext)

0 commit comments

Comments
 (0)