public SnippetCompletionProvider([Import(AllowDefault = true)] ISnippetInformationSourceProvider snippetInformationSource, ICoreShell coreShell)
        {
            _snippetInformationSource = snippetInformationSource;
            var imageService = coreShell.GetService <IImageService>();

            _snippetGlyph = imageService.GetImage(ImageType.Snippet) as ImageSource;
        }
Example #2
0
        public PackageFunctionCompletionProvider(IServiceContainer serviceContainer)
        {
            _session = serviceContainer.GetService <IIntellisenseRSession>();
            _snippetInformationSource = serviceContainer.GetService <ISnippetInformationSourceProvider>();
            _packageIndex             = serviceContainer.GetService <IPackageIndex>();
            _functionIndex            = serviceContainer.GetService <IFunctionIndex>();

            var imageService = serviceContainer.GetService <IImageService>();

            _functionGlyph = imageService.GetImage(ImageType.Method);
            _constantGlyph = imageService.GetImage(ImageType.Constant);
        }
Example #3
0
 public PackageFunctionCompletionProvider(
     ILoadedPackagesProvider loadedPackagesProvider,
     [Import(AllowDefault = true)] ISnippetInformationSourceProvider snippetInformationSource,
     IPackageIndex packageIndex,
     IFunctionIndex functionIndex,
     ICoreShell shell)
 {
     _loadedPackagesProvider   = loadedPackagesProvider;
     _snippetInformationSource = snippetInformationSource;
     _shell         = shell;
     _packageIndex  = packageIndex;
     _functionIndex = functionIndex;
 }
        public PackageFunctionCompletionProvider(
            ILoadedPackagesProvider loadedPackagesProvider,
            [Import(AllowDefault = true)] ISnippetInformationSourceProvider snippetInformationSource,
            IPackageIndex packageIndex,
            IFunctionIndex functionIndex,
            IGlyphService glyphService) {
            _loadedPackagesProvider = loadedPackagesProvider;
            _snippetInformationSource = snippetInformationSource;
            _packageIndex = packageIndex;
            _functionIndex = functionIndex;

            _functionGlyph = glyphService.GetGlyphThreadSafe(StandardGlyphGroup.GlyphGroupMethod, StandardGlyphItem.GlyphItemPublic);
            _constantGlyph = glyphService.GetGlyphThreadSafe(StandardGlyphGroup.GlyphGroupConstant, StandardGlyphItem.GlyphItemPublic);
        }
Example #5
0
        public PackageFunctionCompletionProvider(
            ILoadedPackagesProvider loadedPackagesProvider,
            [Import(AllowDefault = true)] ISnippetInformationSourceProvider snippetInformationSource,
            IPackageIndex packageIndex,
            IFunctionIndex functionIndex,
            IGlyphService glyphService)
        {
            _loadedPackagesProvider   = loadedPackagesProvider;
            _snippetInformationSource = snippetInformationSource;
            _packageIndex             = packageIndex;
            _functionIndex            = functionIndex;

            _functionGlyph = glyphService.GetGlyphThreadSafe(StandardGlyphGroup.GlyphGroupMethod, StandardGlyphItem.GlyphItemPublic);
            _constantGlyph = glyphService.GetGlyphThreadSafe(StandardGlyphGroup.GlyphGroupConstant, StandardGlyphItem.GlyphItemPublic);
        }
        public PackageFunctionCompletionProvider(
            IIntellisenseRSession session,
            [Import(AllowDefault = true)] ISnippetInformationSourceProvider snippetInformationSource,
            IPackageIndex packageIndex,
            IFunctionIndex functionIndex,
            ICoreShell coreShell)
        {
            _session = session;
            _snippetInformationSource = snippetInformationSource;
            _packageIndex             = packageIndex;
            _functionIndex            = functionIndex;

            var imageService = coreShell.GetService <IImageService>();

            _functionGlyph = imageService.GetImage(ImageType.Method) as ImageSource;
            _constantGlyph = imageService.GetImage(ImageType.Constant) as ImageSource;;
        }
Example #7
0
 public KeywordCompletionProvider([Import(AllowDefault = true)] ISnippetInformationSourceProvider snippetInformationSource, IGlyphService glyphService)
 {
     _snippetInformationSource = snippetInformationSource;
     _glyphService             = glyphService;
 }
Example #8
0
 public SnippetCompletionProvider(IServiceContainer serviceContainer)
 {
     _snippetInformationSource = serviceContainer.GetService <ISnippetInformationSourceProvider>();
     _imageService             = serviceContainer.GetService <IImageService>();
     _snippetGlyph             = _imageService.GetImage(ImageType.Snippet);
 }
Example #9
0
 public KeywordCompletionProvider([Import(AllowDefault = true)] ISnippetInformationSourceProvider snippetInformationSource, ICoreShell shell)
 {
     _snippetInformationSource = snippetInformationSource;
     _shell = shell;
 }
 public KeywordCompletionProvider([Import(AllowDefault = true)] ISnippetInformationSourceProvider snippetInformationSource, IGlyphService glyphService) {
     _snippetInformationSource = snippetInformationSource;
     _glyphService = glyphService;
 }
Example #11
0
 public KeywordCompletionProvider(IServiceContainer serviceContainer)
 {
     _snippetInformationSource = serviceContainer.GetService <ISnippetInformationSourceProvider>();
     _imageService             = serviceContainer.GetService <IImageService>();
 }
 public SnippetCompletionProvider([Import(AllowDefault = true)] ISnippetInformationSourceProvider snippetInformationSource, IGlyphService glyphService) {
     _snippetInformationSource = snippetInformationSource;
     _snippetGlyph = glyphService.GetGlyphThreadSafe(StandardGlyphGroup.GlyphCSharpExpansion, StandardGlyphItem.GlyphItemPublic);
 }
 public SnippetCompletionProvider([Import(AllowDefault = true)] ISnippetInformationSourceProvider snippetInformationSource, IGlyphService glyphService)
 {
     _snippetInformationSource = snippetInformationSource;
     _snippetGlyph             = glyphService.GetGlyphThreadSafe(StandardGlyphGroup.GlyphCSharpExpansion, StandardGlyphItem.GlyphItemPublic);
 }
Example #14
0
 public KeywordCompletionProvider([Import(AllowDefault = true)] ISnippetInformationSourceProvider snippetInformationSource, ICoreShell coreShell)
 {
     _snippetInformationSource = snippetInformationSource;
     _imageService             = coreShell.GetService <IImageService>();
 }