-
Notifications
You must be signed in to change notification settings - Fork 105
/
Copy pathDebugAdapterClientOptions.cs
137 lines (106 loc) · 8.51 KB
/
DebugAdapterClientOptions.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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
using System;
using System.Threading;
using System.Threading.Tasks;
using Newtonsoft.Json.Linq;
using OmniSharp.Extensions.DebugAdapter.Protocol;
using OmniSharp.Extensions.DebugAdapter.Protocol.Client;
using OmniSharp.Extensions.DebugAdapter.Protocol.Requests;
using OmniSharp.Extensions.DebugAdapter.Shared;
using OmniSharp.Extensions.JsonRpc;
namespace OmniSharp.Extensions.DebugAdapter.Client
{
public class DebugAdapterClientOptions : DebugAdapterRpcOptionsBase<DebugAdapterClientOptions>, IDebugAdapterClientRegistry, IInitializeRequestArguments
{
public DebugAdapterClientOptions()
{
WithAssemblies(typeof(DebugAdapterClientOptions).Assembly, typeof(DebugAdapterRequestRouter).Assembly);
}
public override IRequestProcessIdentifier RequestProcessIdentifier { get; set; } = new ParallelRequestProcessIdentifier();
public string ClientId { get; set; }
public string ClientName { get; set; }
public string AdapterId { get; set; }
public string Locale { get; set; }
public bool? LinesStartAt1 { get; set; }
public bool? ColumnsStartAt1 { get; set; }
public string PathFormat { get; set; }
public bool? SupportsVariableType { get; set; }
public bool? SupportsVariablePaging { get; set; }
public bool? SupportsRunInTerminalRequest { get; set; }
public bool? SupportsMemoryReferences { get; set; }
public bool? SupportsProgressReporting { get; set; }
IDebugAdapterClientRegistry IJsonRpcHandlerRegistry<IDebugAdapterClientRegistry>.AddHandler(string method, IJsonRpcHandler handler, JsonRpcHandlerOptions options) =>
AddHandler(method, handler, options);
IDebugAdapterClientRegistry IJsonRpcHandlerRegistry<IDebugAdapterClientRegistry>.
AddHandler(string method, JsonRpcHandlerFactory handlerFunc, JsonRpcHandlerOptions options) => AddHandler(method, handlerFunc, options);
IDebugAdapterClientRegistry IJsonRpcHandlerRegistry<IDebugAdapterClientRegistry>.AddHandlers(params IJsonRpcHandler[] handlers) => AddHandlers(handlers);
IDebugAdapterClientRegistry IJsonRpcHandlerRegistry<IDebugAdapterClientRegistry>.AddHandler(JsonRpcHandlerFactory handlerFunc, JsonRpcHandlerOptions options) =>
AddHandler(handlerFunc, options);
IDebugAdapterClientRegistry IJsonRpcHandlerRegistry<IDebugAdapterClientRegistry>.AddHandler(IJsonRpcHandler handler, JsonRpcHandlerOptions options) =>
AddHandler(handler, options);
IDebugAdapterClientRegistry IJsonRpcHandlerRegistry<IDebugAdapterClientRegistry>.AddHandler<TTHandler>(JsonRpcHandlerOptions options) => AddHandler<TTHandler>(options);
IDebugAdapterClientRegistry IJsonRpcHandlerRegistry<IDebugAdapterClientRegistry>.AddHandler<TTHandler>(string method, JsonRpcHandlerOptions options) =>
AddHandler<TTHandler>(method, options);
IDebugAdapterClientRegistry IJsonRpcHandlerRegistry<IDebugAdapterClientRegistry>.AddHandler(Type type, JsonRpcHandlerOptions options) => AddHandler(type, options);
IDebugAdapterClientRegistry IJsonRpcHandlerRegistry<IDebugAdapterClientRegistry>.AddHandler(string method, Type type, JsonRpcHandlerOptions options) =>
AddHandler(method, type, options);
IDebugAdapterClientRegistry IJsonRpcHandlerRegistry<IDebugAdapterClientRegistry>.AddHandlerLink(string sourceMethod, string destinationMethod) =>
AddHandlerLink(sourceMethod, destinationMethod);
IDebugAdapterClientRegistry IJsonRpcHandlerRegistry<IDebugAdapterClientRegistry>.OnJsonRequest(
string method, Func<JToken, Task<JToken>> handler, JsonRpcHandlerOptions options
) => OnJsonRequest(method, handler, options);
IDebugAdapterClientRegistry IJsonRpcHandlerRegistry<IDebugAdapterClientRegistry>.OnJsonRequest(
string method, Func<JToken, CancellationToken, Task<JToken>> handler, JsonRpcHandlerOptions options
) => OnJsonRequest(method, handler, options);
IDebugAdapterClientRegistry IJsonRpcHandlerRegistry<IDebugAdapterClientRegistry>.OnRequest<TParams, TResponse>(
string method, Func<TParams, Task<TResponse>> handler, JsonRpcHandlerOptions options
) => OnRequest(method, handler, options);
IDebugAdapterClientRegistry IJsonRpcHandlerRegistry<IDebugAdapterClientRegistry>.OnRequest<TParams, TResponse>(
string method, Func<TParams, CancellationToken, Task<TResponse>> handler, JsonRpcHandlerOptions options
) => OnRequest(method, handler, options);
IDebugAdapterClientRegistry IJsonRpcHandlerRegistry<IDebugAdapterClientRegistry>.OnRequest<TResponse>(
string method, Func<Task<TResponse>> handler, JsonRpcHandlerOptions options
) => OnRequest(method, handler, options);
IDebugAdapterClientRegistry IJsonRpcHandlerRegistry<IDebugAdapterClientRegistry>.OnRequest<TResponse>(
string method, Func<CancellationToken, Task<TResponse>> handler, JsonRpcHandlerOptions options
) => OnRequest(method, handler, options);
IDebugAdapterClientRegistry IJsonRpcHandlerRegistry<IDebugAdapterClientRegistry>.OnRequest<TParams>(
string method, Func<TParams, Task> handler, JsonRpcHandlerOptions options
) => OnRequest(method, handler, options);
IDebugAdapterClientRegistry IJsonRpcHandlerRegistry<IDebugAdapterClientRegistry>.OnRequest<TParams>(
string method, Func<TParams, CancellationToken, Task> handler, JsonRpcHandlerOptions options
) => OnRequest(method, handler, options);
IDebugAdapterClientRegistry IJsonRpcHandlerRegistry<IDebugAdapterClientRegistry>.OnRequest<TParams>(
string method, Func<CancellationToken, Task> handler, JsonRpcHandlerOptions options
) => OnRequest<TParams>(method, handler, options);
IDebugAdapterClientRegistry IJsonRpcHandlerRegistry<IDebugAdapterClientRegistry>.OnNotification<TParams>(
string method, Action<TParams, CancellationToken> handler, JsonRpcHandlerOptions options
) => OnNotification(method, handler, options);
IDebugAdapterClientRegistry IJsonRpcHandlerRegistry<IDebugAdapterClientRegistry>.OnJsonNotification(string method, Action<JToken> handler, JsonRpcHandlerOptions options) =>
OnJsonNotification(method, handler, options);
IDebugAdapterClientRegistry IJsonRpcHandlerRegistry<IDebugAdapterClientRegistry>.OnJsonNotification(
string method, Func<JToken, CancellationToken, Task> handler, JsonRpcHandlerOptions options
) => OnJsonNotification(method, handler, options);
IDebugAdapterClientRegistry IJsonRpcHandlerRegistry<IDebugAdapterClientRegistry>.OnJsonNotification(
string method, Func<JToken, Task> handler, JsonRpcHandlerOptions options
) => OnJsonNotification(method, handler, options);
IDebugAdapterClientRegistry IJsonRpcHandlerRegistry<IDebugAdapterClientRegistry>.OnJsonNotification(
string method, Action<JToken, CancellationToken> handler, JsonRpcHandlerOptions options
) => OnJsonNotification(method, handler, options);
IDebugAdapterClientRegistry IJsonRpcHandlerRegistry<IDebugAdapterClientRegistry>.OnNotification<TParams>(
string method, Action<TParams> handler, JsonRpcHandlerOptions options
) => OnNotification(method, handler, options);
IDebugAdapterClientRegistry IJsonRpcHandlerRegistry<IDebugAdapterClientRegistry>.OnNotification<TParams>(
string method, Func<TParams, CancellationToken, Task> handler, JsonRpcHandlerOptions options
) => OnNotification(method, handler, options);
IDebugAdapterClientRegistry IJsonRpcHandlerRegistry<IDebugAdapterClientRegistry>.OnNotification<TParams>(
string method, Func<TParams, Task> handler, JsonRpcHandlerOptions options
) => OnNotification(method, handler, options);
IDebugAdapterClientRegistry IJsonRpcHandlerRegistry<IDebugAdapterClientRegistry>.OnNotification(string method, Action handler, JsonRpcHandlerOptions options) =>
OnNotification(method, handler, options);
IDebugAdapterClientRegistry IJsonRpcHandlerRegistry<IDebugAdapterClientRegistry>.OnNotification(
string method, Func<CancellationToken, Task> handler, JsonRpcHandlerOptions options
) => OnNotification(method, handler, options);
IDebugAdapterClientRegistry IJsonRpcHandlerRegistry<IDebugAdapterClientRegistry>.OnNotification(string method, Func<Task> handler, JsonRpcHandlerOptions options) =>
OnNotification(method, handler, options);
}
}