Skip to content

Fix diagnostic code 69010 typo to 6910 #62007

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

Copilot
Copy link
Contributor

@Copilot Copilot AI commented Jul 7, 2025

This PR fixes a typo in the diagnostic code from 69010 to 6910 in the diagnosticMessages.json file.

Issue

The diagnostic message "module === 'AMD' or 'UMD' or 'System' or 'ES6', then 'Classic', Otherwise 'Node'" had code 69010, which appears to be a typo based on the sequential numbering pattern of surrounding diagnostic codes:

  • Code 6909: "trueifcomposite, false otherwise"
  • Code 69010: "module === 'AMD' or 'UMD' or 'System' or 'ES6', then 'Classic', Otherwise 'Node'"Should be 6910
  • Code 6911: "Computed from the list of input files"
  • Code 6912: "Platform specific"

Changes Made

  • Fixed diagnostic code from 69010 to 6910 in src/compiler/diagnosticMessages.json
  • Updated all localized files in src/loc/lcl/ to use the correct code 6910
  • Regenerated all derived files to ensure consistency

Verification

  • ✅ Build completes successfully
  • ✅ All tests pass
  • ✅ Linting passes
  • ✅ Code formatting is correct
  • ✅ No references to the old code 69010 remain in the codebase

The fix is minimal and surgical - only changing the diagnostic code number while preserving all functionality and maintaining the sequential numbering pattern.

Fixes #61971.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@typescript-bot typescript-bot added the For Milestone Bug PRs that fix a bug with a specific milestone label Jul 7, 2025
Co-authored-by: RyanCavanaugh <6685088+RyanCavanaugh@users.noreply.github.com>
@Copilot Copilot AI changed the title [WIP] Diagnostic code 69010 may be typo of 6910? Fix diagnostic code 69010 typo to 6910 Jul 7, 2025
@Copilot Copilot AI requested a review from RyanCavanaugh July 7, 2025 16:54
Copilot finished work on behalf of RyanCavanaugh July 7, 2025 16:54
@RyanCavanaugh RyanCavanaugh marked this pull request as ready for review July 7, 2025 17:59
@Copilot Copilot AI review requested due to automatic review settings July 7, 2025 17:59
@RyanCavanaugh
Copy link
Member

RyanCavanaugh commented Jul 7, 2025

Not ideal to edit the lcl files but it doesn't really matter. LGTM.

Edit: Nah let's keep the git history clean on those

Copy link

@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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copy link
Member

@RyanCavanaugh RyanCavanaugh left a comment

Choose a reason for hiding this comment

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

Revert all changes to the LCL files, these should not be edited by us

Co-authored-by: RyanCavanaugh <6685088+RyanCavanaugh@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Jul 7, 2025

Revert all changes to the LCL files, these should not be edited by us

Reverted all LCL file changes as requested. The main diagnosticMessages.json file still contains the fix (code 6910), but all LCL files have been restored to their original state. dc0ec58

@Copilot Copilot AI requested a review from RyanCavanaugh July 7, 2025 19:04
Copilot finished work on behalf of RyanCavanaugh July 7, 2025 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
For Milestone Bug PRs that fix a bug with a specific milestone
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Diagnostic code 69010 may be typo of 6910?
3 participants