File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
content/copilot/reference Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -26,10 +26,20 @@ topics:
2626
2727The 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 %}
You can’t perform that action at this time.
0 commit comments