Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(puppetlabsGH-141) Update Completion and Hover providers for V4 API F…
…unctions Now that the Sidecar and the Sidecar Protocol have been modified to emit V4 API function metadata the completion and hover providers need to be modified to use it. This commit: * Because the concept of Function Type no longer exists (rvalue vs statement) all functions need to be returned when in the root of a document. Therefore the all_statement_functions method is changed into all_functions * The completion resolver is modified to only emit completion information if the function actually has a signature (all functions should have at least one sig). The resulting resolution now returns the function documentation and function signatures in separate fields in the response * The insertion text for the completion item now just emits the function with empty parentheses. This should trigger the Signature Helper, which will be implemented in later commits * The hover provider is modified to remove a todo item because arity no longer exists
- Loading branch information