puppetlabs / puppet-editor-services

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

Puppet Facts Endpoint Refresh #248

Open jpogran opened 4 years ago

jpogran commented 4 years ago

The primary reason I had not pulled from cache was that it means waiting for the language server to start and for the language server to run before querying, but I was able to set the promises in the client to wait. It works, and is slightly faster start because there isn't a second wait for the facts to be queried.

So it all works with cached facts. However, hitting refresh doesn't 'refresh' anymore. It pulls from teh cache. How does a user get a 'fresh' run?

Originally posted by @jpogran in https://github.com/puppetlabs/puppet-editor-services/pull/246#issuecomment-621309833