-
Notifications
You must be signed in to change notification settings - Fork 234
/
Copy pathGetCommandRequest.cs
35 lines (31 loc) · 1.25 KB
/
GetCommandRequest.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;
using System.Collections.Generic;
using System.Management.Automation;
namespace Microsoft.PowerShell.EditorServices.Protocol.LanguageServer
{
/// <summary>
/// Describes the request to get the details for PowerShell Commands from the current session.
/// </summary>
public class GetCommandRequest
{
public static readonly
RequestType<string, object, object, object> Type =
RequestType<string, object, object, object>.Create("powerShell/getCommand");
}
/// <summary>
/// Describes the message to get the details for a single PowerShell Command
/// from the current session
/// </summary>
public class PSCommandMessage
{
public string Name { get; set; }
public string ModuleName { get; set; }
public string DefaultParameterSet { get; set; }
public Dictionary<string, ParameterMetadata> Parameters { get; set; }
public System.Collections.ObjectModel.ReadOnlyCollection<CommandParameterSetInfo> ParameterSets { get; set; }
}
}