Skip to content

WIP Update NuGet packages in 2.0.0 branch #831

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 17 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Removed ShowOnlineHelp Message (#775)
  • Loading branch information
corbob authored and rjmholt committed Oct 24, 2018
commit c6bd0917f390ee80e22db92f464e92d2995d23d0
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, object, object, object> Type =
RequestType<string, object, object, object>.Create("powerShell/showOnlineHelp");
}

public class ShowHelpRequest
{
public static readonly
Expand Down
14 changes: 0 additions & 14 deletions src/PowerShellEditorServices.Protocol/Server/LanguageServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -291,19 +290,6 @@ protected async Task HandleShowHelpRequest(
await requestContext.SendResult(null);
}

protected async Task HandleShowOnlineHelpRequest(
string helpParams,
RequestContext<object> 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<PSObject>(commandDeprecated, sendOutputToHost: true);
await this.HandleShowHelpRequest(helpParams, requestContext);
}

private async Task HandleSetPSSARulesRequest(
object param,
RequestContext<object> requestContext)
Expand Down