public DelegatingHandler( Func <DocumentColorParams, CancellationToken, Task <Container <ColorInformation> > > handler, Action <ColorProviderCapability> setCapability, DocumentColorRegistrationOptions registrationOptions) : base(registrationOptions) { _handler = handler; _setCapability = setCapability; }
public static IDisposable OnDocumentColor( this ILanguageServerRegistry registry, Func <DocumentColorParams, CancellationToken, Task <Container <ColorInformation> > > handler, DocumentColorRegistrationOptions registrationOptions = null, Action <ColorProviderCapability> setCapability = null) { registrationOptions = registrationOptions ?? new DocumentColorRegistrationOptions(); return(registry.AddHandlers(new DelegatingHandler(handler, setCapability, registrationOptions))); }
public DocumentColorHandler(DocumentColorRegistrationOptions registrationOptions, ProgressManager progressManager) { _options = registrationOptions; ProgressManager = progressManager; }
public DocumentColorHandler(DocumentColorRegistrationOptions registrationOptions) { _options = registrationOptions; }
public ColorPresentationHandler(DocumentColorRegistrationOptions registrationOptions) => _options = registrationOptions;