forked from PowerShell/PowerShellEditorServices
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathServerCapabilities.cs
121 lines (91 loc) · 3.33 KB
/
ServerCapabilities.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
namespace Microsoft.PowerShell.EditorServices.Protocol.LanguageServer
{
public class ServerCapabilities
{
public TextDocumentSyncKind? TextDocumentSync { get; set; }
public bool? HoverProvider { get; set; }
public CompletionOptions CompletionProvider { get; set; }
public SignatureHelpOptions SignatureHelpProvider { get; set; }
public bool? DefinitionProvider { get; set; }
public bool? ReferencesProvider { get; set; }
public bool? DocumentHighlightProvider { get; set; }
public bool? DocumentSymbolProvider { get; set; }
public bool? WorkspaceSymbolProvider { get; set; }
public bool? CodeActionProvider { get; set; }
public CodeLensOptions CodeLensProvider { get; set; }
public bool? DocumentFormattingProvider { get; set; }
public bool? DocumentRangeFormattingProvider { get; set; }
public DocumentOnTypeFormattingOptions DocumentOnTypeFormattingProvider { get; set; }
public bool? RenameProvider { get; set; }
public DocumentLinkOptions DocumentLinkProvider { get; set; }
public ExecuteCommandOptions ExecuteCommandProvider { get; set; }
public object Experimental { get; set; }
public bool FoldingRangeProvider { get; set; } = false;
}
/// <summary>
/// Execute command options.
/// </summary>
public class ExecuteCommandOptions
{
/// <summary>
/// The commands to be executed on the server.
/// </summary>
public string[] Commands { get; set; }
}
/// <summary>
/// Document link options.
/// </summary>
public class DocumentLinkOptions
{
/// <summary>
/// Document links have a resolve provider.
/// </summary>
public bool? ResolveProvider { get; set; }
}
/// <summary>
/// Options that the server provides for OnTypeFormatting request.
/// </summary>
public class DocumentOnTypeFormattingOptions
{
/// <summary>
/// A character on which formatting should be triggered.
/// </summary>
public string FirstTriggerCharacter { get; set; }
/// <summary>
/// More trigger characters.
/// </summary>
public string[] MoreTriggerCharacters { get; set; }
}
/// <summary>
/// Defines the document synchronization strategies that a server may support.
/// </summary>
public enum TextDocumentSyncKind
{
/// <summary>
/// Indicates that documents should not be synced at all.
/// </summary>
None = 0,
/// <summary>
/// Indicates that document changes are always sent with the full content.
/// </summary>
Full,
/// <summary>
/// Indicates that document changes are sent as incremental changes after
/// the initial document content has been sent.
/// </summary>
Incremental
}
public class CompletionOptions
{
public bool? ResolveProvider { get; set; }
public string[] TriggerCharacters { get; set; }
}
public class SignatureHelpOptions
{
public string[] TriggerCharacters { get; set; }
}
}