public AutoCompletionSource(ITextBuffer textBuffer, AutoCompletionSourceProvider sourceProvider)
        {
            this.TextBuffer = textBuffer;
            this.SourceProvider = sourceProvider;

            var catalog = new AggregateCatalog();
            catalog.Catalogs.Add(new AssemblyCatalog(typeof(AutoCompletionSource).Assembly));

            container = new CompositionContainer(catalog);

            container.ComposeParts(this);
        }
Пример #2
0
        public AutoCompletionSource(ITextBuffer textBuffer, AutoCompletionSourceProvider sourceProvider)
        {
            this.TextBuffer     = textBuffer;
            this.SourceProvider = sourceProvider;

            var catalog = new AggregateCatalog();

            catalog.Catalogs.Add(new AssemblyCatalog(typeof(AutoCompletionSource).Assembly));

            container = new CompositionContainer(catalog);

            container.ComposeParts(this);
        }