public override ImmutableArray <IRequestHandler> CreateRequestHandlers(WellKnownLspServerKinds serverKind) { var completionListCache = new CompletionListCache(); return(ImmutableArray.Create <IRequestHandler>( new CompletionHandler(_globalOptions, _completionProviders, completionListCache), new CompletionResolveHandler(_globalOptions, completionListCache))); }
public override ImmutableArray <IRequestHandler> CreateRequestHandlers() { var completionListCache = new CompletionListCache(); return(ImmutableArray.Create <IRequestHandler>( new CompletionHandler(_completionProviders, completionListCache), new CompletionResolveHandler(completionListCache))); }
public CompletionHandler( IEnumerable <Lazy <CompletionProvider, CompletionProviderMetadata> > completionProviders, CompletionListCache completionListCache) { _csharpTriggerCharacters = completionProviders.Where(lz => lz.Metadata.Language == LanguageNames.CSharp).SelectMany( lz => GetTriggerCharacters(lz.Value)).ToImmutableHashSet(); _vbTriggerCharacters = completionProviders.Where(lz => lz.Metadata.Language == LanguageNames.VisualBasic).SelectMany( lz => GetTriggerCharacters(lz.Value)).ToImmutableHashSet(); _completionListCache = completionListCache; }
public TestAccessor(CompletionListCache completionListCache) => _completionListCache = completionListCache;
public CompletionResolveHandler(CompletionListCache completionListCache) { _completionListCache = completionListCache; }
public CompletionResolveHandler(IGlobalOptionService globalOptions, CompletionListCache completionListCache) { _globalOptions = globalOptions; _completionListCache = completionListCache; }