tomasr / viasfora

A Visual Studio Extension containing miscellaneous improvements to the editor.
Other
557 stars 91 forks source link

Gray out overloading methods #286

Closed medoni closed 4 years ago

medoni commented 4 years ago

It would be really nice if overloading methods could be grayed out. For example, you have a bunch of Foo methods which doing only some parameter transformation.

class MyClass {

    object Foo() {
        return Foo(false);
    }
    object Foo(bool b) {
        return FooCore(...);
    }
    object Foo(string s) {
        if (s == null) throw new ArgumentNullException(nameof(s));
        return FooCore(...);
    }

    object FooCore(...) {
        ...
  }
}

Current: image

Expected: image

Your focus gets automatically to FooCore

tomasr commented 4 years ago

It's an interesting proposal, but unfortunately not something that I can do in Viasfora, since it only relies on lexical analysis and not full syntax parsing.

It would likely be doable on a plugin based around Roslyn, though.

medoni commented 4 years ago

Implemented in PR #287