Skip to content

Commit 3ca4f9c

Browse files
committed
update completion markdown template to use subheadings instead of table
1 parent 84d0350 commit 3ca4f9c

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

src/lsap_schema/draft/completion.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,17 @@ class CompletionRequest(LocateRequest, PaginatedRequest):
4646
{{ items[0].documentation }}
4747
{% endif %}
4848
49-
| Symbol | Kind | Detail |
50-
| :--- | :--- | :--- |
5149
{%- for item in items %}
52-
| `{{ item.label }}` | {{ item.kind }} | {{ item.detail | default: "" }} |
50+
### {{ forloop.index }}. `{{ item.label }}` ({{ item.kind }})
51+
{%- if item.detail %}
52+
- Detail: {{ item.detail }}
53+
{%- endif %}
54+
{%- if item.insert_text and item.insert_text != item.label %}
55+
- Insert: `{{ item.insert_text }}`
56+
{%- endif %}
57+
{%- if item.documentation %}
58+
- Doc: {{ item.documentation | truncate: 300 }}
59+
{%- endif %}
5360
{%- endfor %}
5461
5562
{% if has_more -%}

0 commit comments

Comments
 (0)