1 instantiation of ExampleRequestContext
Microsoft.CommonLanguageServerProtocol.Framework.Example (1)
ExampleRequestContextFactory.cs (1)
23
var requestContext = new
ExampleRequestContext
(_lspServices, logger);
17 references to ExampleRequestContext
Microsoft.CommonLanguageServerProtocol.Framework.Example (17)
ExampleLanguageServer.cs (4)
14
internal class ExampleLanguageServer : SystemTextJsonLanguageServer<
ExampleRequestContext
>
31
.AddSingleton<AbstractRequestContextFactory<
ExampleRequestContext
>, ExampleRequestContextFactory>()
56
.AddSingleton<IMethodHandler, InitializeHandler<InitializeParams, InitializeResult,
ExampleRequestContext
>>()
57
.AddSingleton<IMethodHandler, InitializedHandler<InitializedParams,
ExampleRequestContext
>>();
ExampleRequestContextFactory.cs (4)
10
internal class ExampleRequestContextFactory : AbstractRequestContextFactory<
ExampleRequestContext
>
19
public override Task<
ExampleRequestContext
> CreateRequestContextAsync<TRequestParam>(IQueueItem<
ExampleRequestContext
> queueItem, IMethodHandler methodHandler, TRequestParam requestParam, CancellationToken cancellationToken)
23
var
requestContext = new ExampleRequestContext(_lspServices, logger);
MultiRegisteringHandler.cs (9)
12
IRequestHandler<DidOpenTextDocumentParams, SemanticTokensDeltaPartialResult,
ExampleRequestContext
>,
13
IRequestHandler<DidChangeTextDocumentParams, SemanticTokensDeltaPartialResult,
ExampleRequestContext
>,
14
INotificationHandler<DidCloseTextDocumentParams,
ExampleRequestContext
>
19
Task INotificationHandler<DidCloseTextDocumentParams,
ExampleRequestContext
>.HandleNotificationAsync(DidCloseTextDocumentParams request,
ExampleRequestContext
requestContext, CancellationToken cancellationToken)
25
Task<SemanticTokensDeltaPartialResult> IRequestHandler<DidOpenTextDocumentParams, SemanticTokensDeltaPartialResult,
ExampleRequestContext
>.HandleRequestAsync(DidOpenTextDocumentParams request,
ExampleRequestContext
context, CancellationToken cancellationToken)
31
Task<SemanticTokensDeltaPartialResult> IRequestHandler<DidChangeTextDocumentParams, SemanticTokensDeltaPartialResult,
ExampleRequestContext
>.HandleRequestAsync(DidChangeTextDocumentParams request,
ExampleRequestContext
context, CancellationToken cancellationToken)