Skip to content

VSCode: ScenarioOutline Examples tables incorrectly formatted as vertical #69

@dotnetprofessional

Description

@dotnetprofessional

Problem

The VS Code extension's table formatter uses a heuristic to determine whether a 2-column table should use row headers (vertical) or column headers (horizontal). This works well for data tables in steps, but Examples tables in ScenarioOutline/RuleOutline must always be horizontal — each column is a parameter name, each row is a test case.

When a ScenarioOutline has exactly 2 columns in its Examples table, the formatter may incorrectly render it as a vertical (row-header) table.

Current Implementation

\ ableFormatter/index.ts\ (line 211–238) applies the same 2-column detection logic to all tables. There is no context to distinguish Examples tables from step data tables.

Fix

The formatter should either:

  1. Accept a flag indicating whether the table is an Examples table (always horizontal), or
  2. Detect that the table appears after an \Examples:\ keyword and force horizontal layout

Examples tables should never use row-header formatting regardless of column count.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions