protected override AbstractSnippetExpansionClient GetSnippetExpansionClient( ITextView textView, ITextBuffer subjectBuffer ) { if ( !textView.Properties.TryGetProperty( typeof(AbstractSnippetExpansionClient), out AbstractSnippetExpansionClient expansionClient ) ) { expansionClient = new SnippetExpansionClient( ThreadingContext, subjectBuffer.ContentType, textView, subjectBuffer, ExpansionServiceProvider ); textView.Properties.AddProperty( typeof(AbstractSnippetExpansionClient), expansionClient ); } return(expansionClient); }
protected override AbstractSnippetExpansionClient GetSnippetExpansionClient( ITextView textView, ITextBuffer subjectBuffer ) { if ( !textView.Properties.TryGetProperty( typeof(AbstractSnippetExpansionClient), out AbstractSnippetExpansionClient expansionClient ) ) { expansionClient = new SnippetExpansionClient( ThreadingContext, Guids.CSharpLanguageServiceId, textView, subjectBuffer, SignatureHelpControllerProvider, EditorCommandHandlerServiceFactory, EditorAdaptersFactoryService, _argumentProviders ); textView.Properties.AddProperty( typeof(AbstractSnippetExpansionClient), expansionClient ); } return(expansionClient); }
protected override AbstractSnippetExpansionClient GetSnippetExpansionClient(ITextView textView, ITextBuffer subjectBuffer) { if (!textView.Properties.TryGetProperty(typeof(AbstractSnippetExpansionClient), out AbstractSnippetExpansionClient expansionClient)) { expansionClient = new SnippetExpansionClient(Guids.CSharpLanguageServiceId, textView, subjectBuffer, EditorAdaptersFactoryService); textView.Properties.AddProperty(typeof(AbstractSnippetExpansionClient), expansionClient); } return(expansionClient); }