Skip to content

Top scope variable are rewritten into fact references #195

@brunoleon

Description

@brunoleon

Describe the Bug

The PR #190 introduces a bug that prevent reference to top scope variables by rewriting into a reference to a fact

$::example_var => save => $facts['example_var']

Expected Behavior

$::example_var => save => $::example_var
(nothing to change)

Steps to Reproduce

Open VScode and enable Puppet Vscode Extension
Write a manifests referencing a top scope variable.
It is rewritten into a reference to a fact.

Environment

Since Puppet VSCode extension 1.5.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions