Skip to content

Handle @captureSuggestions in the harness #1237

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 19, 2025

Conversation

Andarist
Copy link
Contributor

I was surprised only a single baseline got updated but it makes sense - this option was introduced somewhat recently, here: microsoft/TypeScript#59519

@Copilot Copilot AI review requested due to automatic review settings June 19, 2025 19:03
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for capturing suggestion diagnostics in the test harness, aligning with the recently introduced @captureSuggestions flag.

  • Updates the baseline files to reflect the new suggestion diagnostic counts.
  • Inserts a conditional in the harness to append suggestion diagnostics when the flag is enabled.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
testdata/baselines/reference/submodule/compiler/overshifts.errors.txt.diff Updates baseline diff by removing outdated suggestion diagnostics entries.
testdata/baselines/reference/submodule/compiler/overshifts.errors.txt Refreshes the baseline with the revised error count reflecting suggestion diagnostics.
internal/testutil/harnessutil/harnessutil.go Adds a conditional block to capture and append suggestion diagnostics when enabled.

Copy link
Member

@jakebailey jakebailey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, been meaning to do this!

@jakebailey jakebailey enabled auto-merge June 19, 2025 19:04
@jakebailey jakebailey added this pull request to the merge queue Jun 19, 2025
Merged via the queue into microsoft:main with commit 96bcae5 Jun 19, 2025
22 checks passed
@Andarist Andarist deleted the harness/captureSuggestions branch June 19, 2025 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants