Function
callback
({ response }: TsServerCompletionEntriesPayloadType)
Source from the content-addressed store, hash-verified
| 23 | const pos = context.pos; |
| 24 | |
| 25 | function callback({ response }: TsServerCompletionEntriesPayloadType) { |
| 26 | channel.off('tsserver:cell:completions:response', callback); |
| 27 | if (response === null) { |
| 28 | return; |
| 29 | } |
| 30 | const options = response.entries.map((entry) => ({ |
| 31 | label: entry.name, |
| 32 | type: entry.kind, |
| 33 | info: entry.kindModifiers, |
| 34 | })); |
| 35 | |
| 36 | resolve({ |
| 37 | from: word?.from ?? pos, |
| 38 | options: options, |
| 39 | }); |
| 40 | } |
| 41 | |
| 42 | channel.on('tsserver:cell:completions:response', callback); |
| 43 | |
Callers
nothing calls this directly
Tested by
no test coverage detected