Skip to content

Bug when hovering variables #463

@xiajunwen1007

Description

@xiajunwen1007

Describe the bug
When hover on a variable defined before, it shows the definition of the variable. But in some cases, definition isn't correct. For example, paste the following code in the vscode.

for (ll in 1:3){
 p = ll
 I = array(0:0, dim=c(p,p))
}

Then hover on the variable p. The correct behavior should be popping up a panel showing p=ll, but it shows for (ll in 1:3){. A screenshot is below.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions