Skip to content

Add Open Codefix does not work for operators #2473

Description

@cartermp

Using RC4, enter the following in an F# script file:

module MyOps =
    let (>.>) x f = f(x)

let bananas xs =
    xs >.> List.map (fun x -> "bananas")

Expected: Lightbulb comes up, offering to open MyOps.

Actual: No lightbulb.

Note that this affects libraries such as Suave, where you need to open the Suave.Operators namespace to compose routes, and it's not always obvious to people that this is the case.

Activity

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

    Area-LangService-APIArea-LangService-CodeFixesCode fixes associated with diagnosticsImpact-Medium(Internal MS Team use only) Describes an issue with moderate impact on existing code.

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions