Commit f34590e
committed
Fix keyword completion silently returning zero suggestions
Curated supplemental keywords (STORE, AIM, CVTYPE, AMF, PREFT,
ZCRITVIS, SPECHA, SPECHB, SPECHG, SPECHH) were merged into the
runtime index without a sections array, even though several call
sites (including the completion provider's item.detail) access
entry.sections unconditionally. Hitting any of these 10 keywords
during Array.map aborted the entire keyword-name completion list
for every prefix, since a thrown callback discards all results.
Default sections to [] when merging the supplement so every entry
satisfies the sections: string[] contract.1 parent 05aa546 commit f34590e
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
| 70 | + | |
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
| |||
0 commit comments