Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gray out overloading methods #286

Closed
medoni opened this issue Mar 12, 2020 · 2 comments
Closed

Gray out overloading methods #286

medoni opened this issue Mar 12, 2020 · 2 comments

Comments

@medoni
Copy link

medoni commented Mar 12, 2020

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
Copy link
Owner

tomasr commented Mar 12, 2020

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.

@tomasr tomasr closed this as completed Mar 12, 2020
@medoni
Copy link
Author

medoni commented Mar 19, 2020

Implemented in PR #287

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants