Skip to content

Commit 65e3e5e

Browse files
authored
fix IDEs tab bug (#59365)
1 parent 32e40f9 commit 65e3e5e

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

content/copilot/reference/copilot-feature-matrix.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,20 @@ topics:
2626

2727
The following table shows supported {% data variables.product.prodname_copilot_short %} features in the latest version of each IDE.
2828

29+
{%- comment %}
30+
This loop generates the "Features by IDE" comparison table:
31+
- Outer loop: Iterates through each feature from VS Code's feature list (using VS Code as the canonical source)
32+
- Inner loop: For each feature, iterates through all IDEs to check support in their latest version
33+
- Gets the latest version using ideEntry[1].versions | first
34+
- Looks up the support level for that feature in that version
35+
- Outputs ✓ (supported), P (preview), or ✗ (not supported)
36+
Example row: | Agent mode | ✓ | ✓ | P | ✗ | ... |
37+
{%- endcomment %}
38+
2939
| Feature{%- for entry in tables.copilot.copilot-matrix.ides %} | {{ entry[0] }}{%- endfor %} |
3040
|:----{%- for entry in tables.copilot.copilot-matrix.ides %}|:----:{%- endfor %}|
3141
{%- for featureEntry in tables.copilot.copilot-matrix.ides["VS Code"].features %}
32-
| {{ featureEntry[0] }}{%- for ideEntry in tables.copilot.copilot-matrix.ides %}{%- assign latestVersion = ideEntry[1].versions | last %}{%- assign supportLevel = ideEntry[1].features[featureEntry[0]][latestVersion] %} | {%- case supportLevel -%}{%- when "supported" %}✓{%- when "preview" %}P{%- else %}✗{%- endcase -%}{%- endfor %} |
42+
| {{ featureEntry[0] }}{%- for ideEntry in tables.copilot.copilot-matrix.ides %}{%- assign latestVersion = ideEntry[1].versions | first %}{%- assign supportLevel = ideEntry[1].features[featureEntry[0]][latestVersion] %} | {%- case supportLevel -%}{%- when "supported" %}✓{%- when "preview" %}P{%- else %}✗{%- endcase -%}{%- endfor %} |
3343
{%- endfor %}
3444

3545
{% endides %}

0 commit comments

Comments
 (0)