Skip to content

PSUseApprovedVerbs rule marks whole function at beginning of file #492

@daviwil

Description

@daviwil

@pcgeek86 and @dsolodow reported an issue at PowerShell/vscode-powershell#132 which states that the PSUseApprovedVerbs rule marks the entire function instead of just the function name if the function comes at the very beginning of the file without any newline before it. Here's a screenshot:

image

If I put one newline in front of the first function, the extent is marked correctly:

image

Seems like there must be an issue with the extent calculation here.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions