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.
Please sign in to leave a comment.
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;
}
}
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!"
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