Skip to content

Quick fix all showing up even if there is only one error #21458

Closed
@mjbvz

Description

@mjbvz

Code

class Foo {
    prop: number

    foo() { prop }
}

Using VS Code insiders, trigger quick fix on prop in foo

Expected behavior:
Only a single code action is shown

Actual behavior:
The base code action and a quick fix all code action are shown. The latter doesn't make sense as there is only a single error in the file

@Andy-MS Is this something we are supposed to handle on the VS Code side or should getCombinedCodeFix be smarter here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Working as IntendedThe behavior described is the intended behavior; this is not a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions