Skip to content

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

Open
@edgarfgp

Description

@edgarfgp

Details

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
    })

Checklist

  • I have looked through existing issues to make sure that this feature has not been requested before
  • I have provided a descriptive title for this issue
  • I am aware that even valid feature requests may be rejected if they do not align with the project's goals
  • I or my company would be willing to contribute this feature

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions