Skip to content

Conversation

@jakebailey
Copy link
Member

@jakebailey jakebailey commented Nov 21, 2025

These files are not meant to be edited by hand. Placing this special string at the top tells all Go-knowing tooling that these are generated and should be ignored, hides their diffs in GitHub diffs, tells gopls to issue a warning when you touch these files, and probably helps Copilot know it shouldn't touch these files in general.

Copilot AI review requested due to automatic review settings November 21, 2025 04:26
Copy link
Contributor

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 a "DO NOT EDIT" header comment to all generated fourslash test files to indicate they are auto-generated. The comment follows Go conventions by including Code generated by <tool>; DO NOT EDIT which is recognized by tooling like gopls to warn users and by tools like Copilot to avoid suggesting edits.

Key Changes:

  • Added generation comment header to all generated fourslash test files
  • Updated the makeManual script to strip the header when converting generated tests to manual tests

Reviewed Changes

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

File Description
internal/fourslash/_scripts/convertFourslash.mts Added "DO NOT EDIT" header comment to the test file template
internal/fourslash/_scripts/makeManual.mts Added logic to remove the generated header when converting tests to manual
internal/fourslash/tests/gen/*_test.go All generated test files now include the header comment

@gabritto
Copy link
Member

Did the conversion script fail to format?

@jakebailey jakebailey marked this pull request as draft November 21, 2025 16:04
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.

3 participants