puppetlabs / puppet-editor-services

Puppet Language Server for editors
Apache License 2.0
46 stars 21 forks source link

(GH-94) Extract Bolt module metadata and use within Plans #190

Closed glennsarti closed 4 years ago

glennsarti commented 5 years ago

Fixes #94 Fixes #102 Fixes #101

This commit adds the necessary Gemfile and tools to introspect Puppet Bolt and save the JSON metadata files using the Language Server Sidecar. These static data files can then be used by the Language Server to pre-warm its object cache.

Adds metadata for Bolt 1.39.0


Updates the PuppetHelper to load the static data when needed.

Previously the language server had no concept of Bolt Plan specific metadata, e.g. Functions and DataTypes. This commit updates the providers to optionally query for Bolt specific (taskmode => true) metadata when gathering results.