Skip to content

Autocomplete parameters of class pattern in match-case situation #2830

@dhnam

Description

@dhnam

Describe the Bug

from dataclasses import dataclass
@dataclass
class A:
    a: int
    b: int

match a:
    case A(a=a, b=b):  # (a)
        ...

It would be nice for LSP to suggests 'a' and 'b'.

Sandbox Link

No response

(Only applicable for extension issues) IDE Information

No response

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