File tree Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change
1
+ using OmniSharp . Extensions . LanguageServer . Models ;
2
+
3
+ // ReSharper disable CheckNamespace
4
+
5
+ namespace OmniSharp . Extensions . LanguageServer . Protocol
6
+ {
7
+ public static class CancelRequestExtensions
8
+ {
9
+ public static void CancelRequest ( this ILanguageServer mediator , CancelParams @params )
10
+ {
11
+ mediator . SendNotification < CancelParams > ( "$/cancelRequest" , @params ) ;
12
+ }
13
+
14
+ public static void CancelRequest ( this ILanguageServer mediator , string id )
15
+ {
16
+ mediator . SendNotification < CancelParams > ( "$/cancelRequest" , new CancelParams ( ) { Id = id } ) ;
17
+ }
18
+
19
+ public static void CancelRequest ( this ILanguageServer mediator , long id )
20
+ {
21
+ mediator . SendNotification < CancelParams > ( "$/cancelRequest" , new CancelParams ( ) { Id = id } ) ;
22
+ }
23
+ }
24
+ }
Original file line number Diff line number Diff line change @@ -7,4 +7,4 @@ namespace OmniSharp.Extensions.LanguageServer.Protocol
7
7
{
8
8
[ Method ( "$/cancelRequest" ) ]
9
9
public interface ICancelRequestHandler : INotificationHandler < CancelParams > { }
10
- }
10
+ }
You can’t perform that action at this time.
0 commit comments