Commit a87fd92
committed
(GH-141) Update Completion and Hover providers for V4 API Functions
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
exists1 parent 8cb7f05 commit a87fd92
File tree
3 files changed
+11
-14
lines changed- lib/puppet-languageserver/manifest
- spec/languageserver/integration/puppet-languageserver/manifest
3 files changed
+11
-14
lines changedLines changed: 8 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
| 27 | + | |
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
| |||
170 | 169 | | |
171 | 170 | | |
172 | 171 | | |
173 | | - | |
174 | | - | |
175 | | - | |
| 172 | + | |
| 173 | + | |
176 | 174 | | |
177 | 175 | | |
178 | 176 | | |
| |||
232 | 230 | | |
233 | 231 | | |
234 | 232 | | |
235 | | - | |
236 | | - | |
237 | | - | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
238 | 238 | | |
239 | | - | |
240 | | - | |
241 | 239 | | |
242 | 240 | | |
243 | 241 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
146 | | - | |
| 145 | + | |
147 | 146 | | |
148 | 147 | | |
149 | 148 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
458 | 458 | | |
459 | 459 | | |
460 | 460 | | |
461 | | - | |
| 461 | + | |
462 | 462 | | |
463 | 463 | | |
464 | | - | |
| 464 | + | |
465 | 465 | | |
466 | 466 | | |
467 | 467 | | |
| |||
0 commit comments