Skip to content

Add a passing fixture and test the oldest supported VS Code #132

Description

@CatarinaGamboa

Why: a test that only checks the error case misses the extension reporting errors on correct code. engines.vscode claims ^1.82.0, but development only happens on the current VS Code, so the minimum is never tested.

What:

  • Add client/test-fixtures/passing/, and check that an empty onDiagnostics arrives. A timeout with no diagnostics doesn't count as passing.
  • Run the integration tests on both 1.82.0 and stable, reading the minimum from engines.vscode. The passing fixture runs on every branch; the 1.82.0 run only on PRs and main, to keep branch pushes fast.
  • Keep @types/vscode at 1.82.x, so code can't use APIs newer than the minimum.

References:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    testingTesting related

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions