Skip to content

Add code fix for adding missing seq before {…} #784

@edgarfgp

Description

@edgarfgp

I propose we add a code fix for adding missing seq before {…}. This is related to a language suggestion [Deprecate { start..finish } and { start..step..finish }] (fsharp/fslang-suggestions#1033) implemented in dotnet/fsharp#17772 which is currently in preview

Before

let xs = { 1..10 }

let xs = { 1; 10 }

let xs = id { 1..10 }

let xs = id { 1; 10 }

let xs =
    id {
        1..10
    }

let xs =
    id {
        1; 10
    }

After

let xs = seq { 1..10 }

let xs = seq { 1; 10 }

let xs = id (seq { 1..10 })

let xs = id (seq { 1; 10 })

let xs =
    id (seq {
        1..10
    })

let xs =
    id (seq {
        1; 10
    })

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions