Previously in commit 590804e the Sidecar was updated to retrieve facts
however the object module was incorrectly setup to be used by the Language
Server in-memory cache. This commit changes the protocol to have a Fact and
FactList, similar to PuppetClass etc.
Now that facts can be loaded from the Sidecar, the FacterHelper needs to be
updated to use these instead of calling Facter directly. This commit:
Modifies the FacterHelper to call the sidecar queue to get the Fact
information
Modifies the FacterHelper to expose methods to query facts
Updates the cache to store facts
Updates the tests for the new Fact collection method
Fixes #213
213 Part 2
Previously in commit 590804e the Sidecar was updated to retrieve facts however the object module was incorrectly setup to be used by the Language Server in-memory cache. This commit changes the protocol to have a Fact and FactList, similar to PuppetClass etc.
Now that facts can be loaded from the Sidecar, the FacterHelper needs to be updated to use these instead of calling Facter directly. This commit: