Skip to content

Add Open Codefix does not work for operators #2473

@cartermp

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.

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