How to replace ICssSymbolResolver implementation in ReSharper

Hi,

I'm trying to use my own ICssSymbolResolver but I'm having trouble replacing ReSharper's default interface implmentation. The ComponentContainer does not have any way to register MyCssSymbolResolver BEFORE ReSharper's CssSymbolResolver.  I want MyCssSymbolResolver to be used when ICssSymbolResolver is resolved.

Any help would be appreciated.

3 comments

To clarify, my SolutionComponents for CSS never get consulted by ReSharper. The constructor is the only one called upon SolutionComponet initialization by the ComponentContainer. I want to hook into ReSharper's FilterSymbols() calls or IsVisable() calls to fit my needs.


    [SolutionComponent]
    public class MyCssFilter : ICssSymbolFilter
    {


        public MyCssFilter( IComponentContainer container )
        {
        }


        public IEnumerable<IWebClassSymbol> FilterSymbols( IEnumerable<IWebClassSymbol> symbols )
        {
            return symbols;
        }
    }


    [SolutionComponent]
    public class MyCssResolver : ICssSymbolResolver
    {


        public MyCssResolver( IComponentContainer container )
        {
        }


        public IEnumerable<IWebClassSymbol> FilterSymbols( IEnumerable<IWebClassSymbol> symbols )
        {
            return symbols;
        }
    }


    [SolutionComponent]
    public class MyCssVisabilityManager : ICssSymbolVisibilityManager
    {
        public MyCssVisabilityManager( IComponentContainer container )
        {
        }


        public bool IsVisible( IWebClassSymbol symbol, IPsiSourceFile fromFile )
        {
            return true;
        }
    }

0

Hello Brian,

The corresponding developer should contact you soon.
Please note that we have a separate forum for ReSharper API-related questions
at http://devnet.jetbrains.net/community/resharper/resharper_open_api. Thank
you!

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Hi,

I'm trying to use my own '''''' but I'm having
trouble replacing ReSharper's default interface implmentation. The
'''{{ComponentContainer}}''' does not have any way to register
{{MyICssSymbolResolver}} ''''BEFORE'''' ReSharper's
{{CssSymbolResolver}}.

Any help would be appreciated.

---
Original message URL:
http://devnet.jetbrains.net/message/5308414#5308414



0

Thanks. I didn't realize there was a different forum for the OpenAPI.  Thanks for that.

I should state my goal:

My goal is to remove specific symbols from ReSharper's CSS IntelliSense in order to workaround this bug here:

http://youtrack.jetbrains.net/issue/RSRP-273676

Thanks,
Brian

0

Please sign in to leave a comment.