Skip to content

Dot-sourced reference detection does not account for script blocks #291

@daviwil

Description

@daviwil

In PowerShell, it is valid syntax to dot-source a ScriptBlock. Our FindDotSourcedVisitor class does not account for this possibility and treats a dot-sourced ScriptBlock as a referenced script path. This currently does not cause a problem or crash but the behavior should still be fixed.

This issue was originally reported by @itzik-h on the vscode-powershell repo:

PowerShell/vscode-powershell#224 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions