Skip to content

Remove region diagnostics setting#292955

Merged
mjbvz merged 1 commit intomicrosoft:mainfrom
mjbvz:dev/mjbvz/sleepy-hyena
Feb 4, 2026
Merged

Remove region diagnostics setting#292955
mjbvz merged 1 commit intomicrosoft:mainfrom
mjbvz:dev/mjbvz/sleepy-hyena

Conversation

@mjbvz
Copy link
Collaborator

@mjbvz mjbvz commented Feb 4, 2026

Part of #292934

This setting was added in 5.6 in case the new behavior caused issues. Should be safe to remove now since it's more of an implementation detail and has almost zero real usage

Part of microsoft#292934

This is an implementation detail. Was only really added in 5.6 in case the new behavior caused issues. Should be safe to remove now
Copilot AI review requested due to automatic review settings February 4, 2026 22:45
@vs-code-engineering vs-code-engineering bot added this to the February 2026 milestone Feb 4, 2026
@mjbvz mjbvz enabled auto-merge February 4, 2026 22:48
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 removes the typescript.tsserver.enableRegionDiagnostics setting, which was added in TypeScript 5.6 as a safety measure but has seen almost zero real usage. The removal simplifies the codebase by treating region diagnostics as an implementation detail rather than a user-configurable option.

Changes:

  • Removed enableRegionDiagnostics configuration property and related code
  • Simplified region diagnostics logic to only check TypeScript version (≥5.6.0)
  • Removed setting definition and localization strings

Reviewed changes

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

File Description
extensions/typescript-language-features/src/tsServer/bufferSyncSupport.ts Simplified areRegionDiagnosticsEnabled() to only check API version without configuration check
extensions/typescript-language-features/src/configuration/configuration.ts Removed enableRegionDiagnostics from interface and configuration loading logic
extensions/typescript-language-features/package.nls.json Removed localization string for the deprecated setting
extensions/typescript-language-features/package.json Removed setting definition from package configuration

@mjbvz mjbvz merged commit c80d97f into microsoft:main Feb 4, 2026
22 of 23 checks passed
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