Skip to content

Wrong Replace with local alias 'removed' code action #902

@phanen

Description

@phanen

Put cursor on hunk.added.count, code action is Replace with local alias 'removed'
Expected to be added

--- @class (exact) Node
--- @field start integer
--- @field count integer

--- @class Hunk
--- @field added Node
--- @field removed Node

--- @type Hunk
local hunk
local start, added, removed = hunk.added.start, hunk.added.count, hunk.removed.count
local _ = start + hunk.added.count - 1

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