Skip to content

Commit c16dbbf

Browse files
Kapil Borledaviwil
authored andcommitted
Update ServerCapabilities type
1 parent d74dbc6 commit c16dbbf

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

src/PowerShellEditorServices.Protocol/LanguageServer/ServerCapabilities.cs

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,60 @@ public class ServerCapabilities
2626
public bool? WorkspaceSymbolProvider { get; set; }
2727

2828
public bool? CodeActionProvider { get; set; }
29+
30+
public bool? CodeLensProvider { get; set; }
31+
32+
public bool? DocumentFormattingProvider { get; set; }
33+
34+
public bool? DocumentRangeFormattingProvider { get; set; }
35+
36+
public DocumentOnTypeFormattingOptions DocumentOnTypeFormattingProvider { get; set; }
37+
38+
public bool? RenameProvider { get; set; }
39+
40+
public DocumentLinkOptions DocumentLinkProvider { get; set; }
41+
42+
public ExecuteCommandOptions ExecuteCommandProvider { get; set; }
43+
44+
public object Experimental { get; set; }
45+
}
46+
47+
/// <summary>
48+
/// Execute command options.
49+
/// </summary>
50+
public class ExecuteCommandOptions
51+
{
52+
/// <summary>
53+
/// The commands to be executed on the server.
54+
/// </summary>
55+
public string[] Commands { get; set; }
56+
}
57+
58+
/// <summary>
59+
/// Document link options.
60+
/// </summary>
61+
public class DocumentLinkOptions
62+
{
63+
/// <summary>
64+
/// Document links have a resolve provider.
65+
/// </summary>
66+
public bool? ResolveProvider { get; set; }
67+
}
68+
69+
/// <summary>
70+
/// Options that the server provides for OnTypeFormatting request.
71+
/// </summary>
72+
public class DocumentOnTypeFormattingOptions
73+
{
74+
/// <summary>
75+
/// A character on which formatting should be triggered.
76+
/// </summary>
77+
public string FirstTriggerCharacter { get; set; }
78+
79+
/// <summary>
80+
/// More trigger characters.
81+
/// </summary>
82+
public string[] MoreTriggerCharacters { get; set; }
2983
}
3084

3185
/// <summary>

0 commit comments

Comments
 (0)