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