@@ -25,118 +25,116 @@ public LanguageClientOptions()
25
25
TextDocument = new TextDocumentClientCapabilities ( )
26
26
} ;
27
27
28
- public ClientInfo ClientInfo { get ; set ; }
29
- public DocumentUri RootUri { get ; set ; }
28
+ public ClientInfo ? ClientInfo { get ; set ; }
29
+ public DocumentUri ? RootUri { get ; set ; }
30
30
public bool WorkspaceFolders { get ; set ; } = true ;
31
31
public bool DynamicRegistration { get ; set ; } = true ;
32
32
public bool ProgressTokens { get ; set ; } = true ;
33
33
34
34
public string RootPath
35
35
{
36
- get => RootUri . GetFileSystemPath ( ) ;
36
+ get => RootUri ? . GetFileSystemPath ( ) ?? string . Empty ;
37
37
set => RootUri = DocumentUri . FromFileSystemPath ( value ) ;
38
38
}
39
39
40
40
public InitializeTrace Trace { get ; set ; }
41
41
42
- public object InitializationOptions { get ; set ; }
42
+ public object ? InitializationOptions { get ; set ; }
43
43
44
- ILanguageClientRegistry IJsonRpcHandlerRegistry < ILanguageClientRegistry > . AddHandler ( string method , IJsonRpcHandler handler , JsonRpcHandlerOptions options ) =>
44
+ ILanguageClientRegistry IJsonRpcHandlerRegistry < ILanguageClientRegistry > . AddHandler ( string method , IJsonRpcHandler handler , JsonRpcHandlerOptions ? options ) =>
45
45
AddHandler ( method , handler , options ) ;
46
46
47
- ILanguageClientRegistry IJsonRpcHandlerRegistry < ILanguageClientRegistry > . AddHandler ( string method , JsonRpcHandlerFactory handlerFunc , JsonRpcHandlerOptions options ) =>
47
+ ILanguageClientRegistry IJsonRpcHandlerRegistry < ILanguageClientRegistry > . AddHandler ( string method , JsonRpcHandlerFactory handlerFunc , JsonRpcHandlerOptions ? options ) =>
48
48
AddHandler ( method , handlerFunc , options ) ;
49
49
50
50
ILanguageClientRegistry IJsonRpcHandlerRegistry < ILanguageClientRegistry > . AddHandlers ( params IJsonRpcHandler [ ] handlers ) => AddHandlers ( handlers ) ;
51
51
52
- ILanguageClientRegistry IJsonRpcHandlerRegistry < ILanguageClientRegistry > . AddHandler ( JsonRpcHandlerFactory handlerFunc , JsonRpcHandlerOptions options ) =>
52
+ ILanguageClientRegistry IJsonRpcHandlerRegistry < ILanguageClientRegistry > . AddHandler ( JsonRpcHandlerFactory handlerFunc , JsonRpcHandlerOptions ? options ) =>
53
53
AddHandler ( handlerFunc , options ) ;
54
54
55
- ILanguageClientRegistry IJsonRpcHandlerRegistry < ILanguageClientRegistry > . AddHandler ( IJsonRpcHandler handler , JsonRpcHandlerOptions options ) => AddHandler ( handler , options ) ;
55
+ ILanguageClientRegistry IJsonRpcHandlerRegistry < ILanguageClientRegistry > . AddHandler ( IJsonRpcHandler handler , JsonRpcHandlerOptions ? options ) => AddHandler ( handler , options ) ;
56
56
57
- ILanguageClientRegistry IJsonRpcHandlerRegistry < ILanguageClientRegistry > . AddHandler < TTHandler > ( JsonRpcHandlerOptions options ) => AddHandler < TTHandler > ( options ) ;
57
+ ILanguageClientRegistry IJsonRpcHandlerRegistry < ILanguageClientRegistry > . AddHandler < TTHandler > ( JsonRpcHandlerOptions ? options ) => AddHandler < TTHandler > ( options ) ;
58
58
59
- ILanguageClientRegistry IJsonRpcHandlerRegistry < ILanguageClientRegistry > . AddHandler < TTHandler > ( string method , JsonRpcHandlerOptions options ) =>
59
+ ILanguageClientRegistry IJsonRpcHandlerRegistry < ILanguageClientRegistry > . AddHandler < TTHandler > ( string method , JsonRpcHandlerOptions ? options ) =>
60
60
AddHandler < TTHandler > ( method , options ) ;
61
61
62
- ILanguageClientRegistry IJsonRpcHandlerRegistry < ILanguageClientRegistry > . AddHandler ( Type type , JsonRpcHandlerOptions options ) => AddHandler ( type , options ) ;
62
+ ILanguageClientRegistry IJsonRpcHandlerRegistry < ILanguageClientRegistry > . AddHandler ( Type type , JsonRpcHandlerOptions ? options ) => AddHandler ( type , options ) ;
63
63
64
- ILanguageClientRegistry IJsonRpcHandlerRegistry < ILanguageClientRegistry > . AddHandler ( string method , Type type , JsonRpcHandlerOptions options ) =>
64
+ ILanguageClientRegistry IJsonRpcHandlerRegistry < ILanguageClientRegistry > . AddHandler ( string method , Type type , JsonRpcHandlerOptions ? options ) =>
65
65
AddHandler ( method , type , options ) ;
66
66
67
67
ILanguageClientRegistry IJsonRpcHandlerRegistry < ILanguageClientRegistry > . AddHandlerLink ( string fromMethod , string toMethod ) =>
68
68
AddHandlerLink ( fromMethod , toMethod ) ;
69
69
70
- ILanguageClientRegistry IJsonRpcHandlerRegistry < ILanguageClientRegistry > . OnJsonRequest ( string method , Func < JToken , Task < JToken > > handler , JsonRpcHandlerOptions options ) =>
70
+ ILanguageClientRegistry IJsonRpcHandlerRegistry < ILanguageClientRegistry > . OnJsonRequest ( string method , Func < JToken , Task < JToken > > handler , JsonRpcHandlerOptions ? options ) =>
71
71
OnJsonRequest ( method , handler , options ) ;
72
72
73
73
ILanguageClientRegistry IJsonRpcHandlerRegistry < ILanguageClientRegistry > . OnJsonRequest (
74
- string method , Func < JToken , CancellationToken , Task < JToken > > handler , JsonRpcHandlerOptions options
74
+ string method , Func < JToken , CancellationToken , Task < JToken > > handler , JsonRpcHandlerOptions ? options
75
75
) => OnJsonRequest ( method , handler , options ) ;
76
76
77
77
ILanguageClientRegistry IJsonRpcHandlerRegistry < ILanguageClientRegistry > . OnRequest < TParams , TResponse > (
78
- string method , Func < TParams , Task < TResponse > > handler , JsonRpcHandlerOptions options
78
+ string method , Func < TParams , Task < TResponse > > handler , JsonRpcHandlerOptions ? options
79
79
) => OnRequest ( method , handler , options ) ;
80
80
81
81
ILanguageClientRegistry IJsonRpcHandlerRegistry < ILanguageClientRegistry > . OnRequest < TParams , TResponse > (
82
- string method , Func < TParams , CancellationToken , Task < TResponse > > handler , JsonRpcHandlerOptions options
82
+ string method , Func < TParams , CancellationToken , Task < TResponse > > handler , JsonRpcHandlerOptions ? options
83
83
) => OnRequest ( method , handler , options ) ;
84
84
85
85
ILanguageClientRegistry IJsonRpcHandlerRegistry < ILanguageClientRegistry > .
86
- OnRequest < TResponse > ( string method , Func < Task < TResponse > > handler , JsonRpcHandlerOptions options ) => OnRequest ( method , handler , options ) ;
86
+ OnRequest < TResponse > ( string method , Func < Task < TResponse > > handler , JsonRpcHandlerOptions ? options ) => OnRequest ( method , handler , options ) ;
87
87
88
88
ILanguageClientRegistry IJsonRpcHandlerRegistry < ILanguageClientRegistry > . OnRequest < TResponse > (
89
- string method , Func < CancellationToken , Task < TResponse > > handler , JsonRpcHandlerOptions options
89
+ string method , Func < CancellationToken , Task < TResponse > > handler , JsonRpcHandlerOptions ? options
90
90
) => OnRequest ( method , handler , options ) ;
91
91
92
- ILanguageClientRegistry IJsonRpcHandlerRegistry < ILanguageClientRegistry > . OnRequest < TParams > ( string method , Func < TParams , Task > handler , JsonRpcHandlerOptions options ) =>
92
+ ILanguageClientRegistry IJsonRpcHandlerRegistry < ILanguageClientRegistry > . OnRequest < TParams > ( string method , Func < TParams , Task > handler , JsonRpcHandlerOptions ? options ) =>
93
93
OnRequest ( method , handler , options ) ;
94
94
95
95
ILanguageClientRegistry IJsonRpcHandlerRegistry < ILanguageClientRegistry > . OnRequest < TParams > (
96
- string method , Func < TParams , CancellationToken , Task > handler , JsonRpcHandlerOptions options
96
+ string method , Func < TParams , CancellationToken , Task > handler , JsonRpcHandlerOptions ? options
97
97
) => OnRequest ( method , handler , options ) ;
98
98
99
99
ILanguageClientRegistry IJsonRpcHandlerRegistry < ILanguageClientRegistry > . OnRequest < TParams > (
100
- string method , Func < CancellationToken , Task > handler , JsonRpcHandlerOptions options
100
+ string method , Func < CancellationToken , Task > handler , JsonRpcHandlerOptions ? options
101
101
) => OnRequest < TParams > ( method , handler , options ) ;
102
102
103
103
ILanguageClientRegistry IJsonRpcHandlerRegistry < ILanguageClientRegistry > . OnNotification < TParams > (
104
- string method , Action < TParams , CancellationToken > handler , JsonRpcHandlerOptions options
104
+ string method , Action < TParams , CancellationToken > handler , JsonRpcHandlerOptions ? options
105
105
) => OnNotification ( method , handler , options ) ;
106
106
107
- ILanguageClientRegistry IJsonRpcHandlerRegistry < ILanguageClientRegistry > . OnJsonNotification ( string method , Action < JToken > handler , JsonRpcHandlerOptions options ) =>
107
+ ILanguageClientRegistry IJsonRpcHandlerRegistry < ILanguageClientRegistry > . OnJsonNotification ( string method , Action < JToken > handler , JsonRpcHandlerOptions ? options ) =>
108
108
OnJsonNotification ( method , handler , options ) ;
109
109
110
110
ILanguageClientRegistry IJsonRpcHandlerRegistry < ILanguageClientRegistry > . OnJsonNotification (
111
- string method , Func < JToken , CancellationToken , Task > handler , JsonRpcHandlerOptions options
111
+ string method , Func < JToken , CancellationToken , Task > handler , JsonRpcHandlerOptions ? options
112
112
) => OnJsonNotification ( method , handler , options ) ;
113
113
114
- ILanguageClientRegistry IJsonRpcHandlerRegistry < ILanguageClientRegistry > . OnJsonNotification ( string method , Func < JToken , Task > handler , JsonRpcHandlerOptions options ) =>
114
+ ILanguageClientRegistry IJsonRpcHandlerRegistry < ILanguageClientRegistry > . OnJsonNotification ( string method , Func < JToken , Task > handler , JsonRpcHandlerOptions ? options ) =>
115
115
OnJsonNotification ( method , handler , options ) ;
116
116
117
117
ILanguageClientRegistry IJsonRpcHandlerRegistry < ILanguageClientRegistry > . OnJsonNotification (
118
- string method , Action < JToken , CancellationToken > handler , JsonRpcHandlerOptions options
118
+ string method , Action < JToken , CancellationToken > handler , JsonRpcHandlerOptions ? options
119
119
) => OnJsonNotification ( method , handler , options ) ;
120
120
121
- ILanguageClientRegistry IJsonRpcHandlerRegistry < ILanguageClientRegistry > . OnNotification < TParams > ( string method , Action < TParams > handler , JsonRpcHandlerOptions options ) =>
121
+ ILanguageClientRegistry IJsonRpcHandlerRegistry < ILanguageClientRegistry > . OnNotification < TParams > ( string method , Action < TParams > handler , JsonRpcHandlerOptions ? options ) =>
122
122
OnNotification ( method , handler , options ) ;
123
123
124
124
ILanguageClientRegistry IJsonRpcHandlerRegistry < ILanguageClientRegistry > . OnNotification < TParams > (
125
- string method , Func < TParams , CancellationToken , Task > handler , JsonRpcHandlerOptions options
125
+ string method , Func < TParams , CancellationToken , Task > handler , JsonRpcHandlerOptions ? options
126
126
) => OnNotification ( method , handler , options ) ;
127
127
128
128
ILanguageClientRegistry IJsonRpcHandlerRegistry < ILanguageClientRegistry > .
129
- OnNotification < TParams > ( string method , Func < TParams , Task > handler , JsonRpcHandlerOptions options ) => OnNotification ( method , handler , options ) ;
129
+ OnNotification < TParams > ( string method , Func < TParams , Task > handler , JsonRpcHandlerOptions ? options ) => OnNotification ( method , handler , options ) ;
130
130
131
- ILanguageClientRegistry IJsonRpcHandlerRegistry < ILanguageClientRegistry > . OnNotification ( string method , Action handler , JsonRpcHandlerOptions options ) =>
131
+ ILanguageClientRegistry IJsonRpcHandlerRegistry < ILanguageClientRegistry > . OnNotification ( string method , Action handler , JsonRpcHandlerOptions ? options ) =>
132
132
OnNotification ( method , handler , options ) ;
133
133
134
134
ILanguageClientRegistry IJsonRpcHandlerRegistry < ILanguageClientRegistry > .
135
- OnNotification ( string method , Func < CancellationToken , Task > handler , JsonRpcHandlerOptions options ) => OnNotification ( method , handler , options ) ;
135
+ OnNotification ( string method , Func < CancellationToken , Task > handler , JsonRpcHandlerOptions ? options ) => OnNotification ( method , handler , options ) ;
136
136
137
- ILanguageClientRegistry IJsonRpcHandlerRegistry < ILanguageClientRegistry > . OnNotification ( string method , Func < Task > handler , JsonRpcHandlerOptions options ) =>
137
+ ILanguageClientRegistry IJsonRpcHandlerRegistry < ILanguageClientRegistry > . OnNotification ( string method , Func < Task > handler , JsonRpcHandlerOptions ? options ) =>
138
138
OnNotification ( method , handler , options ) ;
139
-
140
- public override IRequestProcessIdentifier RequestProcessIdentifier { get ; set ; }
141
139
}
142
140
}
0 commit comments