resharper-postfix icon indicating copy to clipboard operation
resharper-postfix copied to clipboard

.IsNullOrEmpty() seems to have more priority than corresponding extension method

Open ashmind opened this issue 10 years ago • 2 comments

Pressing tab after mystring.IsNullOr produces string.IsNullOrEmpty(mystring) even if the namespace with IsNullOrEmpty() extension method is in scope.

ashmind avatar May 07 '14 23:05 ashmind

Actually, order is not be defined... If you are using your extension method more (statistically), our code completion will preselect it instead of postfix's static method...

I've not implemented 'hiding' of postfix items for simplicity (just like live templates are hiding some keywords in code completion), looks like it's time to implement it...

controlflow avatar May 08 '14 00:05 controlflow

If you are using your extension method more (statistically)

Is it per-project or per-machine?

ashmind avatar May 08 '14 09:05 ashmind