forked from puppetlabs/puppet-editor-services
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(puppetlabsGH-141) Change Puppet Function information in Sidecar to s…
…upport V4 API Previously the Puppet Function information retrieved over the Sidecar Protocol only supported the older V3 Function API. This commit updates the Protocol to now be able to transmit V4 function information. V3 information is expected to be adapted into its equivalent in V4. This commit: * Removes the deprecated arity and type methods and adds function_version and signatures. Where signatures are the function method signatures expressed as a PuppetFunctionSignatureList object * Adds a PuppetFunctionSignature and PuppetFunctionSignatureList object which captures all of the properties of Puppet Function V4 API method signature. The PuppetFunctionSignatureList object is a "typed" array of PuppetFunctionSignature objects * Adds a PuppetFunctionSignatureParameter and PuppetFunctionSignatureParameterList object which captures all of the properties of Puppet Function V4 API method signature parameter. The PuppetFunctionSignatureParameterList object is a "typed" array of PuppetFunctionSignatureParameter objects * Updates the spec_helper to be able to create mock objects for functions, function signatures and function signature parameters * Updates the sidecar protocol tests for the modified parameters and newly added classes * Updates the in-memory cache object tests for the modified parameters of a Function. At this point the protocol now only accepts V4 Function API information. Later commits will modify the Sidecar and Language Server to generate and consume the new information respectively.
- Loading branch information
1 parent
8ba9d58
commit 5dfc8ae
Showing
4 changed files
with
202 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters