Skip to content

Intellisense for overriding methods #6701

Closed

Description

@Happypig375

Specifically, I would like to see Intellisense enabled when I type

[<AbstractClass>] type A() = abstract M : unit -> unit
type B() = inherit A()
           override __.

A member list with M would be shown, and I can select it. This is super useful to find out which methods can be overridden for a class from a library.

Activity

  1. added this to the Unknown / not bug milestone on May 13, 2019
  2. added
    Area-LangService-AutoComplete
    and removed on Apr 6, 2022
  3. dirtybytes commented on May 21, 2022

    @dirtybytes

    This is sorely needed. No intellisense when overriding a member makes discovering APIs in F# a miserable experience.

    To demonstrate the problem - define a class in a C# project:

    public class CSharpClass {
        public virtual void DoSomething() { }
        public virtual string DoSomethingElse(int x) => "";
    }

    Then try to inherit from it in an F# project in the same solution:

    type CSharpClassDerived() =
        inherit CSharpClass()
        override this.DoSomething() = () // no help from the IDE whatsoever until after you've finished typing the entire line
        override this.DoSomethingElse x = "" // a list of members pops up only after typing the first uppercase D
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions