public DocumentSymbolsHandler(LanguageServerWorkspace workspace, DocumentSelector documentSelector) { _workspace = workspace; _registrationOptions = new DocumentSymbolRegistrationOptions { DocumentSelector = documentSelector, }; }
public static IDisposable OnDocumentSymbol( this ILanguageServerRegistry registry, Func <DocumentSymbolParams, CancellationToken, Task <SymbolInformationOrDocumentSymbolContainer> > handler, DocumentSymbolRegistrationOptions registrationOptions = null, Action <DocumentSymbolCapability> setCapability = null) { registrationOptions ??= new DocumentSymbolRegistrationOptions(); return(registry.AddHandlers(new DelegatingHandler(handler, registry.ProgressManager, setCapability, registrationOptions))); }
public DelegatingHandler( Func <DocumentSymbolParams, CancellationToken, Task <SymbolInformationOrDocumentSymbolContainer> > handler, ProgressManager progressManager, Action <DocumentSymbolCapability> setCapability, DocumentSymbolRegistrationOptions registrationOptions) : base(registrationOptions, progressManager) { _handler = handler; _setCapability = setCapability; }
public DocumentSymbolHandler(DocumentSymbolRegistrationOptions registrationOptions) => _options = registrationOptions;
public DocumentSymbolHandler(DocumentSymbolRegistrationOptions registrationOptions, ProgressManager progressManager) { _options = registrationOptions; ProgressManager = progressManager; }